diff options
| author | Anton Melnikov <[email protected]> | 2025-12-21 06:27:28 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-20 21:27:28 -0800 |
| commit | af27e8a4215985065da82a9059f11dce4e9ab3f7 (patch) | |
| tree | fd4f29e59073e49d86b48914c33a6690cd0d1cb7 /test/command | |
| parent | 144eb4e51bb6d077c38e94db62638edbc57df8c3 (diff) | |
MediaWiki reader: add behavior switches support (#11354)
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 <[email protected]>
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/mediawiki_behavior_switches.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command/mediawiki_behavior_switches.md b/test/command/mediawiki_behavior_switches.md new file mode 100644 index 000000000..3798df40b --- /dev/null +++ b/test/command/mediawiki_behavior_switches.md @@ -0,0 +1,16 @@ +``` +% pandoc -f mediawiki -t native +____INDEX____ +__NOINDEX__ +__noindex__ +__FOOBAR__ +^D +[ Para + [ Str "____" + , SoftBreak + , Str "__noindex__" + , SoftBreak + , Str "__FOOBAR__" + ] +] +``` |
