Commit Graph

157 Commits

Author SHA1 Message Date
pablon 465daa0f78
fix(callouts): render nested code blocks inside GFM/GLFM alerts
The callout preprocessor ran AFTER the fenced-code extraction pass, so
a code block nested inside a callout blockquote (each line prefixed
with `> `) was captured whole \u2014 including the leading `> ` on the
closing fence. When the placeholder was later restored inside the raw
`<div class="callout-body">`, the closing line `> \`\`\`` no longer sat
at 0-3 leading spaces, so CommonMark did not recognize it as a fence
closer. marked.js ran the block unclosed, swallowed the callout's
`</div></div>` and every downstream node, and the render leaked as raw
blockquote text.

Reorder the pipeline so callouts are converted BEFORE code-block
extraction. The scan is fence-aware (backticks and tildes) so a
literal `> [!TYPE]\' inside a top-level code block is not misread as a
callout. Mirrored in backend/export.py so the standalone export matches
the in-app preview.

Verified end-to-end against a 12-case matrix covering GFM (github.com)
and GLFM (gitlab.com) alert syntax: nested backtick fence (bug),
nested tilde fence, all 5 types in UPPERCASE, GitLab lowercase with
custom title, empty callout, plain blockquote passthrough, literal
`[!TIP]` inside top-level backtick and tilde fences (regression),
rich body markdown, paragraph separators, adjacent callouts, and
nested-alert attempts (GFM disallows nesting).

Signed-off-by: pablon <73798198+pablon@users.noreply.github.com>
2026-07-09 15:17:35 +02:00
Gamosoft b1a8f8ad7f fix for tasks 2026-07-06 09:55:05 +02:00
Gamosoft f8f697ea59 optimistic vault operations => more speed 2026-06-30 14:54:01 +02:00
Gamosoft c21d44a169 added loading indicator for large vaults 2026-06-30 12:26:32 +02:00
Gamosoft da748caf42 double-click issue 2026-06-29 13:07:00 +02:00
Gamosoft 581a95b1c8 added callout support 2026-06-29 12:19:06 +02:00
Gamosoft 5ca346dade fixed PDFs not displayed 2026-06-10 18:20:55 +02:00
Gamosoft c939cdd463 configurable autosave 2026-06-08 11:02:05 +02:00
Gamosoft febf5e27fd documentation added / comments removed 2026-06-04 14:24:03 +02:00
Gamosoft 7563e02872 quick create 2026-06-04 13:21:49 +02:00
Gamosoft 91cda175c7 added sidebar 2026-05-29 12:30:23 +02:00
Gamosoft a706ab2e12 small text tool fixes 2026-05-11 10:52:15 +02:00
Gamosoft fbd0730f01 added text tool 2026-05-07 14:30:55 +02:00
Gamosoft 984e10e30f remember scroll 2026-05-04 19:50:38 +02:00
Gamosoft a7995edace added fill bucket 2026-05-04 19:45:12 +02:00
Gamosoft c80e164581 added SHIFT + TAB behavior to decrease indent 2026-05-04 19:44:16 +02:00
Gamosoft fe5d3984b5 smaller drawing sizes 2026-04-24 16:29:29 +02:00
Gamosoft a0e85045d5 changed to fixed drawing dimensions 2026-04-24 15:29:00 +02:00
Gamosoft 142a3a59cd added display of currently shared notes 2026-04-22 15:38:16 +02:00
Gamosoft 82cdd12d19 refactor and limits change 2026-04-21 18:00:50 +02:00
Gamosoft 7edbc28a9c added more tools, fixed locales 2026-04-21 17:39:22 +02:00
Gamosoft c83454ae2b save drawings with no toast 2026-04-21 16:34:34 +02:00
Gamosoft 5f98ed3d53 don't clear undo stack on drawing save 2026-04-21 16:04:39 +02:00
Gamosoft ef82c277c0 changed target folder, fixed bugs 2026-04-21 16:00:58 +02:00
Gamosoft cb6725f11c added drawing support 2026-04-21 15:22:09 +02:00
Gamosoft a63b79b549 fixed duplicate label texts 2026-04-20 12:45:41 +02:00
Gamosoft 2c6f0b6b50 added missing hardcoded mouseovers 2026-04-20 12:17:15 +02:00
Gamosoft 48695b94be replace confirm 2026-04-17 09:39:52 +02:00
Gamosoft f1c35be539 change prompt & confirm 2026-04-17 09:27:36 +02:00
Gamosoft 16b4747eb6 replaced alerts with toast notifications 2026-04-16 18:17:34 +02:00
Gamosoft f137ff9562 continuation for ordered lists 2026-04-13 17:12:04 +02:00
Gamosoft e3afede989 fix for media path traversal 2026-04-13 16:11:55 +02:00
Gamosoft 42ad089b04 added continuation features 2026-04-12 18:46:35 +02:00
Gamosoft 70982f81c1 added support for external protocols 2026-04-06 16:30:27 +02:00
Gamosoft e94cd88d63 removed hack 2026-04-06 16:02:23 +02:00
Gamosoft 1206e7e50f added sorting option 2026-04-06 16:00:00 +02:00
Gamosoft 80797f9cfe added print preview option 2026-04-06 12:58:38 +02:00
Gamosoft 96b5fd8cfc removed client-side export/added modern latex notation 2026-04-06 12:01:52 +02:00
Gamosoft cd9b5e7d7b tab key inserts tab 2026-04-06 11:25:21 +02:00
Gamosoft efe199b463 added UI pane for backlinks! 2026-03-24 12:02:34 +01:00
Gamosoft 23a5fb342f html sanitization to avoid XSS 2026-03-03 09:27:01 +01:00
Gamosoft 99c1fd0d36 fixed flashing/changed search debounce 2026-02-23 17:51:11 +01:00
Guillermo Villar 3495c0d9ee
Merge pull request #173 from ricky-davis/feat/better-search
feat: debounce search input
2026-02-23 17:46:46 +01:00
Gamosoft 7dd836f539 added toggle to hide system folders/consistent hover styles 2026-02-23 10:59:58 +01:00
Gamosoft de66ad01c7 fixed media preview 2026-02-23 10:52:25 +01:00
Gamosoft 0fa43ea96c changed to key for shortcuts 2026-02-23 10:16:52 +01:00
rdavis e0b6fd06e4 Add better search with debounce 2026-02-20 01:50:22 -06:00
Gamosoft 4ca909b1a8 added QR code generation 2026-02-09 18:55:55 +01:00
Gamosoft fd7a925338 set focus on new note when creating 2026-02-09 18:17:12 +01:00
Gamosoft 23a1ef579f try to fix misalignment in headers 2026-02-02 18:28:30 +01:00