Skip to content

Commit

Permalink
Add notes to more accurately describe misaka library extension functi…
Browse files Browse the repository at this point in the history
…onality.
  • Loading branch information
mgc8 authored and Mihnea-Costin Grigore committed Apr 29, 2024
1 parent ac9fb0d commit 04dc7b9
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions docs/docs/reference/markdown-config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,15 @@ The following **additional options** are available:
+==========================================================+===========================+
| Ignore indented code blocks | ``disable-indented-code`` |
+----------------------------------------------------------+---------------------------+
| Parse inline LaTeX-style math blocks, such as | ``math`` |
| inline ``$equations$`` or display ``$$equations$$`` | |
| Ignore inline LaTeX-style math blocks, such as | ``math`` |
| inline ``$equations$`` or display ``$$equations$$``, | |
| allowing them to be processed separately with a | |
| JavaScript library. | |
| **Note:** This extension will *not* render equations | |
| or any form of math, it just marks them to be ignored by | |
| the markdown parser. A library such as | |
| `MathJax <https://www.mathjax.org/>`_ | |
| or `KaTeX <https://katex.org/>`_ is needed for that. | |
+----------------------------------------------------------+---------------------------+
| Normally, everything between two ``_underscores_`` would | ``no-intra-emphasis`` |
| be rendered with *emphasis*. This option disables | |
Expand All @@ -140,15 +147,19 @@ The following **additional options** are available:
| multiple footnotes by different commenters on the same | |
| page could clash due to duplicate links to footnotes. | |
+----------------------------------------------------------+---------------------------+
| Use two ``=`` signs like ``==this==`` to highlight text | ``highlight`` |
| Use two ``=`` signs like ``==this==`` to highlight text. | ``highlight`` |
+----------------------------------------------------------+---------------------------+
| Text inside quotes gets a special "quote" class. | ``quote`` |
| Perhaps useful for styling in CSS | |
+----------------------------------------------------------+---------------------------+
| Enable Markdown tables | ``tables`` |
| Enable Markdown tables. | ``tables`` |
| **Note:** The ``<tr>`` and all other ``<table>``-related | |
| tags need to be allowed under ``allowed-elements`` for | |
| this to work. Also, a table cannot be surrounded by | |
| anything other than blank lines to render properly. | |
+----------------------------------------------------------+---------------------------+
| Instead of ``_underscore`` resulting in *emphasis*, | ``underline`` |
| the resulting text will be... underlined | |
| the resulting text will be... underlined. | |
+----------------------------------------------------------+---------------------------+

.. todo:: ``no-intra-emphasis`` should be made default
Expand Down

0 comments on commit 04dc7b9

Please sign in to comment.