vsch / markdown-page-generator-plugin

Markdown to HTML Page Generator Maven Plugin
MIT License
4 stars 1 forks source link

escape html tags #8

Open Andrei-Pozolotin opened 7 years ago

Andrei-Pozolotin commented 7 years ago

the following md:

### hello `<html>` and `<body>` 

is translated into html:

<h3> hello `<html>` and `<body>` </h3>

and it fails html validation, since tags are not escaped

is there a way to escape html tags? inject CDATA? or apply filter? thank you.

vsch commented 7 years ago

@Andrei-Pozolotin, Can you please switch to the original plugin https://github.com/walokra/markdown-page-generator-plugin because it was recently migrated to flexmark-java so there is no longer a need for me to maintain a separate fork.

The flexmark-java library used for parsing and rendering the HTML for your markdown sample does generate the correct HTML with properly escaped special characters.

Beyond this I am a neophyte and it would be best to raise the issue with the original plugin developer since my maven skills are very limited.