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.