ribbit/src/ts
gsb 86d59877f1 feat: Add macro support
New: macros.ts with MacroDef, parseBlockMacro, matchInlineMacro,
buildMacroTags, processInlineMacros.

Macro syntax:
  @user                     — bare, no args
  @user()                   — empty parens, same as bare
  @npc(Goblin King)         — self-closing with args
  @style(box center         — block: no closing paren on first line
  Content here.             — content on subsequent lines
  )                         — closing paren on its own line

Unknown macro names now render as an error:
  <span class="ribbit-error">Unknown macro: @bogus</span>

The verbatim keyword causes the contents to render as literals and also
preserves line breaks.
2026-04-29 03:03:58 +00:00
..
default-theme.ts Add themes support 2026-04-29 01:20:55 +00:00
events.ts feat: Add typed event system with on/off/emit 2026-04-29 01:35:06 +00:00
hopdown.ts feat: Add macro support 2026-04-29 03:03:58 +00:00
macros.ts feat: Add macro support 2026-04-29 03:03:58 +00:00
ribbit-editor.ts feat: Add macro support 2026-04-29 03:03:58 +00:00
ribbit.ts feat: Add macro support 2026-04-29 03:03:58 +00:00
tags.ts Add themes support 2026-04-29 01:20:55 +00:00
theme-manager.ts feat: Add typed event system with on/off/emit 2026-04-29 01:35:06 +00:00
types.ts Add themes support 2026-04-29 01:20:55 +00:00