mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
DefinitionList Extension does not allow custom attributes on description elements #54
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 @aKzenT on GitHub (Sep 19, 2016).
For our project, I'm writing an extension which sets custom attributes on some Markdown Elements, which should be rendered in the resulting HTML (e.g. for styling).
This works fine for almost all elements (paragraphs, lists, etc.), but fails for the definition list extension, because it will always write an empty
There is also currently no good workarround for this issue. I would currently need to copy the complete extension only to change this single part.
Best regards,
Thomas
@xoofx commented on GitHub (Sep 19, 2016):
Hm weird, the code here and there does write the attributes. Could you elaborate how do you add these attributes?
@aKzenT commented on GitHub (Sep 19, 2016):
It't the
renderer.Write("<dd>");that's causing the problem for me.
@xoofx commented on GitHub (Sep 19, 2016):
Ah good catch, you can make a PR if you want to fix this.