Repository navigation
Writ 0.4.11
Second of three staged drops toward 0.5.0. Two render-side text transformations.
Closes #16 β Emoji shortcodes
Write :rocket:, get π. The HTML preview and PDF/HTML export now substitute :name: tokens against a curated table of ~200 GitHub-style emoji shortcodes:
```
Ship it π β β¨ looks great! π
```
renders as: Ship it π β β¨ looks great! π
Unknown tokens (:not_a_real:) pass through verbatim, no warning. Inside backticks / fenced code blocks the literal :rocket: stays as text. :+1: and :-1: aliases included alongside :thumbsup: / :thumbsdown:.
Closes #21 β Autolink bare URLs (GFM-style)
Bare https://example.com and www.example.com are now clickable in the rendered output without requiring <β¦> brackets or explicit [text](url) syntax. Trailing punctuation stays outside the link, and balanced parens are handled:
Visit https://foo.com.β "https://foo.com\" link + trailing period(see https://foo.com)β "https://foo.com\" link + trailing close-parenwww.example.comβ linked withhttp://prefix in the href- URLs inside backticks stay literal
- URLs inside an existing
[text](url)aren't double-wrapped
Implementation
Both live in the new InlineTextTransform helper in WritParser, called from HTMLEmitter for every Text AST node. Editor source stays unchanged β these are purely render-side. 11 unit tests cover the edge cases.
Install
Open `Writ-0.4.11.dmg`, drag Writ to Applications. Notarized + stapled.
What's next
0.5.0 β #1 (skip spell-check in backticks) + #19 (alternative preview themes) + #6 (custom CSS for preview). The headline minor-version bump.