@raketa-cms/raketa-markdown-input
Markdown input for Raketa CMS
Install
yarn add @raketa-cms/raketa-markdown-input
Usage
import { MarkdownInput } from "@raketa-cms/raketa-markdown-input";
<MarkdownInput
label="Text" // optional
height="200px" // optional
documentationLink="https://guides.github.com/features/mastering-markdown/" // optional
value={value} // required
onChange={setValue} //required
/>;
<div dangerouslySetInnerHTML={{ __html: toHTML(value) }} />;
License
MIT © studioraketa