diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-05 10:44:25 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-05 10:44:25 +0100 |
commit | 2fee07795c0066f38c14a81a2323b7a015541af9 (patch) | |
tree | 7f839dd5a2083d02d2f233f3e2beb15b58abdde5 /test/command | |
parent | 95f2726ee74a7770bf0eb5fe5629c493addbe298 (diff) | |
download | pandoc-2fee07795c0066f38c14a81a2323b7a015541af9.tar.gz |
Added a markdown abbrevation test case.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/md-abbrevs.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/command/md-abbrevs.md b/test/command/md-abbrevs.md new file mode 100644 index 000000000..15f4d6a9a --- /dev/null +++ b/test/command/md-abbrevs.md @@ -0,0 +1,31 @@ +Pandoc recognizes an abbreviation and inserts a nonbreaking +space (among other things, this prevents a sentence-ending +space from being inserted in LaTeX output). + +``` +% pandoc -t native +Mr. Bob +^D +[Para [Str "Mr.\160Bob"]] +``` + +Here pandoc readjusts the softbreak so that the nonbreaking +space can be inserted: + +``` +% pandoc -t native +Hi Mr. +Bob +^D +[Para [Str "Hi",SoftBreak,Str "Mr.\160Bob"]] +``` + +If you don't want this to happen you can escape the period: + +``` +% pandoc -t native +Hi Mr\. Bob +^D +[Para [Str "Hi",Space,Str "Mr.",Space,Str "Bob"]] +``` + |