1.0.6 • Published 7 years ago

nomdown v1.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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:

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago