Skip to content

[BUG] Code block is not rendering properly #5160

@batchu5

Description

@batchu5

Describe the bug.

we are trying to add new mdx to the generator but the code blocks are not rendering properly.

Image

Expected behavior

code blocks should render as expected!

Screenshots

Not only the CoreMethods rendering issue, but there is also a coloring issue here. I'm attaching the two screenshots
Image

Image

In the first image, the imports are in green color, but in the second image, the imports are in blue.

And also, there are uneven padding issues. In the below example, the last two consts has left padding. I even checked if there is any extra spacing in this. But everything is good in md.

Image

How to Reproduce

Take the reference as this PR -> asyncapi/generator#1924

Add this api_components.mdx in pages\docs\tools\generator

example preview -> https://69916ee787f5c900931efc18--asyncapi-website.netlify.app/docs/tools/generator/api_components

🖥️ Device Information [optional]

  • Operating System (OS):
  • Browser:
  • Browser Version:

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriagedIssue has been reviewed and discussed

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions