Skip to content

Code blocks broken inside markdown !!! note admonitions #208

Open
@davfsa

Description

@davfsa

Expected Behavior

Markdown is parsed properly

Actual Behavior

Weird behavior happens or wrong language gets parsed

Steps to Reproduce

  1. Have a !!! note with a codeblock in it.
    unknown

  2. Build the html and look at the output.
    unknown2

Additional notes

Intending the codeblock causes it to be detected as shell
unknown3

Also detects it as shell if you only intent it, even without the codeblock
unknown4

You can see a repo here: repro_API_documentation.txt
NOTE: Github doesnt allow uploading html, so you will have to download that and rename the extension to .html to view it

Additional info

  • pdoc version: 0.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamIssue affects a dependency of ours

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions