Skip to content

[BUG] Code blocks are not properly rendered in the README.md file #765

@zolakt

Description

@zolakt

I'm not sure if I'm doing it right, but I just can't get it to work. I'm using the same example as you have on your demo app README.md.

This is the code I add to the readme file:

function hello() {
    console.log('hello world !');
}

And this is the output I get:
image

As you can see it's not transformed to html correctly. There is no pre block. There is no "language" attribute on the code block... so prism.js doesn't pick it up.

I'm using the the 1.1.9 version. Tried also with 1.1.8 and 1.1.7... same result.
Am I doing something wrong or is it a bug?

Unrelated, but table syntax also doesn't work in README.md

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions