This guide helps you upgrade from v2 to v3. The new version focuses on browser specification
compliance, built-in support for math and diagrams, and modern ES modules.
Warning
This guide contains breaking changes. Please review them carefully before upgrading.
https://cdn.jsdelivr.net/npm/zero-md@3?register
By default, the component is not automatically registered. Add the ?register query parameter to
the script URL to register the custom element automatically.
Prism.js is no longer maintained and has been replaced by highlight.js.
The template attributes data-merge="append" and data-merge="prepend" have been renamed to
data-append and data-prepend.
The data-dedent attribute on script tags is deprecated. Write standard, spec-compliant indentation
in your markdown.
The manual-render attribute on the element has been renamed to no-auto.
The global ZeroMdConfig object is deprecated. Configure globally by
extending the class instead.
The zero-md-error event is deprecated. Use the new standard events
instead.
Transpiled legacy builds are discontinued since modern browsers natively support Web Components.