Closed mn4367 closed 9 years ago
The following snippet
Lorem ipsum. ![Caption][fig1] Lorem ipsum. [fig1]: sample.png
produces
<p>Lorem ipsum.</p> <figure> <img src="sample.png" alt="Caption" id="fig1" /> <figcaption>Caption</figcaption> </figure> <p>Lorem ipsum.</p>
which is fine. But if i I delete the image definition or if I use it incorrectly like in the following two examples
Lorem ipsum. ![Caption][fig1] Lorem ipsum.
Lorem ipsum. ![Caption][fig0] Lorem ipsum. [fig1]: sample.png
this HTML is produced:
<p>Lorem ipsum.</p> <figure> ![Caption][fig1] <p>Lorem ipsum.</p>
<p>Lorem ipsum.</p> <figure> ![Caption][fig0] <p>Lorem ipsum.</p>
The figure tag isn't closed which prevents further processing in tools which demand well-formed XML.
figure
I'm of course guilty of wrong markdown syntax, but it would be very nice if MultiMarkdown would just close the figure tag in such cases.
Thanks!
Thank you! :-)
The following snippet
produces
which is fine. But if i I delete the image definition or if I use it incorrectly like in the following two examples
this HTML is produced:
The
figure
tag isn't closed which prevents further processing in tools which demand well-formed XML.I'm of course guilty of wrong markdown syntax, but it would be very nice if MultiMarkdown would just close the
figure
tag in such cases.