Closed Aqua-Dream closed 5 years ago
I've checked the elements in Chrome. It seems that it works by removing the <p>
tag.
<li id="fn2" class="footnote-item"><p>... <a href="#fnref2" class="footnote-backref">↩︎</a> <a href="#fnref2:1" class="footnote-backref">↩︎</a></p></li>
to
<li id="fn2" class="footnote-item">... <a href="#fnref2" class="footnote-backref">↩︎</a> <a href="#fnref2:1" class="footnote-backref">↩︎</a></li>
Or change the attribute of <p>
from "display: block" to "display: contents"
online demo works as expected.
Copied from: https://github.com/CHENXCHEN/hexo-renderer-markdown-it-plus/issues/23#issue-423354262
My source file:
Behavior:
Where the extra new line is marked by a red arrow.