markdowny

Crates.iomarkdowny
lib.rsmarkdowny
version0.4.0
sourcesrc
created_at2022-05-27 21:09:45.696295
updated_at2024-05-03 08:30:26.094187
descriptionMarkdown parser with support for hairy templates, HTML, HTML-attributes, HTML-spans, HTML-blocks specified in Markdown. Focus on error reporting, so Markdown errors are reported
homepagehttps://www.bitpowder.com/libs/indigo/
repositoryhttps://gitlab.com/bitpowder/indigo-ng
max_upload_size
id595319
size119,967
Bernard van Gastel (bvgastel)

documentation

README

markdowny

A Markdown parser, generating an AST that can be easily adjusted and converted to text or HTML. It supports some additional syntax:

  • spans between [ and ];
  • divs without block elements (such as div and p) between [[ and ]];
  • divs with block elements (such as div and p) between [[[ and ]]];
  • literals between [[[[ and ]]]];
  • setting styles/classes/ids etc with {#id; style: value; .classname}.

This library also has a resolve_markdown() function that does a number of things:

  • makes sections around headings (h1,h2,..), and make links to them;
  • highlight source code (if syntect feature is enabled);
  • converts math to mathml (if latex2mathml feature is enabled);
  • creates figures (start blockquote with figure_type #reference_key: caption, figure type can be listing/figure/etc, #reference_key can be used in links);
  • resolves section and figure counters (start headings and figures with ?, if link body contains ?, replace by actual number).
Commit count: 1279

cargo fmt