Some changes:
- [X] Fix a few English typos in examples, - [X] Shorter list of examples for index.html, - Add a 'keepicon=y' option to ask strapdown.js to not replace the favicon while being loaded, - For the http://lbesson.bitbucket.org/md/example9.html page, add a favicon.ico file (in ..)
This commit is contained in:
@@ -5,17 +5,19 @@
|
||||
<li class="next"><a href="example6.html">Next example →</a></li>
|
||||
</ul>
|
||||
|
||||
# A third example with [MathJax](http://www.mathjax.org/) activacted
|
||||
# A third example with [MathJax](http://www.mathjax.org/) activated
|
||||
> This *StrapDown*-flavored HTML page comes with MathJax enabled, simply because **we asked the script to do so**.
|
||||
|
||||
The last line of this page source (you can read it with "Ctrl+u" in Firefox) imports the script ``strapdown.min.js`` with this URL : ``"strapdown.min.js?src=example5&mathjax=y&theme=united&beacon=y"``.
|
||||
|
||||
This way, some options are avaible:
|
||||
This way, some options are available:
|
||||
|
||||
1. ``mathjax=y`` if you want to load MathJax, with ``$`` being the default separator for inline maths and ``$$`` for display,
|
||||
2. ``theme=united`` or ``theme=united`` if you want to load a specific theme (without having to specify it as the theme attribute of the main ``xmp``),
|
||||
1. ``mathjax=y`` if you want to load MathJax, with ``$ ... $`` being the default syntax for inline maths and ``$$ ... $$`` for display,
|
||||
2. ``theme=united`` or ``theme=cyborg`` if you want to load a specific theme (without having to specify it as the ``theme`` attribute of the main ``xmp`` tag containing your Markdown code),
|
||||
3. ``beacon=y`` if you want to include an invisible [GA Beacon](http://perso.crans.org/besson/beacon.en.html) image in your page,
|
||||
4. ``nonavbarfixed=y`` if you prefer the [top navigation bar](https://bootswatch.com/united/#navbar) to not be fixed, but scroll as the rest of the page (*new!*).
|
||||
4. ``pedantic=y`` if you want to force the use of the ["pedantic" option](https://github.com/chjj/marked#pedantic) for [marked](https://github.com/chjj/marked), the Markdown parser used by StrapDown.js (note: you probably don't want that, [pedantic=false is usually better](https://github.com/chuckhoupt/strapdown/commit/1a090729fb717059be0689aa65025de6de67b3cd)). Default is pedantic=false.
|
||||
5. ``nonavbarfixed=y`` if you prefer the [top navigation bar](https://bootswatch.com/united/#navbar) to not be fixed, but scroll as the rest of the page (*new!*). See [example8](example8.html),
|
||||
6. ``keepicon=y`` if you prefer StrapDown.js to keep the favicon included in your HTML document (*new!*). See [example9](example9.html).
|
||||
|
||||
***
|
||||
|
||||
|
Reference in New Issue
Block a user