Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fast tiny Markdown to MDAST parser

NotificationsYou must be signed in to change notification settings

streamich/md-mdast

Repository files navigation

  • Markdown toMDAST converter.
  • Small and fast.
  • No dependencies.

Installation

npm install md-mdast

Usage

const{create}=require('md-mdast');constparser=create();console.log(parser.tokenizeBlock('*hello* __world__'));

Result:

{ type: 'root',  children:   [ { type: 'paragraph',       children:        [ { type: 'emphasis',            children: [ { type: 'text', value: 'hello' } ] },          { type: 'text', value: ' ' },          { type: 'strong',            children: [ { type: 'text', value: 'world' } ] } ] } ],}

License

Unlicense — public domain.

About

Fast tiny Markdown to MDAST parser

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp