This documents migration from v2
to v3
. The motivations for v3
include spec compliance, first
class support for math and diagrams, and upgrading to ESM consumption of libraries.
Warning
These are breaking changes! Please read through the list carefully!
https://cdn.jsdelivr.net/npm/zero-md@3?register
By default, the component definition is not defined into the CustomElementRegistry
; opt-in to
auto-register the custom element with the ?register
query param.
Prismjs
is un-maintained and has been replaced by
highlightjs
.
data-merge="append"
and data-merge="prepend"
template tag attributes renamed to data-append
and data-prepend
respectively.
data-dedent
script tag attribute is deprecated; please use spec-compliant markdown in your
inline-markdown.
manual-render
element attribute has been renamed to no-auto
.
The ZeroMdConfig
global is deprecated. Set global config the
spec-compliant way instead.
The zero-md-error
event is deprecated - read which events are fired.
Web components are standard now so legacy (transpiled) builds will cease.