cherry-markdown
cherry-markdown copied to clipboard
[Bug Report]手风琴语法单独使用无法识别
Prerequisites
- [X] There isn't an existing issue that reports the same bug to avoid duplicates.
- [ ] The provided information offers a minimal reproducible example of the bug.
- [ ] For Q&A, please open a GitHub Discussion instead.
Describe the Bug
问题
手风琴语法单独使用无法识别
修复方案
将regexp.js#L254的正则修改为:
begin: /(?:^|\n)(\n*[^\S\n]*)\+\+([+-]?)\s+([^\n]+)\n/,
修复效果
另外
这个项目看起来有点混乱。
- 部分语法的正则写在
regexp
里面,有一部分还写在ParagraphBase
的子类里面 - 语法的样式过于混乱,都用了scss为什么不把样式拆分到子文件来和语法名称对应(Detail语法对应Detail.scss这样),也方便后期维护和管理
Reproduction Steps
No response
System Information
No response
Contributing
No, I don't plan to at this time.