git.iko.soy/typeable/pandoc
on master help sign in
Added a markdown abbrevation test case.
2fee077John MacFarlane
test/command/md-abbrevs.mdnew file+31
@@ -0,0 +1,31 @@
1+Pandoc recognizes an abbreviation and inserts a nonbreaking
2+space (among other things, this prevents a sentence-ending
3+space from being inserted in LaTeX output).
4+
5+```
6+% pandoc -t native
7+Mr. Bob
8+^D
9+[Para [Str "Mr.\160Bob"]]
10+```
11+
12+Here pandoc readjusts the softbreak so that the nonbreaking
13+space can be inserted:
14+
15+```
16+% pandoc -t native
17+Hi Mr.
18+Bob
19+^D
20+[Para [Str "Hi",SoftBreak,Str "Mr.\160Bob"]]
21+```
22+
23+If you don't want this to happen you can escape the period:
24+
25+```
26+% pandoc -t native
27+Hi Mr\. Bob
28+^D
29+[Para [Str "Hi",Space,Str "Mr.",Space,Str "Bob"]]
30+```
31+