:memo: md.html
Markdown inside HTML
Put the following two magical lines into top of HTML file, then you can write Markdown after this and browser renders Markdown automatically.
<!doctype html><meta charset="utf-8"><script src="https://makenowjust.github.io/md.html/main.js"></script><noscript>
<!-- vim: set ft=markdown: -->
# Hello `md.html` World!
See md.html demo!
Features
- Don't need preprocessing for rendering Markdown.
- Render soft breaks as
<br>
. - Emoji support (e.g. convert
:memo:
to 📝) - Set
target="_blank"
property to external links. - Math expression support (inline
$...$
and block $$⏎...⏎$$
) with KaTeX - Set slug
id
to h1-6
tags and append anchor icon. - Syntax highlighting
- Set title via frontmatter
title
property.
See examples!
Special Thanks
This project is built with many other packages.
and all other dependencies... Thank you!!
License
MIT (c) 2018 TSUYUSATO "MakeNowJust" Kitsune