diff --git a/web/src/labs/marked/parser/Bold.ts b/web/src/labs/marked/parser/Bold.ts
index 578a6ed48411e..af8b8756e36c3 100644
--- a/web/src/labs/marked/parser/Bold.ts
+++ b/web/src/labs/marked/parser/Bold.ts
@@ -1,5 +1,6 @@
import { marked } from "..";
import Link from "./Link";
+import PlainText from "./PlainText";
export const BOLD_REG = /\*\*(.+?)\*\*/;
@@ -14,7 +15,7 @@ const renderer = (rawStr: string): string => {
return rawStr;
}
- const parsedContent = marked(matchResult[1], [], [Link]);
+ const parsedContent = marked(matchResult[1], [], [Link, PlainText]);
return `${parsedContent}`;
};
diff --git a/web/src/labs/marked/parser/BoldEmphasis.ts b/web/src/labs/marked/parser/BoldEmphasis.ts
index 0fdf37ebbbe46..450589b24ad99 100644
--- a/web/src/labs/marked/parser/BoldEmphasis.ts
+++ b/web/src/labs/marked/parser/BoldEmphasis.ts
@@ -1,5 +1,6 @@
import { marked } from "..";
import Link from "./Link";
+import PlainText from "./PlainText";
export const BOLD_EMPHASIS_REG = /\*\*\*(.+?)\*\*\*/;
@@ -14,7 +15,7 @@ const renderer = (rawStr: string): string => {
return rawStr;
}
- const parsedContent = marked(matchResult[1], [], [Link]);
+ const parsedContent = marked(matchResult[1], [], [Link, PlainText]);
return `${parsedContent}`;
};
diff --git a/web/src/labs/marked/parser/Emphasis.ts b/web/src/labs/marked/parser/Emphasis.ts
index e339bf3a112c1..b8f91260fc3f6 100644
--- a/web/src/labs/marked/parser/Emphasis.ts
+++ b/web/src/labs/marked/parser/Emphasis.ts
@@ -1,5 +1,6 @@
import { marked } from "..";
import Link from "./Link";
+import PlainText from "./PlainText";
export const EMPHASIS_REG = /\*(.+?)\*/;
@@ -14,7 +15,7 @@ const renderer = (rawStr: string): string => {
return rawStr;
}
- const parsedContent = marked(matchResult[1], [], [Link]);
+ const parsedContent = marked(matchResult[1], [], [Link, PlainText]);
return `${parsedContent}`;
};
diff --git a/web/src/labs/marked/parser/Link.ts b/web/src/labs/marked/parser/Link.ts
index 7b9ac4fc72cee..89c4ae65e12c3 100644
--- a/web/src/labs/marked/parser/Link.ts
+++ b/web/src/labs/marked/parser/Link.ts
@@ -4,6 +4,7 @@ import Bold from "./Bold";
import { marked } from "..";
import InlineCode from "./InlineCode";
import BoldEmphasis from "./BoldEmphasis";
+import PlainText from "./PlainText";
export const LINK_REG = /\[(.*?)\]\((.+?)\)+/;
@@ -17,7 +18,7 @@ const renderer = (rawStr: string): string => {
if (!matchResult) {
return rawStr;
}
- const parsedContent = marked(matchResult[1], [], [InlineCode, BoldEmphasis, Emphasis, Bold]);
+ const parsedContent = marked(matchResult[1], [], [InlineCode, BoldEmphasis, Emphasis, Bold, PlainText]);
return `${parsedContent}`;
};