diff --git a/TODO.md b/TODO.md index f72adf7..0713038 100644 --- a/TODO.md +++ b/TODO.md @@ -7,7 +7,7 @@ A more complex version of this list is available [here](https://trello.com/b/kJw - [ ] Documentation - [ ] Emoji picker - [ ] Images/Attatchments support -- [ ] Markdown Support +- [X] Markdown Support - [ ] Profile photos - [ ] Reactive channels list - [ ] Show characters before message gets cut off in textarea diff --git a/bun.lockb b/bun.lockb index e802048..5c6b35a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index b1ae95a..9338826 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,8 @@ "@eslint/js": "^9.18.0", "@sveltejs/kit": "^2.16.0", "@sveltejs/vite-plugin-svelte": "^5.0.0", + "@tailwindcss/typography": "^0.5.16", + "@types/markdown-it": "^14.1.2", "autoprefixer": "^10.4.20", "bits-ui": "^0.22.0", "clsx": "^2.1.1", @@ -26,6 +28,7 @@ "eslint-config-prettier": "^10.0.1", "eslint-plugin-svelte": "^2.46.1", "globals": "^15.14.0", + "markdown-it": "^14.1.0", "prettier": "^3.4.2", "prettier-plugin-svelte": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.11", diff --git a/src/lib/components/message.svelte b/src/lib/components/message.svelte index 369a955..9804cc2 100644 --- a/src/lib/components/message.svelte +++ b/src/lib/components/message.svelte @@ -1,6 +1,8 @@ @@ -12,7 +14,7 @@
{user}
-{@html escapeHTML(message)}+