fletcher / MultiMarkdown

Expanded perl version of John Gruber's original Markdown --- No longer under active development since MMD 3
http://fletcherpenney.net/multimarkdown/
1.06k stars 530 forks source link

Fails to correctly render footnotes in image titles #37

Closed kadishmal closed 12 years ago

kadishmal commented 12 years ago

I have the following image with a caption and a footnote in its caption:

![Figure 1: Useful technology for the present and the future.[^fn-figure_1]](/image/path)

[^fn-figure_1]: *Big data, Analytics and the Path from Insights to Value*, MIT Solan management review, Winter 2011.

The above code doesn't work. Prints out:

<figure>
<img src="" alt="Figure 1: Useful technology for the present and the future.*Big data, Analytics and the Path from Insights to Value*, MIT Solan management review, Winter 2011.

fn-figure_1" />
<figcaption>Figure 1: Useful technology for the present and the future.<a href="#fn:*Big data, Analytics and the Path from Insights to Value*, MIT Solan management review, Winter 2011.

" title="see footnote" class="footnote">[*Big data, Analytics and the Path from Insights to Value*, MIT Solan management review, Winter 2011.

]</a></figcaption></figure>

I also tried wrapping image caption as a link:

![[Figure 1: Useful technology for the present and the future.][^fn-figure_1]](/image/path)

[^fn-figure_1]: *Big data, Analytics and the Path from Insights to Value*, MIT Solan management review, Winter 2011.

But it doesn't seem to work either. Outputs:

<p>![[Figure 1: Useful technology for the present and the future.]<a href="#fn:1" id="fnref:1" title="see footnote" class="footnote">[1]</a>]()</p>
fletcher commented 12 years ago

Captions aren't designed for such "multi-level" markup, since they also go into the "alt" tag. Simple markup such as bold and italics works.