sirthias / pegdown

A pure-Java Markdown processor based on a parboiled PEG parser supporting a number of extensions
http://pegdown.org
Apache License 2.0
1.29k stars 217 forks source link

ToHtmlSerializer.printImageTag ignores image titles #108

Open mfontenele opened 11 years ago

mfontenele commented 11 years ago
      String s = "![img](test.png \"My Title\")";

      System.out.println(new PegDownProcessor().markdownToHtml(s));

Generates:

<p><img src="test.png"  alt="img"/></p>

The image title is being ignored. The parser looks good but the print method seems to ignore the title attribute of the node.