Skip to content

A Custom Element for rendering Markdown built with Polymer

Notifications You must be signed in to change notification settings

tomsdev/mark-down

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<mark-down> & <mark-down-editor>

Web Component wrapper for Markdown using Polymer.

Maintained by Rob Dodson.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130905/polymer.min.js"></script>
  1. Import markdown-js:
<script src="lib/markdown.js"></script>
  1. Import Custom Element:
<link rel="import" href="elements/mark-down.html">
  1. Start using it!
<mark-down>Hello, **world!**</mark-down>

<!-- or -->

<mark-down-editor>Hello, **world!**</mark-down-editor>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

  • v0.1.0 October 02, 2013
    • Initial commit
  • v0.2.1 October 03, 2013
    • Add mark-down-editor tag
  • v0.2.2 October 07, 2013
    • Added text attribute so change handlers work
    • Added old and new syntax for styling host elements
  • v0.2.3 October 09, 2013
    • Correct improper bower main

License

MIT License

About

A Custom Element for rendering Markdown built with Polymer

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors