aboutsummaryrefslogtreecommitdiff
path: root/MANUAL.txt
diff options
context:
space:
mode:
authorOCzarnecki <44535552+OCzarnecki@users.noreply.github.com>2021-08-16 06:57:57 +0200
committerGitHub <noreply@github.com>2021-08-15 21:57:57 -0700
commite37cf4484d38c171d9f7477a8ae9eca9643cc426 (patch)
tree62984d5cf0e54867f80ef8fcbc646ff598e9a094 /MANUAL.txt
parent72447a563c415a3d8addc7a2b2edd93f9fe56ebe (diff)
downloadpandoc-e37cf4484d38c171d9f7477a8ae9eca9643cc426.tar.gz
Multimarkdown sub- and superscripts (#5512) (#7188)
Added an extension `short_subsuperscripts` which modifies the behavior of `subscript` and `superscript`, allowing subscripts or superscripts containing only alphanumerics to end with a space character (eg. `x^2 = 4` or `H~2 is combustible`). This improves support for multimarkdown. Closes #5512. Add `Ext_short_subsuperscripts` constructor to `Extension` [API change]. This is enabled by default for `markdown_mmd`.
Diffstat (limited to 'MANUAL.txt')
-rw-r--r--MANUAL.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index a6edd8ccd..bed3b2009 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -5304,6 +5304,18 @@ For elements that accept attributes, a `data-pos` attribute
is added; other elements are placed in a surrounding
Div or Span elemnet with a `data-pos` attribute.
+#### Extension: `short_subsuperscript` ####
+
+Parse multimarkdown style subscripts and superscripts, which start with
+a '~' or '^' character, respectively, and include the alphanumeric sequence
+that follows. For example:
+
+ x^2 = 4
+
+or
+
+ Oxygen is O~2.
+
## Markdown variants
In addition to pandoc's extended Markdown, the following Markdown