microsoft/dotnet-apiport

MarkdownParser.TryParseParagraph doesn't handle the case when the content can be saved in mulitple paragraph blocks

Lxiamail opened this issue · 1 comments

When the content is a long sentence or more than more lines, commonMark.NET could convert the MD content to multiple paragraph blocks. This code only capture the first block content.

private static bool TryParseParagraph(Block block, out string contents)
{
contents = null;

            if (block.Tag != BlockTag.Paragraph)
                return false;

            contents = block.InlineContent.LiteralContent;

            return true;
        }

Closing as API Port was deprecated in favor of binary analysis in .NET Upgrade Assistant.