mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Consider passing mergeIdAndProperties as true in GenericAttributesParser #50
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 @christophano on GitHub (Aug 22, 2016).
Line 67 of
GenericAttributesParser.cscalls theCopyTomethod of theHtmlAttributesclass.It passes false as the
MergeIdAndPropertiesargument, which means the existingIdis overwritten, even if there is no id on the instance itself.If the argument is changed to true, then the
Idproperty will only be overwritten if it has been set on the instance.The scenario that I'm facing right now, is that I have an extension to automatically create Ids for definition term elements (based on their content) but, if I want to also apply a class using the
Special Attributesextension, the id gets overwritten.