Issue with parsing
Closed this issue · 4 comments
sharadcodes commented
Minimal Code Example
# Heading
<a href="abc.html">Link</a>
<a href="abc.html">Link</a>
<a href="abc.html">Link</a>
<a href="abc.html">Link</a>
I want to prevent those anchor tags from being surrounded with p tags
Conditions
. | . |
---|---|
Operating System: | Ubuntu 18.04 |
Compiler: | g++ |
Compiler flags: | none |
maddy version: | 1.1.0 |
Description
How to prevent a specific portion of code from being rendered ?
progsource commented
With #27 this should be fixed.
progsource commented
Please try out version 1.1.1 with config like:
auto config = std::make_shared<maddy::ParserConfig>();
config->isHTMLWrappedInParagraph = false;
auto parser = std::make_shared<maddy::Parser>(config);
const auto htmlOutput = parser->Parse(markdown);
and check if this solves your problem.
sharadcodes commented
@progsource Thanks for the update will use it and see if it works.
sharadcodes commented
It worked perfectly.