mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-06 13:54:46 +00:00
Fix emphasis parsing with table delimiters (#614)
This commit is contained in:
@@ -12,6 +12,12 @@ namespace Markdig.Tests
|
||||
[TestFixture]
|
||||
public class TestPlayParser
|
||||
{
|
||||
[Test]
|
||||
public void TestBugWithEmphasisAndTable()
|
||||
{
|
||||
TestParser.TestSpec("**basics | 8:00**", "<p><strong>basics | 8:00</strong></p>", "advanced");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestLinksWithCarriageReturn()
|
||||
{
|
||||
|
||||
@@ -125,7 +125,8 @@ namespace Markdig.Parsers.Inlines
|
||||
continue;
|
||||
}
|
||||
|
||||
child = child.NextSibling;
|
||||
// Follow DelimiterInline (EmphasisDelimiter, TableDelimiter...)
|
||||
child = child is DelimiterInline delimiterInline ? delimiterInline.FirstChild : child.NextSibling;
|
||||
}
|
||||
|
||||
if (delimiters != null)
|
||||
|
||||
Reference in New Issue
Block a user