nextra icon indicating copy to clipboard operation
nextra copied to clipboard

Code Block without language option

Open tamagoez opened this issue 3 years ago • 4 comments

[a={b=b}] will cause error. 2nd b will recognize as command. I tried MDX Playground, but it seems working fine. image image

tamagoez avatar Apr 25 '22 14:04 tamagoez

Hi @tamagoez did you figure out why it happens?

shuding avatar Apr 27 '22 13:04 shuding

When I add markdown after ```, it worked. When I use code block without any language, it will not show any code blocks, but plain text. [a={b=b}] seems parsed as b=b(Javascript).

tamagoez avatar Apr 29 '22 10:04 tamagoez

Thanks for the details, will keep this open and we can dig deeper in the future.

shuding avatar Apr 29 '22 11:04 shuding

FYI, Code blocks without language is working for me in blog-theme v2.0.0-beta.13

numToStr avatar Aug 02 '22 11:08 numToStr

closing since now it's works fine image

dimaMachina avatar Aug 20 '22 14:08 dimaMachina