From 48c88d566d19683a7d5b63f88c8b4487234e3712 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 20 Mar 2017 21:51:29 +0100 Subject: 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. --- test/command/3512.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/command/3512.md (limited to 'test/command/3512.md') 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 +

#hi

+``` + +``` +% pandoc -f markdown-auto_identifiers-space_in_atx_header +#hi +^D +

hi

+``` -- cgit v1.2.3