diff options
| author | grm <grm@eyesin.space> | 2026-09-12 12:26:17 +0300 |
|---|---|---|
| committer | grm <grm@eyesin.space> | 2026-09-12 12:26:17 +0300 |
| commit | 2b450b66fee4906e746f6e04a6d07a72ff2faf64 (patch) | |
| tree | ba2dbb3d9b3580113510dbf24d4ffe660cf95b26 /internal/web/templates/partials/mdhelp.html | |
| parent | 336199c65d910bbd45a9c5dcbc3beae214d75b98 (diff) | |
| download | blogspace-2b450b66fee4906e746f6e04a6d07a72ff2faf64.tar.gz blogspace-2b450b66fee4906e746f6e04a6d07a72ff2faf64.tar.bz2 blogspace-2b450b66fee4906e746f6e04a6d07a72ff2faf64.zip | |
Insert images straight from the Markdown editor
A shared editor partial adds an "Insert image" file picker plus paste and
drag-and-drop on the textarea; a few lines of inline JS upload the file to
the existing images endpoint (which now answers JSON when asked) and put
the Markdown at the caret. Without JS the same file rides along with the
form and is appended to the text on save, so nothing depends on scripting.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/web/templates/partials/mdhelp.html')
| -rw-r--r-- | internal/web/templates/partials/mdhelp.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/templates/partials/mdhelp.html b/internal/web/templates/partials/mdhelp.html index 4623c07..3584025 100644 --- a/internal/web/templates/partials/mdhelp.html +++ b/internal/web/templates/partials/mdhelp.html @@ -2,7 +2,7 @@ <summary>Formatting cheat-sheet</summary> <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></code> — or use <em>Insert image</em></td></tr> + <tr><td><code>[link text](https://example.org)</code></td><td><code></code> — <em>Insert image</em> writes this for you</td></tr> <tr><td><code>- list item</code> / <code>1. numbered</code></td><td><code>> quote</code>, <code>`code`</code>, <code>---</code> for a line</td></tr> </table> <p class="muted small">Blank line = new paragraph. Press Enter once for a line break.</p> |
