Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Markdown as document, by casual-Markdown-doc.js (github.com/casualwriter)
9 points by casualwriter on Aug 3, 2022 | hide | past | favorite | 2 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..)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: