Skip to content

Extended markdown parser that supports grid, grid containers and interpolation

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
license-whitelist.yml
Notifications You must be signed in to change notification settings

labforward/markdown-parser

Repository files navigation

Laboperator Markdown Parser

This repo contains the code for the extended markdown parser based on remark, rehype and micromark in unified.js ecosystem.

Main features:

  • HAST output from a raw string
  • Extends GFM
  • Allows for raw HTML within markdown (sanitized)
  • Custom extensions like grid, grid containers and variable interpolation

Testing

The code is checked for correctness of the parser (by comparison to a snapshot) as well as for compatibility of built code with pure Node.js (some of the dependencies are ESM-pure and don't work with CommonJS)

Further extending the parser

Start with this section of the micromark repo. Every plugin should contain both the syntax.ts file, which tells the crawler how to recognize the syntax of the extension, as well as the from-markdown.ts file which contains instructions on how to pass the extracted info to the AST. Both need to be exported and added to the src/extensions.ts file.

The test snapshot will need to be updated with a working example to ensure the correctness of the parser extension

About

Extended markdown parser that supports grid, grid containers and interpolation

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
license-whitelist.yml

Stars

Watchers

Forks

Packages

No packages published