@rdx-js/language-md-mdast
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@besync/md-to-mdast

Reactive Dialogs (RDX) customizations of Markdown Parser

When used as a set of Unified plugs directly after remark-parse, this package parses an .rdx markdown file into MDAST format (with the RDX / JSX extensions)

Forked from mdx-js/mdx, converted to typescript, and much faster as it doesnt use @babel/core, pure javacript only, and with a better greedy html processor forked without change from Tinia Labs tdx implementation

Installation

npm i -S @rdx-js/language-md-mdast

Usage

import unified from 'unified'
import toMDAST from 'remark-parse'
import {
  default as toRDAST,
  mdJsxComments,
  mdJsxImportExport,
  mdJsxTemplateVariables
} from '@rdx-js/language-md-mdast'

const fn = unified()
  .use(toMDAST, options)
  .use(mdJsxTemplateVariables)
  .use(mdJsxComments)
  .use(mdJsxImportExport)
  // include frontmatter and squeeze plugins here
  .use(toRDAST)

License

MIT

Package Sidebar

Install

npm i @rdx-js/language-md-mdast

Weekly Downloads

28

Version

1.2.0

License

MIT

Unpacked Size

30.7 kB

Total Files

28

Last publish

Collaborators

  • tinialabs1
  • guycreate