fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
523 stars 55 forks source link

Use link-title for latex figure caption instead of link-lable #149

Closed kain88-de closed 11 years ago

kain88-de commented 11 years ago

With this the title of a link will be used as a figure caption and it is possible to reference the label in the generated latex code

fletcher commented 11 years ago

1) peg-multimarkdown (MMD-3) is deprecated. MMD-4 is the latest version.

2) I'm not sure I understand the problem you are trying to solve. link titles are plain text only - Markdown/MMD is not interpreted "inside" the quotes. This would limit captions to plain text. When defining a figure by reference, you already have access to a \label and a \caption, and the \caption can include markup (e.g. bold, italics, etc.) See the MMD Sample Document with the "Nautilus Star" image example, but I don't think anything needs to be changed in this regard.

![This is a **bolded** caption][Nautilus Star] 

[Nautilus Star]: http://files.fletcherpenney.net/Nautilus_Star.png "Nautilus Star" width="3in" height="2.4in"

F-