Directory

prism-markdown-element - Vaadin Add-on Directory

A LitElement that renders markdown with syntax highlight support prism-markdown-element - Vaadin Add-on Directory
# \ [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/prism-markdown-element) **prism-markdown-element** is `LitElement` component inspired from [markdown-element](https://github.com/intcreator/markdown-element) but with extra sugar properties It allows render markdown to html with the help of `prismjs` and `commonmark` libraries **Install** ```shell npm i prism-markdown-element ``` **import it** ```js import 'prism-markdown-element/prism-markdown-element.js'; ``` ## Features * Support highlight code syntax * Support the default themes from `prismjs` * Support custom theme from any url or path (should be a style link and a prismjs theme) ## Properties * **mdsrc** markdown source url * **markdown** markdown text (string) * **theme** any `prismjs` theme ('coy', 'dark', 'funky', 'okaidia','solarizedlight', 'tomorrow', 'twilight') * **customtheme** custom theme url (should be a prismjs css ) ## Usage **No theme (prism as default) and remote markdown** ```html ``` **customtheme example** ``` html ``` **markdown string and prismtheme** ```html ```
View on NPM
View on GitHub

prism-markdown-element version 1.0.0
### Dependencies * @polymer/lit-element#^0.5.2 * commonmark#^0.28.1 * prismjs#^1.15.0

prism-markdown-element version 1.0.2
### Dependencies * @polymer/lit-element#^0.5.2 * commonmark#^0.28.1 * prismjs#^1.15.0

prism-markdown-element version 1.0.4
### Dependencies * @polymer/lit-element#^0.5.2 * commonmark#^0.28.1 * prismjs#^1.15.0

prism-markdown-element version 1.0.5
### Dependencies * @polymer/lit-element#^0.5.2 * commonmark#^0.28.1 * prismjs#^1.15.0

prism-markdown-element version 1.0.6
### Dependencies * @polymer/lit-element#^0.5.2 * commonmark#^0.28.1 * prismjs#^1.15.0

prism-markdown-element version 1.0.7
### Dependencies * @polymer/lit-element#^0.6.1 * lit-html#0.11.2 * commonmark#^0.28.1 * prismjs#^1.15.0

prism-markdown-element version 1.0.8
### Dependencies * commonmark#^0.28.1 * lit-element#^2.0.0-rc.3 * lit-html#^1.0.0-rc.2 * prismjs#^1.15.0

prism-markdown-element version 1.0.9
### Dependencies * commonmark#^0.28.1 * lit-element#^2.0.0-rc.3 * lit-html#^1.0.0-rc.2 * prismjs#^1.15.0