diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-20 21:51:29 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-20 21:55:30 +0100 |
commit | 48c88d566d19683a7d5b63f88c8b4487234e3712 (patch) | |
tree | 1ae336f35247b25c5b79b1a08b937e2341f93f18 /test/command | |
parent | 2d94d4833290692f1673b83a8068ac466cc77619 (diff) | |
download | pandoc-48c88d566d19683a7d5b63f88c8b4487234e3712.tar.gz |
Add `space_in_atx_header` extension.
This is enabled by default in pandoc and GitHub markdown but not the
other flavors.
This requirse a space between the opening #'s and the header
text in ATX headers (as CommonMark does but many other implementations
do not). This is desirable to avoid falsely capturing things ilke
#hashtag
or
#5
Closes #3512.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/3512.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/command/3512.md b/test/command/3512.md new file mode 100644 index 000000000..cf8c72e58 --- /dev/null +++ b/test/command/3512.md @@ -0,0 +1,13 @@ +``` +% pandoc -f markdown-auto_identifiers +#hi +^D +<p>#hi</p> +``` + +``` +% pandoc -f markdown-auto_identifiers-space_in_atx_header +#hi +^D +<h1>hi</h1> +``` |