mirror of
https://github.com/xoofx/markdig.git
synced 2026-10-09 07:07:34 +00:00
Fix IndexOutOfRangeException while parsing fenced code block with a single trailing space (#276)
This commit is contained in:
@@ -27,6 +27,13 @@ namespace Markdig.Tests
|
||||
TestSpec(input, "<p>9&ddr;&*&ddr;&de<64><65>__</p>");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestInvalidCodeEscape()
|
||||
{
|
||||
var input = "```**Header** ";
|
||||
var html = Markdown.ToHtml(input);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestEmphasisAndHtmlEntity()
|
||||
{
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Markdig.Parsers
|
||||
|
||||
// Skip any spaces after info string
|
||||
firstSpace++;
|
||||
while (true)
|
||||
while (firstSpace <= line.End)
|
||||
{
|
||||
c = line[firstSpace];
|
||||
if (c.IsSpaceOrTab())
|
||||
|
||||
Reference in New Issue
Block a user