markdown h1 header render error on windows and macos #7120
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.Description
When I compile the same Markdown file locally on two different systems, Windows and MacOS, I get two different effects.
Macos uses the first level title in Markdown as the title of the current document, but Windows displays both.
Personally, I think the preview method in MacOS is better.
Hopefully, officials can fix this problem by adding configuration, so as to avoid the preview differences between different systems.
macos
windows
Reproducible demo
No response
Steps to reproduce
NA
Expected behavior
NA
Actual behavior
NA
Your environment
{
"name": "notes.frankfeekr.cn",
"version": "0.0.1",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-beta.18",
"@docusaurus/preset-classic": "^2.0.0-beta.18",
"@easyops-cn/docusaurus-search-local": "0.23.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1",
"plugin-image-zoom": "^1.1.0",
"prism-react-renderer": "^1.3.1",
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Self-service
The text was updated successfully, but these errors were encountered: