DEV Community

Casualwriter
Casualwriter

Posted on

4 1

Markdown as document, by casual-markdown-doc.js

Dear All,

just release Casual-Markdown-Doc, which is a quick solution
to use markdown as document.

  • include javascript lib casual-markdown-doc.js
  • include css style casual-markdown-doc.css

then start write document in markdown format!

Credit

This project based on the design idea of Strapdown.js.
but use casual-markdown parser,
build-in css, vanilla javascript without any dependence. (support all browsers include IE9)

Usage

  1. create your document in html format. e.g. casual-markdown-syntax.html
  2. use below first 4 line as header, and start draft content in markdown format
  3. at line 4, revise title to your document title
  4. start draft document in markdown format
<!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"></script>
<body title="document title here...">

## Heading

content in markdown format

Enter fullscreen mode Exit fullscreen mode

Sample

Hope you like it.

Have a nice day,

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up