Skip to content

Markdansi 0.1.0

Choose a tag to compare

@steipete steipete released this 18 Nov 02:47
· 107 commits to main since this release

Highlights

  • Markdown → ANSI renderer with GFM support (tables, task lists, strikethrough).
  • OSC-8 hyperlinks with auto-detection, fallback to label (url) when disabled.
  • Inline and block themes (inlineCode / blockCode) with code fallback; exported frozen themes.
  • Configurable wrapping, list indentation (listIndent), and blockquote prefix (quotePrefix).
  • Table rendering with GFM alignments and width-aware padding.
  • Highlighter hook for code blocks (pluggable, no built-in highlighting).
  • CLI flags: --no-wrap, --no-color, --no-links, --width, --theme, --list-indent, --quote-prefix.
  • Strict linting (Biome), high test coverage (~96%), types emitted via pnpm types.

Notes

  • Code blocks never hard-wrap; long lines may overflow; [lang] label shown when provided.
  • strip() renders with colors/links disabled but honors wrap/width/layout options.
  • Package files include src, dist/index.d.ts, README, LICENSE, docs/spec.