geekplux / markvis

make visualization in markdown. 📊📈
https://markvis.js.org/
MIT License
1.57k stars 61 forks source link

How to use it as a plugin #11

Open mekery opened 6 years ago

mekery commented 6 years ago

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)
geekplux commented 6 years ago
use(vis).render(`
  your markdown content
`, {
  d3,    // in browser environment
  d3node // in node environment
})

there are examples in the README and documentation.

mekery commented 6 years ago

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