mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 13:54:44 +00:00
HtmlAttributes.CopyTo throws Exception depending on pipeline extension usage #29
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 @billbogaiv on GitHub (Jun 23, 2016).
MediaLinkExtensioncan cause this exception with other extensions (i.e.BootstrapExtension):The
BootstrapExtensionmakes use ofGetAttributes. The latter does not instantiate any complex properties (i.e.ClassesorProperties). When theMediaLinksExtensionattempts to copy attributes, theshare-parameter ofCopyToset tofalsecauses a newList<string>[Classes] orList<KeyValuePair<string, string>>[Properties] to be created and is passed anullClasses/Properties-value to its constructor (ref.2c3de5688b/src/Markdig/Renderers/Html/HtmlAttributes.cs (L130)).