You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like you're adding an extra LineBreakInline. Is this intended?
Code:
using System;
using Markdig;
using Markdig.Syntax;
public class Program
{
public static void Main()
{
var pipeline = new MarkdownPipelineBuilder()
.UseAdvancedExtensions()
.Build();
var text = @"
text
other text
new\
new 2
other
other 2
1other
1other 2
";
var document = Markdown.Parse(text, pipeline);
var containerBlock = (ContainerBlock)document;
var parahraphBlock = (ParagraphBlock)containerBlock[1];
var inlines = parahraphBlock.Inline;
foreach (var inline in inlines)
{
Console.WriteLine(inline);
}
Console.ReadKey();
//Starting with version 0.26.0 the result is:
//new
//Markdig.Syntax.Inlines.LineBreakInline
//Markdig.Syntax.Inlines.LineBreakInline
//new 2
//Starting with version 0.26.0 (With EnableTrackTrivia) the result is:
//new
//Markdig.Syntax.Inlines.LineBreakInline
//Markdig.Syntax.Inlines.LineBreakInline
//new 2
//Markdig.Syntax.Inlines.LineBreakInline
//0.24.0 version result:
//new\
//Markdig.Syntax.Inlines.LineBreakInline
//new 2
//0.23.0 version result:
//new
//Markdig.Syntax.Inlines.LineBreakInline
//new 2
//Why do we have 2 "Markdig.Syntax.Inlines.LineBreakInline" in the latest version?
}
}
The text was updated successfully, but these errors were encountered:
Looks like you're adding an extra LineBreakInline. Is this intended?
Code:
The text was updated successfully, but these errors were encountered: