We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d312035 commit 0025461Copy full SHA for 0025461
2 files changed
MyApp/wwwroot/lib/mjs/markdown.mjs
@@ -0,0 +1,12 @@
1
+import { Marked } from "./marked.min.mjs"
2
+
3
+const marked = (() => {
4
+ const ret = new Marked()
5
+ //ret.use({ extensions: [divExtension()] })
6
+ return ret
7
+})()
8
9
+export function renderMarkdown(body) {
10
+ const rawHtml = marked.parse(body, { async:false })
11
+ return rawHtml
12
+}
0 commit comments