Menu

#940 [Bug] The CommonMark parser does not render CM `<pre><code>`s inside CM `blockquote>`s or `li`s.

open
nobody
None
2025-11-04
2025-11-02
No

At p/opencamera/tickets/1299/#ticket_content, I posted:

###### My Environment


1.  ###### The Application

    <blockquote>

    ~~~ini
    sourcePackage=net.sourceforge.opencamera
    versionName=1.55
    versionCode=93
    ~~~

    </blockquote>


1.  ###### The OS

    <blockquote>

    ~~~YAML
    [ro.build.version.release]: [15]
    [ro.build.display.id]: [FP5.VT2E.C.059.20250908]
    ~~~

    </blockquote>


1.  ###### The Device

    <blockquote>

    ~~~YAML
    [ro.product.brand]: [Fairphone]
    [ro.build.product]: [FP5]
    ~~~

    </blockquote>

This does not render remotely correctly, because:

  1. It did not render the CommonMark <pre><code>s (~~~s) inside the <blockquote>/>s. (I can't even surround the aforequoted with >s!)

  2. It did not render the ~~~s inside the <ol>'s <li>s.

1 Attachments

Discussion

  • SourceForge Support

    Hello,

    Yes, mixing Markdown and HTML has various limitations and not all combinations are possible. Additionally, mixing or nesting different Markdown block types, such as lists and code does not always work either.

    I would recommend a simpler structure, such as section headings and code blocks, and remove the lists and blockquotes.

    Sincerely,
    SourceForge.net Support

     
    • Mr. Beedell, Roke Julian Lockhart (RJLB)

      It works in GitLab, GitHub, Forgejo, Gitea, and VS Code, however.

       
  • SourceForge Support

    Ticket moved from /p/forge/site-support/27153/

    Can't be converted:

     
    👍
    1
    • Mr. Beedell, Roke Julian Lockhart (RJLB)

      @sf-support, thanks. However, the title has been truncated:

      [Bug] The CommonMark parser does not render CM <pre><code>s inside CM...

       

Log in to post a comment.

MongoDB Logo MongoDB