instructions content rendering

This commit is contained in:
nicwands
2026-03-11 13:45:10 -04:00
parent 4d04f4f2ff
commit 93edf204ce
4 changed files with 31 additions and 67 deletions

1
package-lock.json generated
View File

@@ -29,6 +29,7 @@
"libsodium-wrappers": "^0.8.2", "libsodium-wrappers": "^0.8.2",
"lodash": "^4.17.23", "lodash": "^4.17.23",
"lowlight": "^3.3.0", "lowlight": "^3.3.0",
"markdown-it": "^14.1.1",
"sass": "^1.97.3", "sass": "^1.97.3",
"sass-embedded": "^1.97.3", "sass-embedded": "^1.97.3",
"tempus": "^1.0.0-dev.17", "tempus": "^1.0.0-dev.17",

View File

@@ -45,6 +45,7 @@
"libsodium-wrappers": "^0.8.2", "libsodium-wrappers": "^0.8.2",
"lodash": "^4.17.23", "lodash": "^4.17.23",
"lowlight": "^3.3.0", "lowlight": "^3.3.0",
"markdown-it": "^14.1.1",
"sass": "^1.97.3", "sass": "^1.97.3",
"sass-embedded": "^1.97.3", "sass-embedded": "^1.97.3",
"tempus": "^1.0.0-dev.17", "tempus": "^1.0.0-dev.17",

View File

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

View File

@@ -2,65 +2,17 @@
<main class="instructions layout-block"> <main class="instructions layout-block">
<router-link class="back-link" to="/"><- Go Back</router-link> <router-link class="back-link" to="/"><- Go Back</router-link>
<p> <div class="content" v-html="renderedContent" />
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
</p>
<p>
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
</p>
<p>
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
</p>
<p>
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
</p>
<p>
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
</p>
</main> </main>
</template> </template>
<script setup></script> <script setup>
import content from '@/content/instructions.md?raw'
import MarkdownIt from 'markdown-it'
const md = new MarkdownIt()
const renderedContent = md.render(content)
</script>
<style lang="scss"> <style lang="scss">
main.instructions { main.instructions {
@@ -70,5 +22,15 @@ main.instructions {
margin-top: 9px; margin-top: 9px;
margin-bottom: 14px; margin-bottom: 14px;
} }
.content {
display: flex;
flex-direction: column;
gap: 20px;
hr {
border-bottom: 1px dashed currentColor;
}
}
} }
</style> </style>