Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use it as a plugin #11

Open
mekery opened this issue Mar 31, 2018 · 2 comments
Open

How to use it as a plugin #11

mekery opened this issue Mar 31, 2018 · 2 comments

Comments

@mekery
Copy link

mekery commented Mar 31, 2018

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
Copy link
Owner

geekplux commented Apr 1, 2018

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

there are examples in the README and documentation.

@mekery
Copy link
Author

mekery commented Apr 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants