markvis icon indicating copy to clipboard operation
markvis copied to clipboard

How to use it as a plugin

Open mekery opened this issue 6 years ago • 2 comments

Impressive works!

It seems markvis use render() in the documention, my question is how to use it as markdown-it plugin as markdown-it-emoji, as following:

use(vis, options)

mekery avatar Mar 31 '18 01:03 mekery

use(vis).render(`
  your markdown content
`, {
  d3,    // in browser environment
  d3node // in node environment
})

there are examples in the README and documentation.

geekplux avatar Apr 01 '18 08:04 geekplux

Still use render(). It is more flexible just use options, cause markdown content is dynamically changes.

mekery avatar Apr 06 '18 07:04 mekery