aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/partials/mdhelp.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/partials/mdhelp.html')
-rw-r--r--internal/web/templates/partials/mdhelp.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/web/templates/partials/mdhelp.html b/internal/web/templates/partials/mdhelp.html
new file mode 100644
index 0000000..878130e
--- /dev/null
+++ b/internal/web/templates/partials/mdhelp.html
@@ -0,0 +1,9 @@
+{{define "mdhelp"}}<div class="card help">
+ <h3>Formatting cheat-sheet</h3>
+ <table class="cheat">
+ <tr><td><code># Heading</code>, <code>## Smaller heading</code></td><td><code>**bold**</code>, <code>*italic*</code></td></tr>
+ <tr><td><code>[link text](https://example.org)</code></td><td><code>![description](/media/…)</code> — copy the address from <em>Images</em></td></tr>
+ <tr><td><code>- list item</code> / <code>1. numbered</code></td><td><code>&gt; quote</code>, <code>`code`</code>, <code>---</code> for a line</td></tr>
+ </table>
+ <p class="muted">Blank line = new paragraph. Press Enter once for a line break.</p>
+</div>{{end}}