Skip to content

Footnotes rendering. #1

Description

@Nable80

Hi!
I came across your website today (btw, thank you very much for your articles!) and it seems to me that I've found a bug in markdown rendering. At first I've noticed it here: https://www.labbott.name/blog/2016/11/29/virt-to-phys-and-back-again/

Original markdown source looks like this:

[^1]: For purposes of this discussion, `virt_to_phys` includes several
functions that while not identical are similar enough to assume they do the
same thing. `__pa` and `__virt_to_phys` are included in this category.

[^2]: If your distro supports it, try running `cat
/sys/kernel/debug/kernel_page_tables` to see the entire virtual address space.

But on your website it becomes this:

<p>functions that while not identical are similar enough to assume they do the
same thing. <code class="language-plaintext highlighter-rouge">__pa</code> and <code class="language-plaintext highlighter-rouge">__virt_to_phys</code> are included in this category.</p>

<p>/sys/kernel/debug/kernel_page_tables` to see the entire virtual address space.</p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p>For purposes of this discussion, <code class="language-plaintext highlighter-rouge">virt_to_phys</code> includes several <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
    <li id="fn:2" role="doc-endnote">
      <p>If your distro supports it, try running `cat <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>

Line breaks in the source code literally broke the rendering of footnotes, only the first line of each footnote is in its place, while remaining text is placed before the div class="footnotes", here is a screenshot:

image

Did I get anything wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions