Skip to content

Update from 2.19.1 to 2.20.0 destroys markdown rendering of code blocks #3133

@Asbelos

Description

@Asbelos

The unilateral github update from 2.19.1 to 2.20.0 changed the rendering of all markdown code blocks (identifiled with ```cpp header)

The entire code block was rendered as a single string, including the cpp marker) with no line breaks.

for example

foo(a);
bar(b);

is incorrectly rendered by 2.20.0 as "cpp foo(a); bar(b);"

Adding Pygments==2.19.1 to requirements.txt corrects the problem.

See attached files for requirtements.txt and a typical .md file containing a code block.

passing-loop.md
requirements.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions