A simple markdown component that uses the Showdown.js library
How to use
This web component uses the Polymer library.
- Make sure you have
polymer.min.jsincluded in your page
- Import component
<link rel="import" href="x-markdown.html" />
- Simply put markdown inside the
- Profit $$$
<x-markdown> # Markdown Some text ## Heading level 2 Some more text with a [link](http://www.thecssninja.com/) </x-markdown>
Made as part of talk
I did a talk on Web Components and created a whole bunch of components to dog food the talk itself. See master repo web-components.