File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 88using Elastic . Markdown . Myst ;
99using Elastic . Markdown . Myst . Directives ;
1010using Elastic . Markdown . Myst . FrontMatter ;
11+ using Elastic . Markdown . Myst . InlineParsers ;
1112using Elastic . Markdown . Slices ;
1213using Markdig ;
1314using Markdig . Extensions . Yaml ;
@@ -149,8 +150,6 @@ private void ReadDocumentInstructions(MarkdownDocument document)
149150 Collector . EmitWarning ( FilePath , "Document has no title, using file name as title." ) ;
150151 }
151152
152-
153-
154153 var contents = document
155154 . Where ( block => block is HeadingBlock { Level : >= 2 } )
156155 . Cast < HeadingBlock > ( )
@@ -169,7 +168,9 @@ private void ReadDocumentInstructions(MarkdownDocument document)
169168 . Select ( b => b . CrossReferenceName )
170169 . Where ( l => ! string . IsNullOrWhiteSpace ( l ) )
171170 . Select ( s => s . Slugify ( ) )
171+ . Concat ( document . Descendants < InlineAnchor > ( ) . Select ( a=> a . Anchor ) )
172172 . ToArray ( ) ;
173+
173174 foreach ( var label in labels )
174175 {
175176 if ( ! string . IsNullOrEmpty ( label ) )
You can’t perform that action at this time.
0 commit comments