Skip to content

Latest commit

 

History

History
executable file
·
43 lines (32 loc) · 791 Bytes

README.md

File metadata and controls

executable file
·
43 lines (32 loc) · 791 Bytes

Markdown web-component

A simple wrapper around showdown's markdown parser, in the form of a web-component.

Import/Include module

<script type="module" src="https://tomyo.github.io/mark-down/mark-down.js" >

Usage

  • Declarative

      <mark-down>
        # Some title
        ...
        A paragraph
        * A
        * List
      </mark-down>
  • Imperative

      document.querySelector('mark-down').innerHTML = `
        # Some title
        ...
        A paragraph
        * A
        * List
      `

More info