Releases: zerodevx/zero-md
Releases · zerodevx/zero-md
v3.1.6
v3.1.5
v3.1.4
v3.1.3
v3.1.2
v3.1.1
v3.1.0
- Upgrade to
marked@14
- Add theme presets
<script type="module">
import ZeroMd, { STYLES } from 'https://cdn.jsdelivr.net/npm/zero-md@3'
customElements.define('zero-md', class extends ZeroMd {
async load() {
await super.load()
this.template = STYLES.preset('light') // or STYLES.preset('dark')
}
})
</script>
v3.0.0
V3 is released! 🎉
There are breaking changes. If you're migrating from V2 to V3, please read the migration guide. V2 has been moved into its separate tree - a final maintenance release is published, but in general no more updates will be done. It is highly recommended to upgrade to V3 (it has a new CDN URL now) - it is simpler, faster and spec-compliant.
V3 features include:
- Math rendering via KaTeX
- Mermaid diagrams
- Syntax highlighting via highlight.js
- Language detection for unhinted code blocks
- Hash-link scroll handling
- FOUC prevention
- Auto re-render on input changes
- Light and dark themes
- Spec-compliant extensibility