Skip to content

Releases: zerodevx/zero-md

v3.1.6

29 Sep 17:50
Compare
Choose a tag to compare
  • Remove markdown-alert padding workaround (fixes #125)

v3.1.5

25 Sep 14:33
Compare
Choose a tag to compare
  • Update dependencies (fixes #124)

v3.1.4

01 Sep 13:39
Compare
Choose a tag to compare
  • Upgrade to mermaid@11

v3.1.3

30 Aug 07:30
Compare
Choose a tag to compare
  • Allow no-shadow to be set globally (fixes #120)
<script type="module">
  import ZeroMd from 'https://cdn.jsdelivr.net/npm/zero-md@3'
  customElements.define('zero-md', class extends ZeroMd {
    async load() {
      await super.load()
      this.setAttribute('no-shadow', '')
    }
  })
</script>

v3.1.2

15 Aug 09:39
Compare
Choose a tag to compare
  • Fix Cyrillic headings hash-link scroll (fixes #78)

v3.1.1

13 Aug 09:34
Compare
Choose a tag to compare
  • Performance improvements

v3.1.0

10 Aug 18:39
Compare
Choose a tag to compare
  • 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

10 May 08:10
Compare
Choose a tag to compare

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

v2.5.4

01 Mar 08:39
Compare
Choose a tag to compare
  • Update dependencies

Note

This is the final release of the v2 branch as we prepare to migrate to v3.

v2.5.3

17 Aug 17:18
Compare
Choose a tag to compare
  • Correctly add classnames into markdown-body hash computation (fixes #94)