Vue component wrapping the tiny Markdown parser Snarkdown
Bot releases are hidden (Show)
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).