progsource / maddy

C++ Markdown to HTML header-only parser library
MIT License
194 stars 39 forks source link

make sure all inline block parsers finished #55

Open max-spb opened 2 months ago

max-spb commented 2 months ago

If the last line in the input mardown has inline blocks, the "if" statement finishes only the most inner one, so the last line is lost in the output. To finish all inline blocks it's needed to feed an empty string for each of them, so "if" needs to be rplaces with "while".

Consider the following mardown input:

std::stringstream inputMarkdown(R"(
Some test as the main paragraph

> Some text as a block-quote)");
progsource commented 2 weeks ago

Thank you for your contribution. Can you please add a test?