vue-snarkdown

Vue component wrapping the tiny Markdown parser Snarkdown

Downloads
263
Stars
3
Committers
2

Bot releases are hidden (Show)

vue-snarkdown - Markdown prop Latest Release

Published by jdbdnz about 4 years ago

v1.1.0 introduces a new prop markdown which should be used when the markdown may change over the component's lifespan.

Prior to v1.1.0, the only way to provide VueSnarkdown with markdown was via the default slot. However, since $slots is not reactive, the html will not update when the markdown provided through the default slot changes.

Props are reactive, so the markdown prop does not have this issue.

The default slot interface offers no benefits, but will remain supported for backwards compatibility (and because I prefer it as an interface).