We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As of HTML 5 wrapping block element in <a> is valid HTML.
<a>
However this renderer breaks a construction with <a> links, because they will be wrapped in <p>:
<p>
MD input:
<a href="/asset/upload/post/2713/789f4b70fb52b581274758966463dd7b.zip" target="_blank"><div class="file-icon file-icon-xl" data-type="zip"></div></a>
HTML output:
<p><a href="/asset/upload/post/2713/789f4b70fb52b581274758966463dd7b.zip" target="_blank" rel="nofollow noopener"><div class="file-icon file-icon-xl" data-type="zip"></div></a></p>
And as a result browser will break everything by parsing it as:
<p><a href="/asset/upload/post/2713/789f4b70fb52b581274758966463dd7b.zip" target="_blank" rel="nofollow noopener"></a></p><div class="file-icon file-icon-xl" data-type="zip"></div><p></p>
Is there a way to make renderer not add <p> around <div> inside <a>?
<div>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As of HTML 5 wrapping block element in
<a>
is valid HTML.However this renderer breaks a construction with
<a>
links, because they will be wrapped in<p>
:MD input:
HTML output:
And as a result browser will break everything by parsing it as:
Is there a way to make renderer not add
<p>
around<div>
inside<a>
?The text was updated successfully, but these errors were encountered: