This PR contains the following updates: Package Type Update Change mdast-util-to-hast dependencies major 8.2.0 -> 9.1.0 Release Notes syntax-tree/mdast-util-to-hast v9.1.0 Compare Sourc...
importfsfrom'node:fs/promises'import*asacornfrom'acorn'import{mdxJsx}from'micromark-extension-mdx-jsx'import{fromMarkdown}from'mdast-util-from-markdown'import{mdxJsxFromMarkdown,mdxJsxToMarkdown}from'mdast-util-mdx-jsx'import{toMarkdown}from'mdast-util-to-markdown'constdoc=awaitfs.readFile('e...
importfsfrom'node:fs/promises';import{fromMarkdown}from'mdast-util-from-markdown';import{toMarkdown}from'mdast-util-to-markdown';import{gridTables}from'@adobe/micromark-extension-gridtables'import{gridTablesToMarkdown,gridTablesFromMarkdown,mdast2hastGridTablesHandler,TYPE_TABLE,}from'@adobe/mdast...
mdast-util-phrasing— check if a node is phrasing content mdast-squeeze-paragraphs— remove empty paragraphs mdast-util-toc— generate a table of contents from a tree mdast-util-to-hast— transform to hast mdast-util-to-markdown— serialize markdown mdast-util-to-nlcst— transform to nlcst ...
As markdown is sometimes used for HTML, and improper use of HTML can open you up to a cross-site scripting (XSS) attack, use of mdast-util-from-markdown can also be unsafe. When going to HTML, use this utility in combination with hast-util-sanitize to make the tree safe. ...
mdast-util-phrasing— check if a node is phrasing content mdast-squeeze-paragraphs— remove empty paragraphs mdast-util-toc— generate a table of contents from a tree mdast-util-to-hast— transform to hast mdast-util-to-markdown— serialize markdown mdast-util-to-nlcst— transform to nlcst ...
/*** @import {Root} from 'mdast'*/import{toMarkdown}from'mdast-util-to-markdown'/** @type {Root} */consttree={type:'root',children:[{type:'blockquote',children:[{type:'thematicBreak'},{type:'paragraph',children:[{type:'text',value:'- a\nb !'},{type:'link',url:'example.co...
mdast extension to parse and serialize GFM (GitHub Flavored Markdown) - syntax-tree/mdast-util-gfm
mdast utility to support hard breaks without needing spaces or escapes. Latest version: 2.0.0, last published: 2 years ago. Start using mdast-util-newline-to-break in your project by running `npm i mdast-util-newline-to-break`. There are 6 other projects
mdast utility to parse markdown. Contribute to syntax-tree/mdast-util-from-markdown development by creating an account on GitHub.