nomdown

1.0.6 • Public • Published

nomdown

Adds nomnoml as a highlight language type to marked, and defaults to highlight.js for the rest.

read more about nomnoml

Install

Either via npm or yarn:

  • npm install nomdown
  • yarn add nomdown

Usage

const nomdown = require('nomdown');

nomdown(string, (err, content) => {
   if (err) { throw err; }
   
   content // => markdown and 
})

Example:

Lets you have nomnoml code sections in markdown such as:

#fill: #eeeeee; #ffffff
[<frame>Decorator pattern|
  [<abstract>Component||+ operation()]
  [Client] depends --> [Component]
  [Decorator|- next: Component]
  [Decorator] decorates -- [ConcreteComponent]
  [Component] <:- [Decorator]
  [Component] <:- [ConcreteComponent]
]

And have them nicely formated (in svg) as:

Readme

Keywords

none

Package Sidebar

Install

npm i nomdown

Weekly Downloads

1

Version

1.0.6

License

MIT

Last publish

Collaborators

  • stefanpenner