git.iko.soy/typeable/pandoc
on master help sign in
RSTR reader: don't skip link definitions after comments.
85ed24eJohn MacFarlane
src/Text/Pandoc/Readers/RST.hs+1
@@ -172,6 +172,7 @@ parseRST = do
172 docMinusKeys <- concat <$>
172 docMinusKeys <- concat <$>
173 manyTill (referenceKey <|> anchorDef <|>
173 manyTill (referenceKey <|> anchorDef <|>
174 noteBlock <|> citationBlock <|>
174 noteBlock <|> citationBlock <|>
175+ (snd <$> withRaw comment) <|>
175 headerBlock <|> lineClump) eof
176 headerBlock <|> lineClump) eof
176 setInput docMinusKeys
177 setInput docMinusKeys
177 setPosition startPos
178 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+```