Skip to content

Releases: nlopes/acdc

acdc-editor-wasm-v0.4.0: chore: release acdc-parser 0.7.0 and acdc-editor-wasm 0.4.0

25 Feb 07:48
f632290

Choose a tag to compare

Changed

  • Switch preview from standard (div-soup) HTML to html5s semantic HTML variant,
    outputting <section>, <aside>, <figure>, ARIA roles, and semantic class
    names instead of <div class="sect1">, <div class="admonitionblock">, etc.
  • Overhaul preview CSS to target html5s elements and classes (section.doc-section,
    aside.admonition-block, figure.example-block, aside.sidebar,
    section.quote-block, .listing-block, figure.image-block, ol.toc-list,
    section.footnotes, ol.callout-list, semantic list wrappers, etc.).
  • Highlighter simplified to use AST locations — replaced ~315 lines of raw text
    scanning with direct use of parser location data. Inline delimiter highlighting,
    block metadata spans, delimited block delimiters, macro spans, and description list
    markers now use precise AST locations instead of heuristic text scanning.

Fixed

  • Autolink highlighting now covers the entire URL (last character was excluded).

Added

  • MathJax 4 integration for rendering asciimath and latexmath expressions in
    the preview pane. Both stem blocks ([stem]) and inline stem macros (stem:[])
    are now rendered as typeset math instead of raw delimiters. MathJax is
    lazy-loaded from CDN only when the document sets :stem:.
  • Preview styling for semantic HTML5 elements: literal blocks
    (section/div.literal-block), verse blocks (section/div.verse-block), STEM/math
    blocks (figure/div.stem-block), open blocks (section/div.open-block), description
    list wrappers (section/div.dlist), horizontal description lists (dl.horizontal),
    Q&A lists (dl.qanda), untitled image blocks (div.image-block), and titled listing
    block figcaptions (figure.listing-block).
  • Comprehensive preview styling for all AsciiDoc constructs: admonitions,
    example blocks, sidebars, quote blocks, verse blocks, listing/literal blocks,
    tables (frames, grids, striping, alignment), lists (ordered, unordered,
    checklists, description, callout), images, footnotes, keyboard/menu/button
    macros, collapsible blocks, block titles, lead paragraphs, text color roles,
    and utility classes.
  • Pane labels ("Editor" / "Preview") so users immediately know which side is which.
  • Default cursor on preview pane instead of text cursor.
  • Granular syntax highlighting for all macros (image, video, audio, footnote,
    link, icon, kbd, btn, menu, stem, pass, xref): target in green, bracket
    content in dark pink.
  • Line numbers - the editor now has line numbers!

acdc-editor-wasm-v0.3.0: chore(editor-wasm): release 0.3.0

14 Feb 23:57
a352e44

Choose a tag to compare

Added

  • Add :toc: macro and toc::[] to the default template.

acdc-editor-wasm-v0.2.2: chore(editor-wasm): release 0.2.2

14 Feb 23:22
b54ac08

Choose a tag to compare

Fixed

  • When a block gives an error, don't hide the block, show it without any highlighting.
  • TOC preview no longer breaks when a section title contains a footnote (duplicate
    id attributes caused browsers to corrupt the DOM when using set_inner_html).

acdc-editor-wasm-v0.2.1

05 Feb 14:58
3ee0795

Choose a tag to compare

Fixed

  • Source code blocks in the preview now render with syntax highlighting. The
    source-highlighter attribute is now set automatically, enabling the
    highlighting feature that was compiled in v0.2.0 but not activated.

acdc-editor-wasm-v0.2.0

05 Feb 10:40
486ed02

Choose a tag to compare

Added

  • Comprehensive README with API reference, CSS classes, and usage examples
  • Syntax highlighting support via acdc-converters-html highlighting feature
  • wasm-bindgen release profile settings for optimized builds

Changed

  • Reduced input debounce from 250ms to 25ms for more responsive editing

Fixed

  • GitHub issues link now points to correct repository (nlopes/acdc)

acdc-editor-wasm-v0.1.0

04 Feb 18:21
2e7796e

Choose a tag to compare

Added

  • Initial WASM package for the AsciiDoc live editor
  • AST-based syntax highlighting with <span class="adoc-*"> CSS classes
  • Live preview using the same parser and HTML converter as the CLI
  • DOM orchestration: debounced parsing, scroll sync, Tab key insertion,
    clipboard copy, and pre-filled GitHub issue links
  • GitHub Actions release workflow (release-editor-wasm.yml) for building
    with wasm-pack and publishing as GitHub Release assets