src/Markdig/Extensions/AutoIdentifiers/AutoIdentifierExtension.cs
/// <summary>
/// Callback when there is a reference to found to a heading.
/// Note that reference are only working if they are declared after.
/// </summary>
Callback when there is a reference to found to a heading.
Note that reference are only working if they are declared after.
Callback when there is a reference to found to a heading . Note that reference are only working if they are declared after .
private Inline CreateLinkInlineForHeading(InlineProcessor inlineState, LinkReferenceDefinition linkRef, Inline? child)
        {
            var headingRef = (HeadingLinkReferenceDefinition) linkRef;
            return new LinkInline()
            {
                GetDynamicUrl = () => HtmlHelper.Unescape("#" + headingRef.Heading.GetAttributes().Id),
                Title = HtmlHelper.Unescape(linkRef.Title),
            };
        }
private Inline CreateLinkInlineForHeading ( InlineProcessor inlineState , LinkReferenceDefinition linkRef , Inline ? child ) { var headingRef = ( HeadingLinkReferenceDefinition ) linkRef ; return new LinkInline ( ) { GetDynamicUrl = ( ) => HtmlHelper . Unescape ( " " + headingRef . Heading . GetAttributes ( ) . Id ) , Title = HtmlHelper . Unescape ( linkRef . Title ) , } ; }
Callback when there is a reference to found to a heading.
Callback when there is a reference to found to a heading .
// Use GetDynamicUrl to allow late binding of the Url (as a link may occur before the heading is declared and // the inlines of the heading are actually processed by HeadingBlock_ProcessInlinesEnd)
inlineState
InlineProcessor
linkRef
LinkReferenceDefinition
child
Inline?