Show HN: Markdown as document, by casual-Markdown-doc.js(github.com)
github.com
Show HN: Markdown as document, by casual-Markdown-doc.js
https://github.com/casualwriter/casual-markdown-doc
2 comments
underselling? thanks :) yes, it turn a markdown document into a nice-look html webpage (with TOC and scrollspy), by adding the following 4 lines at the beginning.
<!DOCTYPE html>
<link href="https://casualwriter.github.io/dist/casual-markdown-doc.css" rel="stylesheet">
<script src="https://casualwriter.github.io/dist/casual-markdown-doc.js">...
<body title="your document title here...">
and it is a self-sufficient html file, which can be viewed in all browser (include IE9) from internet or local. (yes, local is also ok, u can even send by email, share by google drive, etc..)
<!DOCTYPE html>
<link href="https://casualwriter.github.io/dist/casual-markdown-doc.css" rel="stylesheet">
<script src="https://casualwriter.github.io/dist/casual-markdown-doc.js">...
<body title="your document title here...">
and it is a self-sufficient html file, which can be viewed in all browser (include IE9) from internet or local. (yes, local is also ok, u can even send by email, share by google drive, etc..)
My initial impression was that the opening sentence is underselling the project:
I believe the word document is not clear here, for clarity's sake I would suggest expanding it to describe what are the potential outputs (... to use markdown directly as a ready to publish html website?)