website icon indicating copy to clipboard operation
website copied to clipboard

[BUG] Code block is not rendering properly

Open batchu5 opened this issue 9 months ago • 11 comments

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 -> https://github.com/asyncapi/generator/pull/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?

  • [x] I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

batchu5 avatar Feb 16 '26 11:02 batchu5

hey @batchu5 , please have a look the issue title ,I think you missed 'not ' also you have selected non in willingness so Can i take it after approval?

SHUBHANSHU602 avatar Feb 16 '26 21:02 SHUBHANSHU602

yep. Feel free to take it

batchu5 avatar Feb 17 '26 17:02 batchu5

Ohk @batchu5 after approval I will work in this.

SHUBHANSHU602 avatar Feb 17 '26 17:02 SHUBHANSHU602

go ahead

princerajpoot20 avatar Feb 21 '26 16:02 princerajpoot20

Hey! @SHUBHANSHU602, are you currently working on this issue?

Amythystx avatar Feb 26 '26 01:02 Amythystx

Yes

SHUBHANSHU602 avatar Feb 26 '26 03:02 SHUBHANSHU602

@wei123-web you can work on this as I am presently indulge in some other works and not getting time for this one.

SHUBHANSHU602 avatar Mar 12 '26 07:03 SHUBHANSHU602

@wei123-web are you working on it?

SHUBHANSHU602 avatar Mar 19 '26 16:03 SHUBHANSHU602

hey @SHUBHANSHU602, yes I’m working on this issue. I’m a bit busy with exams but I’ll continue working on it and share updates soon.

Amythystx avatar Mar 19 '26 16:03 Amythystx

@wei123-web take your time I was just asking because I was going through a similar problem so i asked if you are not working then I will . Take your time , best of luck for your exams.

SHUBHANSHU602 avatar Mar 20 '26 04:03 SHUBHANSHU602

Thanks @SHUBHANSHU602! I’m currently working on it and will share an update soon.

Amythystx avatar Mar 20 '26 05:03 Amythystx