pegdown
pegdown copied to clipboard
Links with indented titles are misinterpreted as verbatim blocks
According to the Daring Fireball reference, reference link titles may be placed on the following line, if indented.
You should try [Google][g].
[g]: http://www.google.com
"Teh Googz"
This doesn't parse properly with 1.2.1.
Using this example, and printing each node in each visit()
method in the Visitor
interface, I get the following:
2013-03-23 18:31:09,224 (main) [DEBUG - ###.visit(###.java:299)] depth:0 node:RootNode [0-72]
2013-03-23 18:31:09,226 (main) [DEBUG - ###.visit(###.java:233)] depth:1 node:ParaNode [0-29]
2013-03-23 18:31:09,226 (main) [DEBUG - ###.visit(###.java:411)] depth:2 node:SuperNode [0-27]
2013-03-23 18:31:09,226 (main) [DEBUG - ###.visit(###.java:389)] depth:3 node:TextNode [0-15] 'You should try '
2013-03-23 18:31:09,228 (main) [DEBUG - ###.visit(###.java:282)] depth:3 node:RefLinkNode [15-26]
2013-03-23 18:31:09,228 (main) [DEBUG - ###.visit(###.java:411)] depth:4 node:SuperNode [0-0]
2013-03-23 18:31:09,228 (main) [DEBUG - ###.visit(###.java:389)] depth:5 node:TextNode [16-22] 'Google'
2013-03-23 18:31:09,228 (main) [DEBUG - ###.visit(###.java:389)] depth:4 node:TextNode [24-25] 'g'
2013-03-23 18:31:09,229 (main) [DEBUG - ###.visit(###.java:389)] depth:3 node:TextNode [26-27] '.'
2013-03-23 18:31:09,230 (main) [DEBUG - ###.visit(###.java:261)] depth:1 node:ReferenceNode [29-56]
2013-03-23 18:31:09,230 (main) [DEBUG - ###.visit(###.java:411)] depth:2 node:SuperNode [0-0]
2013-03-23 18:31:09,230 (main) [DEBUG - ###.visit(###.java:389)] depth:3 node:TextNode [30-31] 'g'
2013-03-23 18:31:09,230 (main) [DEBUG - ###.visit(###.java:368)] depth:1 node:VerbatimNode [56-72] '"Teh Googz"\n'
Placing the title on the same line as the link reference parses properly.