Fix heading auto-link hijacking nested link labels (#668)
This commit is contained in:
1 parent
93406f115e
commit
ad32938cc0
4 files changed
+66
No files matched your search
@@ -136,6 +136,16 @@ public class LinkReferenceDefinition : LeafBlock
|
||||
/// </remarks>
|
||||
public CreateLinkInlineDelegate? CreateLinkInline { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether this definition may resolve into a link while its label is
|
||||
/// nested inside another still-open link or image bracket.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <c>true</c> for user-authored definitions, preserving CommonMark's "links
|
||||
/// cannot contain links". Implicitly generated ones override it to <c>false</c>.
|
||||
/// </remarks>
|
||||
internal virtual bool AllowResolutionInsideOpenLink => true;
|
||||
|
||||
/// <summary>
|
||||
/// Tries to the parse the specified text into a definition.
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user