Skip to content

Show HN: Markdown as document, by casual-Markdown-doc.js

github.com/casualwriter
9 pointscasualwriter2 comments
On HN

Comments

I've been down this rabbit hole a few times when trying to go from an orgmode document to something I can share with other people. Usually, the path took me via html and then to pdf.

My initial impression was that the opening sentence is underselling the project:

    Casual-Markdown-Doc provide a quick solution to use markdown as document.
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?)

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..)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.