UNPKG

react-page-markdown-plugin

Version:
34 lines 1.04 kB
import React from 'react'; import ReactMarkdown from 'react-markdown'; var Markdown = { Renderer: function (_a) { var data = _a.data; return (React.createElement("div", { style: { padding: '15px' } }, React.createElement(ReactMarkdown, { children: data.markdown }))); }, id: 'myPlugin', title: 'Markdown', description: "Render your markdown text", version: 1, allowClickInside: true, disableProviderInReadOnly: false, controls: { type: 'autoform', schema: { properties: { markdown: { type: 'string', uniforms: { label: 'Enter Markdown Text Here', placeholder: '....', multiline: true, rows: 3, } }, }, required: ['markdown'], }, }, }; export default Markdown; //# sourceMappingURL=index.js.map