Skip to content

doc-ui v1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Nov 02:22

Markdown documents now render code, diagrams, equations, and common extensions into readable HTML at generation time. The generated document uses doc-ui CSS without a runtime syntax-highlighting, Mermaid, or math library.

Added

  • Syntax highlighting for fenced code blocks, using doc-ui token styles.
  • Mermaid diagrams rendered as embedded SVG images, with light and dark variants, captions, and expandable source.
  • Inline and display mathematics rendered as native MathML.
  • Footnotes, definition lists, and GitHub-style alerts alongside tables, task lists, and the existing Markdown syntax.
  • Optional full-page PNG output from the CLI and PNG previews for generated change reports.
  • English and Japanese examples, usage documentation, and browser/PDF coverage for rich Markdown.

Fixed

  • Prose-page checks distinguish the prose specimen from the new equation example.
  • PDF checks handle text extraction that splits font ligatures on Linux.

Use this release

npx @k-kinzal/doc-ui@1.3.0 input.md --lang ja -o output.html

Mermaid and PNG generation require the optional browser tooling:

npm install --save-dev playwright@1.63.0
npx playwright install chromium

The CLI requires Node.js 22 or newer. Generated HTML includes the rendered code, SVG diagrams, and MathML; no JavaScript or CDN libraries are needed to read those features. Authored image references retain their original URLs.

<link rel="stylesheet"
      href="https://k-kinzal.github.io/document-design/v1.3.0/document-design.css">

The ZIP contains the compiled distribution, design reference, version and commit identifier, and third-party notices. The npm-format archive also includes package exports and source modules. SHA-256 checksums are attached.

/v1.3.0/ is immutable. /v1.3/ and /v1/ follow compatible releases. The product site and Storybook follow the highest stable release.

Getting started · Components · Storybook · Japanese documentation

Validation

The tagged CI build passed repository/package checks, the full browser and PDF suite, and site/Storybook builds. All 76 compiled files in the npm-format archive match the tagged CI artifact. The packed CLI was also run outside the workspace to verify highlighted code, MathML, footnotes, and script-free output.

All changes since v1.2.1

Change report

Change report