Commit graph

2 commits

Author SHA1 Message Date
matt 837465e81f Make Markdown typing shortcuts work everywhere in the editor
Tiptap's built-in bold/italic input rules only fire after whitespace,
so **bold** typed after punctuation (an em dash, an open paren, a
colon) never converted, and [text](url) had no input rule at all. A
small extension adds punctuation-tolerant bold/italic rules (using
lookbehinds so the preceding character isn't swallowed by the rule's
range deletion) and a link rule that fires on the closing parenthesis.
Link URLs pass the same validator as navigation links, so javascript:
URLs stay as plain text, and mid-word patterns like 2**3** are left
alone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 13:05:41 -04:00
matt 32177b33f5 Build yap-blog platform 2026-07-02 21:32:33 -04:00