Skip to content

tomyo/mark-down

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Markdown web-component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published