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 link regex (#474)

Mahoo Huang67195859dc6d
diff --git a/web/src/labs/marked/parser/Link.ts b/web/src/labs/marked/parser/Link.ts
index 5e84f1665..e25b8142c 100644
--- a/web/src/labs/marked/parser/Link.ts
+++ b/web/src/labs/marked/parser/Link.ts
@@ -5,7 +5,7 @@ import { marked } from "..";
import InlineCode from "./InlineCode";
import BoldEmphasis from "./BoldEmphasis";
-export const LINK_REG = /\[(.*?)\]\((.+?)\)/;
+export const LINK_REG = /\[(.*?)\]\((.+?)\)+/;
const renderer = (rawStr: string): string => {
const matchResult = rawStr.match(LINK_REG);