mirror of
https://github.com/usememos/memos.git
synced 2024-11-11 07:24:18 +03:00
fix: abnormal blockquote regexp (#404)
```markdown 面向具体实现编程 ==> 面向抽象接口编程 ```. 面向具体实现编程 == > 面向抽象接口编程
This commit is contained in:
parent
91a61e058a
commit
a1068b6fe3
@ -1,6 +1,6 @@
|
||||
import { escape } from "lodash";
|
||||
|
||||
export const BLOCKQUOTE_REG = /> ([\S ]+)(\n?)/;
|
||||
export const BLOCKQUOTE_REG = /^>\s+([\S ]+)(\n?)/;
|
||||
|
||||
const renderer = (rawStr: string): string => {
|
||||
const matchResult = rawStr.match(BLOCKQUOTE_REG);
|
||||
|
Loading…
Reference in New Issue
Block a user