diff options
author | Simon McVittie <smcv@debian.org> | 2017-05-16 07:58:12 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2017-05-16 08:09:15 +0100 |
commit | c72dc5ddb79391ea9f518b4b76b9d1bb0f318649 (patch) | |
tree | a279f2e56b45e7d336b03e1ec3dffe89e5d5baae /doc | |
parent | 94316fca549e76cedefc80e542d52460ba2dd5ce (diff) | |
download | ikiwiki-c72dc5ddb79391ea9f518b4b76b9d1bb0f318649.tar ikiwiki-c72dc5ddb79391ea9f518b4b76b9d1bb0f318649.tar.gz |
mdwn: Don't enable alphabetically labelled ordered lists by default
This avoids misinterpreting initials ("C. S. Lewis was an author"),
the abbreviation for Monsieur ("M. Descartes was a philosopher") and
German page numbering ("S. 42") as ordered lists if they happen to
begin a line.
This only affects the default Discount implementation: Text::Markdown
and Text::MultiMarkdown do not have this feature anyway. A new
mdwn_alpha_list option can be used to restore the old interpretation.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/plugins/mdwn.mdwn | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/plugins/mdwn.mdwn b/doc/plugins/mdwn.mdwn index 6b20b7bb0..31123715d 100644 --- a/doc/plugins/mdwn.mdwn +++ b/doc/plugins/mdwn.mdwn @@ -7,6 +7,8 @@ It uses the [[ikiwiki/markdown]] minimal markup language. This is the standard markup language used by ikiwiki, although some others are also available in other plugins. +## Implementations + There are several implementations of markdown support that can be used by this plugin. In order of preference: @@ -27,3 +29,21 @@ in the setup file. Note that multimarkdown's metadata and wikilinks features are disabled when it's used with ikiwiki. Also note that if the `multimarkdown` option is enabled, it takes priority over Discount, which might cause formatting that is understood by Discount to be ignored. + + +## Advanced options + +* `nodiscount`: If set to 1, Text::Markdown::Discount will not be used + even if it is available. The default is to use Discount if available, + and this is recommended. +* `multimarkdown`: If set to 1, Text::MultiMarkdown will be used in + preference to Text::Markdown::Discount. The default is to not use + MultiMarkdown, and this is recommended. +* `mdwn_footnotes`: If set to 1, implementations that support it will + recognise the PHP Markdown Extra syntax for footnotes. The default + is 1. +* `mdwn_alpha_lists`: If set to 1, Text::Markdown::Discount will + accept letters as well as numbers in ordered list markers. The + default is 0, to avoid unintended parsing of lines that happen + to begin with a letter and a dot, such as "C. S. Lewis was an + author" or "M. Descartes was a philosopher". |