JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q44972F
  • License MIT

Convert RDX Markdown to Unist Markdown AST (MDAST)

Package Exports

  • @rdx-js/language-md-mdast

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rdx-js/language-md-mdast) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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