A simple markdown component that uses the Showdown.js library
This web component uses the Polymer library.
- Make sure you have
polymer.min.js
included in your page - Import component
<link rel="import" href="x-markdown.html" />
- Simply put markdown inside the
<x-markdown>
element - ?????
- Profit $$$
<x-markdown>
# Markdown
Some text
## Heading level 2
Some more text with a [link](http://www.thecssninja.com/)
</x-markdown>
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.