update: hr markdown parse

This commit is contained in:
yanmao 2022-01-07 14:49:36 +08:00
parent 48d6a8ac71
commit 66065ce7c2
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export default class<T extends HrOptions = HrOptions> extends Plugin<T> {
if (!isEngine(this.editor) || !this.markdown || !node.isText()) return;
const text = node.text();
const reg = /(^|\r\n|\n)([-]{3,})\s?(\r\n|\n|$)/;
const reg = /(^|\r\n|\n)((-\s*){3,})\s?(\r\n|\n|$)/;
const match = reg.exec(text);
return {
reg,