Skip to content

amussey/markdown.elem.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom <Markdown> tag for HTML

Markdown.elem.js allows you to insert Markdown in-line with HTML that will be converted on the fly client-side.

To use this library, include the script into the head of your HTML:

<script src="markdown.elem.js"></script>

If your browser does not support custom elements, you will also need to include platform.js.

From there, simply include your Markdown inside of <code-markdown> tags:

<code-markdown>
# Markdown test

We can make stuff **bold**, *italicized*, even put in [links](http://amussey.com)!

## Code Blocks

    def winning(self):
        try:
            self.name = 'Andrew'
        except Exception as e:
            print e

<code-markdown>

Note: This library currently imports Showdown.js for the actual Markdown parsing.

About

Parse inline Markdown on the fly inside your HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published