storybookjs / marksy

📑 A markdown to custom VDOM components library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make marksy support extensions?

nachiket-p opened this issue · comments

How to use marksy for custom extensions?
e.g wants to generate forms (with react components), using (or similar to) https://github.com/jldec/marked-forms
Is this possible with Marksy?

@nachiket-p Not in the same way. marksy does not extend the markdown syntax, it just allows you to write React syntax in your markdown. So you would just add all your components to marksy and then use them directly in the markdown :)

marksy({
  components: {
    Form,
    Input // etc.
  }
})