Ridiculously simple zero-config markdown displayer
ISC License
Bot releases are hidden (Show)
Published by zerodevx about 2 months ago
mermaid@11
Published by zerodevx about 2 months ago
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>
Published by zerodevx 2 months ago
Published by zerodevx 2 months ago
marked@14
<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>
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:
Published by zerodevx 8 months ago
[!NOTE]
This is the final release of thev2
branch as we prepare to migrate tov3
.
Published by zerodevx about 1 year ago
markdown-body
hash computation (fixes #94)Published by zerodevx over 1 year ago
MutationObserver
codePublished by zerodevx over 1 year ago
zero-md-rendered
events in no-shadow
mode (#86)Published by zerodevx over 1 year ago
render()
functionstampStyles()
now returns a promise that resolves to truthy if stamping occurredstampBody()
now returns a promise that resolves to truthy if stamping occurredmakeNode()
has been replaced with makeNodes()
and now returns a HTMLCollection
of nodes instead.Published by zerodevx over 1 year ago
no-shadow
mode (#82, thanks @alifeee)Published by zerodevx over 1 year ago
Published by zerodevx almost 2 years ago
marked
to v4
rollup
to v3
Published by zerodevx about 2 years ago
Published by zerodevx over 2 years ago
Published by zerodevx over 2 years ago
Published by zerodevx over 2 years ago
dist/
(sorry)Published by zerodevx over 2 years ago
dist/
Published by zerodevx about 3 years ago
marked
back to v2
(fixes #61)