mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Question: inserting <sup> in the first <p> of a Footnote #583
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 @omer-iqbal on GitHub (Dec 18, 2022).
I am adding options in Footnote extension to preserve original label specified in markdown. (Issue #684)
I have done most of the work except I'm unable to figure out how to cleanly add
<sup>label</sup>in the first paragraph of the Footnote.HtmlGroupFootnoteRendererhasRenderer.WriteChildren(Footnote)which renders the paragraphs. I am thinking that perhaps the ideal way to do this is to add these html tags and label during rendering. Changing the Footnote text before this stage doesn't seem like an elegant way to do it.Any help would be appreciated.
@xoofx commented on GitHub (Jan 4, 2023):
If it is not an added information to the data model, you can definitely render them directly from the renderers.