A Web Component to parse markdown to html
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
polymer @ f82a595
scripts
.gitmodules
readme.md
x-markdown.html

readme.md

Markdown component

A simple markdown component that uses the Showdown.js library

How to use

This web component uses the Polymer library.

  1. Make sure you have polymer.min.js included in your page
  2. Import component <link rel="import" href="x-markdown.html" />
  3. Simply put markdown inside the <x-markdown> element
  4. ?????
  5. 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.