5.1.0 • Published 5 years ago

cli-marked v5.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

Welcome to cli-marked

Version Documentation Maintenance License: GPL-3.0 Downloads

Custom Renderer for marked allowing for printing Markdown to the Terminal. Supports pretty tables and syntax highlighting

Could for instance be used to print usage information.

Install

npm i -g cli-marked

Example

md demo.md

This will produce the following:

Screenshot of marked-terminal

Screenshot of marked-terminal

Usage as module

npm i cli-marked
const marked = require('marked');
const TerminalRenderer = require('cli-marked');

marked.setOptions({
  renderer: new TerminalRenderer({}),
  mangle: false,
  emoji: true,
  breaks: false,
  gfm: true,
  smartypants: false,
});

const markdown = `
# Hello World

---

* One
* Two
* Three
`

console.log(marked(markdown));

Run tests

npm run test

Author

👤Grigorii Horos

Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

License

Copyright © 2019 Grigorii Horos.

This project is GPL-3.0-or-later licensed.

5.1.0

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.9.14

5 years ago

4.9.13

5 years ago

4.9.12

5 years ago

4.9.11

5 years ago

4.9.10

5 years ago

4.9.9

5 years ago

4.9.8

5 years ago

4.9.7

5 years ago

4.9.6

5 years ago

4.9.5

5 years ago

4.9.3

5 years ago

4.9.2

5 years ago

4.9.1

5 years ago

4.9.0

5 years ago

4.8.0

5 years ago

4.6.0

5 years ago

4.4.1

5 years ago

4.4.0

5 years ago

4.3.0

5 years ago

4.2.0

5 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.5.1

5 years ago

3.5.0

5 years ago

3.2.0

5 years ago