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",
"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",

View File

@@ -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",

View File

@@ -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

View File

@@ -2,65 +2,17 @@
<main class="instructions layout-block">
<router-link class="back-link" to="/"><- Go Back</router-link>
<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>
<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>
<div class="content" v-html="renderedContent" />
</main>
</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">
main.instructions {
@@ -70,5 +22,15 @@ main.instructions {
margin-top: 9px;
margin-bottom: 14px;
}
.content {
display: flex;
flex-direction: column;
gap: 20px;
hr {
border-bottom: 1px dashed currentColor;
}
}
}
</style>