b8d17f7ae8
Background: syntactically, references to example list items can't be distinguished from citations; we only know which they are after we've parsed the whole document (and this is resolved in the `runF` stage). This means that pandoc's calculation of `citationNoteNum` can sometimes be wrong when there are example list references. This commit partially addresses #6836, but only for the case where the example list references refer to list items defined previously in the document.
17 lines
512 B
Markdown
17 lines
512 B
Markdown
```
|
|
pandoc -t native
|
|
[@buchanan]
|
|
|
|
(@foo)
|
|
|
|
See @foo.
|
|
|
|
[@buchanan]
|
|
^D
|
|
[Para [Cite [Citation {citationId = "buchanan", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, citationHash = 0}] [Str "[@buchanan]"]]
|
|
,OrderedList (1,Example,TwoParens)
|
|
[[]]
|
|
,Para [Str "See",Space,Str "1."]
|
|
,Para [Cite [Citation {citationId = "buchanan", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 2, citationHash = 0}] [Str "[@buchanan]"]]]
|
|
```
|
|
|