1) add TOC: add a TOC in the right of the window, which
i) can be toggled or closed,
ii) will scroll along with the text,
iii) if its scroll bar reach the bottom/top,
e.preventDefault() will take effect
2) set default css to Github-left (a modification of Github, to keep the left),
so TOC wont cover text
------------------------------------ Original README ------------------------------------
Automatically parses markdown files (.md) into HTML. This is useful if you're writing markdown (ultimately targeting HTML) and want a quick preview.
- Support auto reload.
- Support external css file.
- Customize theme for every md file.
- Support github flavored markdown.
- Export nicely formatted HTML.
- Support MathJax.
- Install extension from webstore (creates no new UI)
- Check "Allow access to file URLs" in
chrome://extensions
listing: - Open local or remote .md file in Chrome.
- See nicely formatted HTML!
Markdown Preview Plus uses the MathJax engine to support rendering of mathematical expressions. Markdown Preview Plus supports the following math syntax. To minimize interference between Markdown and MathJax, some standard LaTeX delimiters (indicated below) are disabled by default to avoid conflict with Markdown syntax. LaTeX syntax can be enabled in the options.
-
Single Dollar Signs (requires LaTeX delimiters):
. When LaTeX syntax is enabled, dollar signs used in non-math contexts should be escaped with a backslash:$math$
\$
-
Single Backslash with Parentheses (requires LaTex delimiters):
. Conflicts with Markdown's escaped syntax for parentheses\(math\)
\(
. -
Double Backslash with Parentheses:
\\(math\\)
-
Single Backslash with Brackets (requires LaTeX delimiters):
. Conflicts with Markdown's escaped syntax for brackets\[math\]
\[
. -
Double Backslash with Brackets:
\\[math\\]
-
Double Dollar Signs:
$$math$$
-
LaTeX Environments (always available when MathJax is enabled)
-
\begin{equation}math\end{equation}
-
\begin{eqnarray}math\end{eqnarray}
-
...
-
Thanks to Kevin Burke for his markdown-friendly stylesheet, to chjj for his JavaScript markdown processor, to Boris Smus for his Markdown Preview and to Swartz and Gruber for Markdown.