zero-md

Ridiculously simple zero-config markdown displayer

ISC License

Downloads
6.4K
Stars
423
Committers
5

Bot releases are visible (Hide)

zero-md - v3.1.4

Published by zerodevx about 2 months ago

  • Upgrade to mermaid@11
zero-md - v3.1.3

Published by zerodevx about 2 months ago

  • 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>
zero-md - v3.1.2 Latest Release

Published by zerodevx 2 months ago

  • Fix Cyrillic headings hash-link scroll (fixes #78)
zero-md - v3.1.1

Published by zerodevx 2 months ago

  • Performance improvements
zero-md - v3.1.0

Published by zerodevx 2 months ago

  • 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>
zero-md - v3.0.0

Published by zerodevx 5 months ago

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
zero-md - v2.5.4

Published by zerodevx 8 months ago

  • Update dependencies

[!NOTE]
This is the final release of the v2 branch as we prepare to migrate to v3.

zero-md - v2.5.3

Published by zerodevx about 1 year ago

  • Correctly add classnames into markdown-body hash computation (fixes #94)
zero-md - v2.5.2

Published by zerodevx over 1 year ago

  • Slightly refactor MutationObserver code
zero-md - v2.5.1

Published by zerodevx over 1 year ago

  • Fix multiple firing of zero-md-rendered events in no-shadow mode (#86)
zero-md - v2.5.0

Published by zerodevx over 1 year ago

  • Use fingerprinting instead of caching during render updates
  • Simplify the render() function
  • BREAKING: stampStyles() now returns a promise that resolves to truthy if stamping occurred
  • BREAKING: stampBody() now returns a promise that resolves to truthy if stamping occurred
  • BREAKING: makeNode() has been replaced with makeNodes() and now returns a HTMLCollection of nodes instead.
zero-md - v2.4.2

Published by zerodevx over 1 year ago

  • Fix hash-link scrolls in no-shadow mode (#82, thanks @alifeee)
zero-md - v2.4.1

Published by zerodevx over 1 year ago

  • Update dependencies
zero-md - v2.4.0

Published by zerodevx almost 2 years ago

  • Upgrade marked to v4
  • Upgrade rollup to v3
  • Update dependencies
zero-md - v2.3.6

Published by zerodevx about 2 years ago

  • Update dependencies
zero-md - v2.3.5

Published by zerodevx over 2 years ago

  • Update dependencies
zero-md - v2.3.4

Published by zerodevx over 2 years ago

  • Update dependencies
zero-md - v2.3.3

Published by zerodevx over 2 years ago

  • Really build the dist/ (sorry)
zero-md - v2.3.2

Published by zerodevx over 2 years ago

  • Update some tooling and rebuild dist/
zero-md - v2.3.1

Published by zerodevx about 3 years ago

  • Revert marked back to v2 (fixes #61)