Web Components which renders markdown using marked.
MIT License
Web Components which renders markdown using marked.
Using npm:
$ npm install x-marked
Import XMarked
and register it as a custom element.
<script type="module">
import XMarked from 'https://unpkg.com/x-marked';
customElements.define('x-marked', XMarked);
</script>
Put <x-marked>
.
<x-marked>
# x-marked
Web Components which renders markdown using [marked](https://github.com/markedjs/marked).
</x-marked>
highlight
attribute/propertyBoolean attribute/property to enable highlight.
highlight-theme
/highlightTheme
attribute/propertyString attribute/property to specify the theme of syntax highlight. you can specify it by choosing from PrismJS/prism-themes without .css
extension.