Skip to content

ngx-mdlib-pure 0.2.0 (npm tarball)

Choose a tag to compare

@MichelePolo MichelePolo released this 02 Nov 10:03
b1c613b

ngx-mdlib-pure 0.2.0, the Angular wrapper of mdlib-pure, as an npm tarball. Neither it nor mdlib-pure is on the npm registry yet: install both by URL.

npm install https://github.com/MichelePolo/mdlib-pure/releases/download/mdlib-pure-v0.1.1/mdlib-pure-0.1.1.tgz \
  https://github.com/MichelePolo/mdlib-pure/releases/download/angular-v0.2.0/ngx-mdlib-pure-0.2.0.tgz
npm install katex mermaid   # optional: math and diagrams

Added

  • ngx-mdlib-pure/podcast, a secondary entry point: PodcastEditor, the rundown editor of mdlib-pure's podcast sample as <mdlib-podcast-editor> (the component's host is the element).
    • [(value)] of a typed PodcastEpisode (source, documents, activeDocument, durationCentiseconds), podcastEpisode({ … }) for defaults; a ControlValueAccessor for [formControl], formControlName, [(ngModel)].
    • Inputs participants, view, delay, label, name, disabled, grammar, tagColors, tasks, documents, readOnly, compact, currentLine, runningTimer; outputs valueCommit (focus left the editor), taskToggle, openDocument, activeDocumentChange. The same options as the Blazor wrapper's PodcastEditor.
    • Defined on first use in the browser; on the server it renders empty with its attributes (SSR, ngSkipHydration). Markup and styles in a shadow root; theme it through ::part(editor).

MarkdownEditor, MarkdownViewer, provideMdlibPure() and MarkdownService are unchanged. Peer dependencies unchanged: @angular/core, @angular/common, @angular/forms ^21.0.0 || ^22.0.0, mdlib-pure ^0.1.1.

Guide: bindings/angular/README.md · on the site: https://michelepolo.github.io/mdlib-pure/docs/angular/

All people and content in the podcast sample are fictional. Built from b1c613b with npm run angular:pack. SHA-256 of ngx-mdlib-pure-0.2.0.tgz: 6619d80b048f7c8b8cdfb528477ed646bc18b74066ac893a2a3ed527b686d439