Unverified Commit a1068b6f authored by Mahoo Huang's avatar Mahoo Huang Committed by GitHub

fix: abnormal blockquote regexp (#404)

```markdown
面向具体实现编程 ==> 面向抽象接口编程
```.
面向具体实现编程 ==
> 面向抽象接口编程
parent 91a61e05
import { escape } from "lodash"; import { escape } from "lodash";
export const BLOCKQUOTE_REG = /> ([\S ]+)(\n?)/; export const BLOCKQUOTE_REG = /^>\s+([\S ]+)(\n?)/;
const renderer = (rawStr: string): string => { const renderer = (rawStr: string): string => {
const matchResult = rawStr.match(BLOCKQUOTE_REG); const matchResult = rawStr.match(BLOCKQUOTE_REG);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment