An open API service indexing awesome lists of open source software.

https://github.com/tmpfs/markzero

Extensions to the marked library
https://github.com/tmpfs/markzero

Last synced: 4 months ago
JSON representation

Extensions to the marked library

Awesome Lists containing this project

README

        

Table of Contents
=================

* [markzero](#markzero)
* [Install](#install)
* [Features](#features)
* [Examples](#examples)
* [License](#license)

markzero
========

Extensions to the marked library.

This library extends the excellent [marked](https://github.com/chjj/marked) markdown parser to allow round tripping markdown to tokens and back to markdown. It also provides renderers to convert markdown to plain text and man pages.

Used by the [command](https://github.com/freeformsystems/cli-command) module and the [mdp](https://github.com/freeformsystems/mdp) program.

## Install

```
npm i markzero
```

## Features

* Convert markdown documents to tokens and back to markdown to programatically modify a document.
* Additional renderers for plain text and man pages.
* Builds link index for plain text documents.
* Supports nested ordered lists when converting back to markdown.

## Examples

Alternative versions of this document serve as examples:

* [README.txt](https://github.com/freeformsystems/markzero/blob/master/doc/alt/README.txt).
* [README.1](https://github.com/freeformsystems/markzero/blob/master/doc/alt/README.1).
* [README.html](https://github.com/freeformsystems/markzero/blob/master/doc/alt/README.html).
* [README.xhtml](https://github.com/freeformsystems/markzero/blob/master/doc/alt/README.xhtml).

## License

Everything is [MIT](http://en.wikipedia.org/wiki/MIT_License). Read the [license](https://github.com/freeformsystems/markzero/blob/master/LICENSE) if you feel inclined.

Generated by [mdp(1)](https://github.com/freeformsystems/mdp).

[marked]: https://github.com/chjj/marked
[mdp]: https://github.com/freeformsystems/mdp
[command]: https://github.com/freeformsystems/cli-command