aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorwinter2025-02-14 21:24:55 +0000
committerwinter2025-02-14 21:24:55 +0000
commit241eb9eded161671d3d8e5bf4a3f7b04907037f1 (patch)
tree25d65d68125b66b545ea24c734a1e81551952524 /templates
parentd10aad87ddebd4857a90b6d638aac803d7373dc6 (diff)
make markdown nicer
Diffstat (limited to 'templates')
-rw-r--r--templates/reply_form.php5
-rw-r--r--templates/write_note_form.php5
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/reply_form.php b/templates/reply_form.php
index 6bc35dd..8a9abf5 100644
--- a/templates/reply_form.php
+++ b/templates/reply_form.php
@@ -30,6 +30,11 @@ $selectedScope = $note->privacy->scope->value;
value="<?= $summaryText ?>" placeholder="<?= __('writeNote.summary.label') ?>">
<textarea id="replyContent-<?= $note->id ?>" name="content" required autocomplete="off"
placeholder="<?= __('writeReply.placeholder') ?>"></textarea>
+ <span class="hint">
+ <span class="inlineIcon material-symbols markdown-outline"></span>
+ <?= sprintf(__('writeNote.formattingHint'),
+ '<a href="https://commonmark.org/help/" target="_blank">' . __('writeNote.formattingHint.markdown') . '</a>') ?>
+ </span>
</div>
<details>
<summary><?= __('writeNote.moreOptions') ?></summary>
diff --git a/templates/write_note_form.php b/templates/write_note_form.php
index 9294a7c..5d86722 100644
--- a/templates/write_note_form.php
+++ b/templates/write_note_form.php
@@ -21,6 +21,11 @@
placeholder="<?= __('writeNote.summary.label') ?>">
<textarea name="content" id="noteContent" required autocomplete="off"
placeholder="<?= __('writeNote.placeholder') ?>"></textarea>
+ <span class="hint">
+ <span class="inlineIcon material-symbols markdown-outline"></span>
+ <?= sprintf(__('writeNote.formattingHint'),
+ '<a href="https://commonmark.org/help/" target="_blank">' . __('writeNote.formattingHint.markdown') . '</a>') ?>
+ </span>
</div>
<details>
<summary><?= __('writeNote.moreOptions') ?></summary>