mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Add support for implicit figures for images #102
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RickStrahl on GitHub (Mar 14, 2017).
I'm using
builder.UseFigures()in my pipeline builder code, but I don't see figure output rendered.Example here:
https://babelmark.github.io/?text=!%5BSave+Image+to+Azure+Blob+Storage+Addin%5D(https%3A%2F%2Fgithub.com%2FRickStrahl%2FSaveToAzureBlob-MarkdownMonster-Addin%2Fraw%2Fmaster%2FSaveToAzureMarkdownMonsterAddin.gif)%0A
Markdig renders the image only which seems like Figures is not doing anything. Pandoc renders with figure classes, multi-markdown uses figure proper figure/figcaption elements.
Looks like MarkDig should render figure/figurecaption, but I don't see it rendered. Double checked to make sure FigureExtension is loaded in the final PipelineBuilder used to render with:
BTW, how does the Markdig Parser run in BabelMark? With all options enabled?
@xoofx commented on GitHub (Mar 15, 2017):
Afair, The figure extension is not doing anything with regular image links. As described on CommonMark forum, I implemented the following:
The
^^^identifies a figure block with a block caption and renders like this:In this discussion, they talked about implementing something automatically for img, but It was not settled and I prefer to have an explicit figure caption (and not automatically generated)
should render like this (check markdig advanced on babelmark):
@RickStrahl commented on GitHub (Mar 17, 2017):
Yeah I kind of agree about the explicit nature. PanDoc however does render figure captions (using styling rather than figure/figcaption tho)...
Thanks for the clarification.
@xoofx commented on GitHub (Mar 17, 2017):
Reopening and mark it as an enhancement. Implicit figure for image is something that can be done as part of the figure extension (through no spare time to work on this)