Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我的文档里有缩进,比如连续四个空格,实际我是段落缩进四个空格,但是被识别渲染成了代码块,这种应该怎么规避? #876

Closed
4 tasks done
intelligenceFY opened this issue Dec 11, 2024 · 5 comments
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on

Comments

@intelligenceFY
Copy link

Initial checklist

Affected package

"react-markdown": "^9.0.1",

Steps to reproduce

image
image

Actual behavior

四个空格渲染成了代码块

Expected behavior

正常缩进四个空格

Runtime

No response

Package manager

No response

Operating system

No response

Build and bundle tools

No response

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Dec 11, 2024
@JounQin
Copy link
Member

JounQin commented Dec 11, 2024

This is just how markdown works.

https://spec.commonmark.org/0.31.2/#indented-code-blocks

@JounQin JounQin closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024

This comment has been minimized.

@JounQin JounQin added the 🙋 no/question This does not need any changes label Dec 11, 2024
Copy link

Hi! Thanks for reaching out! Because we treat issues as our backlog, we close issues that are questions since they don’t represent a task to be completed.

See our support docs for how and where to ask questions.

Thanks,
— bb

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Dec 11, 2024
@rashidlasker
Copy link

How do I turn off indented code blocks though? This seems to have been broken since migrating to micromark, since remark-disable-tokenizers no longer works. Candidly, indented code blocks are unexpected by layman users, so having a way to disable them natively would be super useful. I haven't been able to find a working solution for many hours.

@intelligenceFY
Copy link
Author

intelligenceFY commented Jan 23, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

3 participants