4.3.6 • Published 4 months ago

zeedown v4.3.6

Weekly downloads
77
License
MIT
Repository
github
Last release
4 months ago

zeedown

Tiny Slack-style markdown renderer for Node and browser, with CLI.

Donate

Installation

npm i -S zeedown or yarn add zeedown

Usage

zeedown(text: string): string

zeedown takes one parameters: a required string.

Difference from standard MD:

  • Strong is a single set of asterisks
  • Emphasis is a single set of underscores
  • Strikethrough is a single set of tildes
  • No headers

This is essentially the same as Slack's basic Markdown.

import md from 'zeedown'
// or
const md = require('zeedown')

md('some string')
md(process.argv[2])
$('.foo').replaceWith(md($('.bar').text()))

CLI

zeedown comes with a small CLI. Usage:

cat foo.md | zeedown > foo.html

Supported Features

  • Strong (Bold)
  • Emphasis (Italic)
  • Deletions (Strikethrough)
  • Inline code
  • Fenced code blocks (not indent)
  • Blockquotes
  • Ordered/unordered lists

Why Not Feature X?

If you want links, images, syntax highlighting, and other fancy stuff, you're probably better off using a full-featured implementation. Try marked, it's super popular.

Status

Everything specified works. ol, ul, and blockquote are a little funky (only work if not indented at all, need an extra pass to strip extra tags).

LICENSE

4.3.6

4 months ago

4.3.5

7 months ago

4.3.4

1 year ago

4.3.2

1 year ago

4.3.1

1 year ago

4.3.3

1 year ago

4.3.0

2 years ago

4.2.4

3 years ago

4.2.3

3 years ago

4.2.2

4 years ago

4.2.1

4 years ago

4.1.3

4 years ago

4.2.0

4 years ago

4.1.2

4 years ago

4.1.1

4 years ago

4.1.0

4 years ago

4.0.5

4 years ago

4.0.4

4 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.0.1

5 years ago

3.0.0

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago

0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago