mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 06:55:46 +00:00
MediaWiki format supports [magic words](https://www.mediawiki.org/wiki/Help:Magic_words). These are basically built-in templates. This commit introduces support for behavior switches, which is one of the three types of magic words. They add a field to metadata without producing any text. Signed-off-by: botantony <antonsm21@gmail.com>
17 lines
203 B
Markdown
17 lines
203 B
Markdown
```
|
|
% pandoc -f mediawiki -t native
|
|
____INDEX____
|
|
__NOINDEX__
|
|
__noindex__
|
|
__FOOBAR__
|
|
^D
|
|
[ Para
|
|
[ Str "____"
|
|
, SoftBreak
|
|
, Str "__noindex__"
|
|
, SoftBreak
|
|
, Str "__FOOBAR__"
|
|
]
|
|
]
|
|
```
|