@dlghq/markdown

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

    Keywords

    none

    Install

    npm i @dlghq/markdown

    DownloadsWeekly Downloads

    118

    Version

    2.16.2

    License

    Apache-2.0

    Unpacked Size

    54.3 kB

    Total Files

    20

    Last publish

    Collaborators

    • argonavt11
    • dialogs
    • dlghq-bot
    • timurkhabibullin