--- title: "ASW Pandoc Pack" description: "Convert markdown to ASW-styled HTML with one command" layout: prose --- # ASW Pandoc Pack Converts GFM markdown to fully ASW-styled HTML. Write markdown natively; the pack renders it with correct `data-attribute` semantics. ## Usage ```bash pandoc input.md \ --from gfm \ --lua-filter packs/pandoc/asw.lua \ --template packs/pandoc/asw.html5 \ -o output.html ``` ## What it does ### Semantic mapping (asw.lua) | Markdown | Output HTML | |---|---| | `- [ ] task` | `
  • task
  • ` | | `- [x] done` | `
  • done
  • ` | | `> [!NOTE]` | `
    ` | | `> [!WARNING]` | `
    ` | | `> [!TIP]` | `
    ` | | `> [!ERROR]` | `
    ` | | `[[target]]` | `target` | | `[[target\|label]]` | `label` | Callout aliases: `[!CAUTION]` → warning, `[!IMPORTANT]`/`[!INFO]` → note, `[!DANGER]` → error. Wikilinks: punctuation attached to `]]` is preserved outside the link element. Unresolved link detection is not automatic — the href slug is always generated; resolution is a build-time concern. ### Frontmatter → data-attributes (asw.html5) YAML frontmatter keys map to page-level ASW properties: ```yaml --- title: "Session Report — 2026-04-02" description: "Summary of what happened" layout: prose # → data-layout on
    (default: prose) status: done # → data-status on
    and in header badge date: 2026-04-02 # →