@davetheitguy/markdown-component
v1.0.4
Published
This component is user to provide a preview of markdown content.
Downloads
4
Readme
Markdown Component
This component is user to provide a preview of markdown content.
Usage
The default settings can be set in the following
interface MarkdownConfig {
default?: string; // The default message to display if there is nothing in the input
}
Creating a new instance of the component can be done as follows:
import { MarkdownComponent } from '@davetheitguy/markdown';
new MarkdownComponent($('#input'),$('#preview'), {default: 'This is a default message'});