Skip to content

Writ 0.4.11

Choose a tag to compare

@Ceesaxp Ceesaxp released this 08 Jun 13:35
· 108 commits to master since this release

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-paren
  • www.example.com β†’ linked with http:// 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.