@dlghq/markdown

2.16.7 • Public • Published

Markdown

Usage

import { parse, decorators } from '@dlghq/markdown';

console.log(parse('Hello, *world*!', decorators)); // AST

AST for above example would be

[
  {
    "type": "paragraph",
    "content": [
      {
        "type": "text",
        "content": "Hello, "
      },
      {
        "type": "text",
        "content": "world",
        "highlight": "bold"
      },
      {
        "type": "text",
        "content": "!"
      }
    ]
  }
]

Readme

Keywords

none

Package Sidebar

Install

npm i @dlghq/markdown

Weekly Downloads

42

Version

2.16.7

License

Apache-2.0

Unpacked Size

56.3 kB

Total Files

20

Last publish

Collaborators

  • timurkhabibullin