cherry-markdown icon indicating copy to clipboard operation
cherry-markdown copied to clipboard

[Bug Report]手风琴语法单独使用无法识别

Open AnkioTomas opened this issue 8 months ago • 4 comments

Prerequisites

Describe the Bug

问题

手风琴语法单独使用无法识别 image

修复方案

regexp.js#L254的正则修改为:

    begin: /(?:^|\n)(\n*[^\S\n]*)\+\+([+-]?)\s+([^\n]+)\n/,

修复效果

image

另外

这个项目看起来有点混乱。

  • 部分语法的正则写在regexp里面,有一部分还写在ParagraphBase的子类里面
  • 语法的样式过于混乱,都用了scss为什么不把样式拆分到子文件来和语法名称对应(Detail语法对应Detail.scss这样),也方便后期维护和管理

Reproduction Steps

No response

System Information

No response

Contributing

No, I don't plan to at this time.

AnkioTomas avatar Jun 22 '24 14:06 AnkioTomas