New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

markdoc

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdoc

Render documentation written in markdown into a single pretty html file

latest
npmnpm
Version
0.1.3
Version published
Maintainers
0
Created
Source

markdoc

Markdoc is a simple way to convert documentation written in markdown into a nice looking html file. First install markdoc:

npm install -g markdoc

Then just run markdoc doc.md which outputs a single html file of the rendered markdown.

This html file is the result of rendering this markdown file with markdoc.

But wait! there is more!

Markdoc can also render markdown that is written inside comments in a code file.

/**
 *
 * Notice the /** to indicate that this is a markdown comment
 * the leading * on each line is NOT required but I like it
 *
 */

If this was inside module.js then just run markdoc module.js to render it.

It's that easy!

Markdoc can also be used as a node module

var markdoc = require('markdoc');

// to render some markdown just do:
var renderedMarkdown = markdoc.parse('my markdown string');

// to render multiline comments from some code just do:
var codeDocumentation = markdoc.parseCode('my code file with markdown comments');

Happy hacking! @mafintosh

FAQs

Package last updated on 13 Jun 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts