update: hr markdown parse
This commit is contained in:
parent
48d6a8ac71
commit
66065ce7c2
|
@ -74,7 +74,7 @@ export default class<T extends HrOptions = HrOptions> extends Plugin<T> {
|
||||||
if (!isEngine(this.editor) || !this.markdown || !node.isText()) return;
|
if (!isEngine(this.editor) || !this.markdown || !node.isText()) return;
|
||||||
|
|
||||||
const text = node.text();
|
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);
|
const match = reg.exec(text);
|
||||||
return {
|
return {
|
||||||
reg,
|
reg,
|
||||||
|
|
Loading…
Reference in New Issue