From ad339ef815019d82e55d4d30875942cbdcc41605 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Wed, 26 Jul 2023 13:04:16 -0700 Subject: [PATCH] feat: add federation markdown and fix #19 --- src/lib/components/markdown/Markdown.svelte | 33 +++++++++++++++++---- src/lib/components/markdown/markdown.ts | 6 ++++ 2 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 src/lib/components/markdown/markdown.ts diff --git a/src/lib/components/markdown/Markdown.svelte b/src/lib/components/markdown/Markdown.svelte index ad668c50..0d43d910 100644 --- a/src/lib/components/markdown/Markdown.svelte +++ b/src/lib/components/markdown/Markdown.svelte @@ -1,11 +1,32 @@
diff --git a/src/lib/components/markdown/markdown.ts b/src/lib/components/markdown/markdown.ts new file mode 100644 index 00000000..1550c5c1 --- /dev/null +++ b/src/lib/components/markdown/markdown.ts @@ -0,0 +1,6 @@ +import MarkdownIt from 'markdown-it' + +export const md = new MarkdownIt({ + html: false, + linkify: true, +})