Skip to content

Commit 1d8fa5e

Browse files
committed
revert enhanced code block parser changes
1 parent bf864d9 commit 1d8fa5e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Elastic.Markdown/Myst/CodeBlocks/EnhancedCodeBlockParser.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ public override bool Close(BlockProcessor processor, Block block)
8888
var line = lines.Lines[index];
8989
var span = line.Slice.AsSpan();
9090

91-
var startIndex = Math.Max(span.IndexOf("//"), span.IndexOf('#'));
92-
if (startIndex <= 0)
93-
continue;
94-
9591
if (span.ReplaceSubstitutions(context.FrontMatter?.Properties, out var replacement))
9692
{
9793
var s = new StringSlice(replacement);

0 commit comments

Comments
 (0)