1.1.2 • Published 5 years ago

markdown-next v1.1.2

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

markdown-next

markdown-next parser

CircleCI npm version

Below is the list of what is supported:

  • strong
  • em
  • p
  • headers(h1, h2, h3, h4, h5, h6)
  • ul
  • ol
  • a
  • code
  • blockquote(nesting is allowed)
  • table
  • img

Note: This project is currently beta. Any API will be changed without notice.

Install

Clone this repo and execute npm run install.

Basic Usage

const markdown = require("markdown-next")

parse(s: string): string

Returns parsed html string. This is mostly shorthand of new Parser({type: asHTML}).parse.

parse(string)

Parser({export: ExportType})

It takes ExportType object and make new parser. Currently, there are two options: asHTML and asAST which creates HTML and AST respectively

const markdown = require("markdown-next")
const parser = new markdown.Parser({
  export: markdown.asHTML
})
parser.parse(string)

Test and Development

Run npm test command for testing. Under test contains unit tests.

Contribution

Any suggestion or PR is welcome.

LICENSE

MIT

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago