A markdown parser into a syntax tree.
npm install @genexus/markdown-parserThis project provides several methods to parse markdown into a syntax tree. It is written in TypeScript, which allows for static typing and better code organization.
To install the dependencies for this project, you can use one of the following package managers: npm, yarn, or pnpm. Choose the one you are most comfortable with and follow the instructions below:
Run the following command in your terminal:
``bash`
npm install @genexus/markdown-parser
Run the following command in your terminal:
`bash`
yarn install @genexus/markdown-parser
Run the following command in your terminal:
`bash``
pnpm install @genexus/markdown-parser
Turn markdown into mdast using micromark via mdast-util-from-markdown.
This primitive also supports Github Flavored Markdown (GFM) by using mdast-util-gfm and micromark-extension-gfm.
Turn programming code into hast using lowlight.
This primitive also supports all programming languages from highlight.js. When used at runtime, it will load on demand the programming language needed to parse the code.