The Wayback Machine - https://web.archive.org/web/20200907055338/https://github.com/mdigger/goldmark-figures/
Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Dec 25, 2019
Dec 25, 2019
Dec 26, 2019
Dec 25, 2019
Dec 25, 2019

README.md

goldmark-figures

GoDoc

This goldmark parser extension adds paragraph image render as figure.

An image with nonempty alt text, occurring by itself in a paragraph, will be rendered as a figure with a caption. The image’s alt text will be used as the caption.

![**Figure:** [description](/link)](image.png "title")
<figure>
<img src="image.png" alt="Figure: description" title="title">
<figcaption><strong>Figure:</strong> <a href="/link">description</a></figcaption>
</figure>

If you just want a regular inline image, just make sure it is not the only thing in the paragraph. One way to do this is to insert a nonbreaking space after the image:

![This image won't be a figure](/url/of/image.png)\

This syntax is borrowed from Pandoc.

About

This goldmark parser extension adds paragraph with image render as figure

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.