git.iko.soy/typeable/pandoc
on master help sign in
RSTR reader: don't skip link definitions after comments.

Closes #4860.

commit85ed24e849975051f370dd8bf98c6c62ca92447a authorJohn MacFarlane <jgm@berkeley.edu> dateWed 29 Aug 2018, 14:40 (8 years ago) parent7c0b314
2 files changed+10
src/Text/Pandoc/Readers/RST.hs+1 test/command/4860.md+9
src/Text/Pandoc/Readers/RST.hs+1
@@ -172,6 +172,7 @@ parseRST = do
172172 docMinusKeys <- concat <$>
173173 manyTill (referenceKey <|> anchorDef <|>
174174 noteBlock <|> citationBlock <|>
175+ (snd <$> withRaw comment) <|>
175176 headerBlock <|> lineClump) eof
176177 setInput docMinusKeys
177178 setPosition startPos
test/command/4860.mdnew file+9
@@ -0,0 +1,9 @@
1+```
2+% pandoc -f rst -t native
3+This is broken_.
4+
5+.. ***** REFERENCES FOLLOW *****
6+.. _broken: http://google.com
7+^D
8+[Para [Str "This",Space,Str "is",Space,Link ("",[],[]) [Str "broken"] ("http://google.com",""),Str "."]]
9+```