{"repo":"syntax-tree/mdast-util-from-markdown","free":true,"listed":false,"github":"https://github.com/syntax-tree/mdast-util-from-markdown","clone":"git clone https://github.com/syntax-tree/mdast-util-from-markdown.git","description":"mdast utility to parse markdown","language":"JavaScript","stars":289,"topics":["unist","mdast","mdast-util","parse","tokenize","markdown"],"license":"MIT","category":"productivity","readme_excerpt":"mdast-util-from-markdown [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] [mdast][github-mdast] utility that turns markdown into a syntax tree. Contents What is this? When should I use this? Install Use API [ fromMarkdown(value[, encoding][, options]) ](#frommarkdownvalue-encoding-options) CompileContext CompileData Encoding Extension Handle OnEnterError OnExitError Options Token Transform Value List of extensions Syntax Syntax tree Types Compatibility Security Related Contribute License What is this? This package is a utility that takes markdown input and turns it into an [mdast][github-mdast] syntax tree. This utility uses [ micromark ][github-micromark], which turns markdown into tokens, and then turns those tokens into nodes. This package is used inside [ remark-parse ][github-remark-parse], which focusses on making it easier to transform content by abstracting these internals away. When should I use this? If you want to handle syntax trees manually, use this. When you just want to turn markdown into HTML, use [ micromark ][github-micromark] instead. For an easier time processing content, use the [remark][github-remark] ecosystem instead. You can combine this package with other packages to add syntax extensions to markdown. Notable examples that deeply integrate with this package are [ mdast-util-mdx ][github-mdast-ut","default_branch":null,"files":null,"tree":[],"storefront":"/r/syntax-tree","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/syntax-tree/mdast-util-from-markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}