diff --git a/package.json b/package.json
index 8a69d21..8d132c9 100644
--- a/package.json
+++ b/package.json
@@ -15,13 +15,20 @@
"@bookhoard/foliate-js": "git+https://git.linuxhg.com/Bookhoard/foliate-js.git#b7597d6",
"alpinejs": "^3.15.8",
"chart.js": "^4.5.1",
+ "dompurify": "^3.4.16",
"highlight.js": "^11.11.1",
"htmx.org": "^2.0.8",
- "lunr": "^2.3.9"
+ "lunr": "^2.3.9",
+ "markdown-it": "^15.0.2",
+ "markdown-it-footnote": "^4.0.0",
+ "turndown": "^7.2.4",
+ "turndown-plugin-gfm": "^1.0.2"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/typography": "^0.5.19",
+ "@types/markdown-it": "^14.2.0",
+ "@types/turndown": "^5.0.6",
"autoprefixer": "^10.4.27",
"tailwindcss": "^3.4.19",
"typescript": "^5.9.3",
diff --git a/templates/reader.templ b/templates/reader.templ
index aaee80c..cc0ed08 100644
--- a/templates/reader.templ
+++ b/templates/reader.templ
@@ -178,7 +178,9 @@ templ Reader(user User, metadata ReaderMetadata) {
rows="3"
class="reader-note-input"
placeholder="Note…"
+ @paste="richNotePaste"
>
+
Markdown supported — rich-text paste converts to markdown
-
+