@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": "!"
      }
    ]
  }
]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.16.7
    0
    • latest

Version History

Package Sidebar

Install

npm i @dlghq/markdown

Weekly Downloads

20

Version

2.16.7

License

Apache-2.0

Unpacked Size

56.3 kB

Total Files

20

Last publish

Collaborators

  • timurkhabibullin