progsource/maddy

Issue with parsing

Closed this issue · 4 comments

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 ?

With #27 this should be fixed.

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.

@progsource Thanks for the update will use it and see if it works.

It worked perfectly.