From 93edf204ce6bd58a14818625b94defb938539238 Mon Sep 17 00:00:00 2001 From: nicwands Date: Wed, 11 Mar 2026 13:45:10 -0400 Subject: [PATCH] instructions content rendering --- package-lock.json | 1 + package.json | 1 + src/renderer/src/content/instructions.md | 22 +++---- src/renderer/src/views/Instructions.vue | 74 ++++++------------------ 4 files changed, 31 insertions(+), 67 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3503c21..9f6fe01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,7 @@ "libsodium-wrappers": "^0.8.2", "lodash": "^4.17.23", "lowlight": "^3.3.0", + "markdown-it": "^14.1.1", "sass": "^1.97.3", "sass-embedded": "^1.97.3", "tempus": "^1.0.0-dev.17", diff --git a/package.json b/package.json index 8b4444c..b15f6cd 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "libsodium-wrappers": "^0.8.2", "lodash": "^4.17.23", "lowlight": "^3.3.0", + "markdown-it": "^14.1.1", "sass": "^1.97.3", "sass-embedded": "^1.97.3", "tempus": "^1.0.0-dev.17", diff --git a/src/renderer/src/content/instructions.md b/src/renderer/src/content/instructions.md index 71c3a20..eb0f295 100644 --- a/src/renderer/src/content/instructions.md +++ b/src/renderer/src/content/instructions.md @@ -1,8 +1,8 @@ Medieval Translation -Nota = Note -Capitulum = Category -Intructio = Instructions +Nota = Note\ +Capitulum = Category\ +Intructio = Instructions\ Tabula = Index/Overview \*This can be disabled via toolbar @@ -11,18 +11,18 @@ Tabula = Index/Overview Program Key Commands -cmd + s = save -cmd + t = new capitulum -cmd + n = new nota -cmd + x = close window -dbl click = change name / open nota +cmd + s = save\ +cmd + t = new capitulum\ +cmd + n = new nota\ +cmd + x = close window\ +dbl click = change name / open nota\ paste hyperlink twice = activated url --- Text Markdowns -cmd + b = Bold -cmd + u = underline ---- = ---------- (ruled line break) +cmd + b = Bold\ +cmd + u = underline\ +--- = ---------- (ruled line break)\ /_text_/ = Desaturated text diff --git a/src/renderer/src/views/Instructions.vue b/src/renderer/src/views/Instructions.vue index e116bcc..15d3320 100644 --- a/src/renderer/src/views/Instructions.vue +++ b/src/renderer/src/views/Instructions.vue @@ -2,65 +2,17 @@
<- Go Back -

- Medieval Translation Nota = Note Capitulum = Category Intructio = - Instructions Tabula = Index/Overview *This can be disabled via - toolbar -------------------------------------------- Program Key - Commands cmd + s = save cmd + t = new capitulum cmd + n = new nota - cmd + x = close window dbl click = change name / open nota paste - hyperlink twice = activated url - -------------------------------------------- Text Markdowns cmd + b - = Bold cmd + u = underline --- = ---------- (ruled line break) - /*text*/ = Desaturated text -

-

- Medieval Translation Nota = Note Capitulum = Category Intructio = - Instructions Tabula = Index/Overview *This can be disabled via - toolbar -------------------------------------------- Program Key - Commands cmd + s = save cmd + t = new capitulum cmd + n = new nota - cmd + x = close window dbl click = change name / open nota paste - hyperlink twice = activated url - -------------------------------------------- Text Markdowns cmd + b - = Bold cmd + u = underline --- = ---------- (ruled line break) - /*text*/ = Desaturated text -

-

- Medieval Translation Nota = Note Capitulum = Category Intructio = - Instructions Tabula = Index/Overview *This can be disabled via - toolbar -------------------------------------------- Program Key - Commands cmd + s = save cmd + t = new capitulum cmd + n = new nota - cmd + x = close window dbl click = change name / open nota paste - hyperlink twice = activated url - -------------------------------------------- Text Markdowns cmd + b - = Bold cmd + u = underline --- = ---------- (ruled line break) - /*text*/ = Desaturated text -

-

- Medieval Translation Nota = Note Capitulum = Category Intructio = - Instructions Tabula = Index/Overview *This can be disabled via - toolbar -------------------------------------------- Program Key - Commands cmd + s = save cmd + t = new capitulum cmd + n = new nota - cmd + x = close window dbl click = change name / open nota paste - hyperlink twice = activated url - -------------------------------------------- Text Markdowns cmd + b - = Bold cmd + u = underline --- = ---------- (ruled line break) - /*text*/ = Desaturated text -

-

- Medieval Translation Nota = Note Capitulum = Category Intructio = - Instructions Tabula = Index/Overview *This can be disabled via - toolbar -------------------------------------------- Program Key - Commands cmd + s = save cmd + t = new capitulum cmd + n = new nota - cmd + x = close window dbl click = change name / open nota paste - hyperlink twice = activated url - -------------------------------------------- Text Markdowns cmd + b - = Bold cmd + u = underline --- = ---------- (ruled line break) - /*text*/ = Desaturated text -

+
- +