-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Bug found and solution
When you decide to export as markdown, you may found the ordered list items are not displayed properly.
【当选择以markdown导出的时候,有序列表的序号可能无法正常显示。】
If you get 【如果导出时显示】
[object Object]. 1111
[object Object]. 2222
instead of 【而不是】
1. 1111
2. 2222
Here is how to fix it.
- locate the file
PROJECT_DIR\node_modules\brilliant-editor\dist\brilliant-editor.cjs.development.js - locate the line 4712
markdownString += (customStyleItems[type] || StyleItems[type]).open(block, orderedListNumber[block.depth]); - change it to
markdownString += (customStyleItems[type] || StyleItems[type]).open(orderedListNumber[block.depth]);
【解决方法如下】
- 找到文件:
项目目录\node_modules\brilliant-editor\dist\brilliant-editor.cjs.development.js - 定位第4712行:
markdownString += (customStyleItems[type] || StyleItems[type]).open(block, orderedListNumber[block.depth]); - 讲第4712行改为:
markdownString += (customStyleItems[type] || StyleItems[type]).open(orderedListNumber[block.depth]);
Hope this post could help you. Happy hacking.
psybor
Metadata
Metadata
Assignees
Labels
No labels