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,

SurveyJS custom survey software

Simplify data collection in your JS app with a fully integrated form management platform. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more. Integrates with any backend system, giving you full control over your data and no user limits.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs