Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.81 KB

migration.md

File metadata and controls

55 lines (34 loc) · 1.81 KB

<zero-md>

version license stars downloads old

Migration Guide

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!

1. New CDN URL

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.

2. Syntax highlighting

Prismjs is un-maintained and has been replaced by highlightjs.

3. Merging style templates

data-merge="append" and data-merge="prepend" template tag attributes renamed to data-append and data-prepend respectively.

4. Normalising indentation

data-dedent script tag attribute is deprecated; please use spec-compliant markdown in your inline-markdown.

5. Manual render

manual-render element attribute has been renamed to no-auto.

6. Global config

The ZeroMdConfig global is deprecated. Set global config the spec-compliant way instead.

7. Events

The zero-md-error event is deprecated - read which events are fired.

8. Legacy builds

Web components are standard now so legacy (transpiled) builds will cease.