-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown parser produces invalid HTML #384
Comments
I am curious what causes the bug. |
@solomax, can you please tell me what the issue is with the generated HTML. I ran the source through tests on master branch (upcoming 0.60 version), 0.50 and 0.42 and in all cases the result is the same and I cannot see what is incorrect. Note, that → is a tab character changed in tests to visually show tabs for easy identification, it is a Source: <!--
# Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0 -->
# Media Server Installation
## Install Kurento Media server
<a href="https://doc-kurento.readthedocs.io/en/stable/user/installation.html">Install Kurento Media server</a>
<div class="bd-callout bd-callout-danger">
→It should be run under same user as OM
</div>
## Specify/Install Turn server
<div class="bd-callout bd-callout-info">Optional step</div> Resulting HTML: <!--
# Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0 -->
<h1>Media Server Installation</h1>
<h2>Install Kurento Media server</h2>
<p><a href="https://doc-kurento.readthedocs.io/en/stable/user/installation.html">Install Kurento Media server</a></p>
<div class="bd-callout bd-callout-danger">
→It should be run under same user as OM
</div>
<h2>Specify/Install Turn server</h2>
<div class="bd-callout bd-callout-info">Optional step</div> Maybe based on selected options or some post processing after rendering, the generated HTML is not what I am seeing. However, I don't see it in the library generated HTML. Can you get the parser options used so I can test the exact options instead of CommonMark defaults. |
@solomax, @michael-o, it would also help to know the version of the library used so I can have identical conditions for the test. |
@michael-o can you please provide the options and the exact version being used? (should be easy for you, since you was able to debug it :)) |
@solomax, @michael-o, the issue is caused by HTML parser in deep html parse mode not interrupting paragraph blocks on HTML block tags. The bug is fixed in version 0.42.14, repo for branch 0.42 is updated. Maven central updated and may take some time to show the new version. A workaround is possible by adding a blank line before the |
@vsch, @michael-o |
@solomax Please another JIRA issue to have flexmark updated with Doxia. |
After upgrading maven-site-plugin to 3.8.2 I found weird output:
As a result https://issues.apache.org/jira/browse/MSITE-854 has been filed
During investigation Michael Osipov find out the bug should be reported here
could you please take a look?
The markdown being parsed is very simple: https://github.com/apache/openmeetings/blob/master/openmeetings-server/src/site/markdown/InstallMediaServer.md
The text was updated successfully, but these errors were encountered: