pandoc/test/command/4635.md
John MacFarlane edc651059e Fix parsing of citations and quotes after parentheses.
Starting with pandoc 2.4, citations and quoted inlines
were no longer recognized after parentheses.  This is
because of commit 9b0bd4ec6f,
which is reverted here.

The point of that commit was to allow relocation of
soft line breaks to before an abbreviation, so that
a nonbreaking space could be added after the
abbreviation.  Now we simply leave the soft line
break in place, even though this means that
we won't get a nonbreaking space after "Mr."
at the end of a line (and in LaTeX this may
result in a longer intersentential space).
Those who care about this issue should take care
not to end lines with an abbreviation, or to
insert nonbreaking spaces manually.

Closes #5099.
2018-11-25 22:29:54 -08:00

31 lines
399 B
Markdown

```
% pandoc -f markdown -t native
(cf.
foo)
^D
[Para [Str "(cf.",SoftBreak,Str "foo)"]]
```
```
% pandoc -f markdown -t native
a (cf.
foo)
^D
[Para [Str "a",Space,Str "(cf.",SoftBreak,Str "foo)"]]
```
```
% pandoc -f markdown -t native
cf.
foo
^D
[Para [Str "cf.",SoftBreak,Str "foo"]]
```
```
% pandoc -f markdown -t native
a cf.
foo
^D
[Para [Str "a",Space,Str "cf.",SoftBreak,Str "foo"]]
```