Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: abnormal blockquote regexp (#404)

Mahoo Huanga1068b6fe33c
diff --git a/web/src/labs/marked/parser/Blockquote.ts b/web/src/labs/marked/parser/Blockquote.ts
index de18f4a2d..a30fe6f1e 100644
--- a/web/src/labs/marked/parser/Blockquote.ts
+++ b/web/src/labs/marked/parser/Blockquote.ts
@@ -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);