Crate mdast2minimad

Crate mdast2minimad 

Source
Expand description

§mdast2minimad

This crate has the objective to export the largest possible subset of mdast from the crate markdown to the ast exposed by the crate minimad.

The main use of this crate is in dices, where the ast is edited to render the code example before using termimand to print them.

§Limitations

minimad parser is not a fully fledget markdown parser. This make the two ASTs impossble to transpose: for example this two snippets of markdown represent the same document, but are parsed differently by minimad:

This is a paragraph.

This is another.
This is a paragraph.



This is another.

The translation is then made on a best effort base.

§License

This software is distributed under the MIT license, if you need to know. Use it at will.

§Contacts

This library was made by zannabianca1997. If you found any problem with the library itself, or want to contribute, you can send a PR, or contact me at zannabianca199712@gmail.com.

Modules§

mdast
markdown syntax tree: mdast.

Structs§

Configs
Configuration of the conversion.
Emitter
Minimad code emitter
Style
Set up the styling of a node

Enums§

ToMinimadError
General error happening while converting the AST into a minimad text

Functions§

md_parse_options
Return the markdown::ParseOptions containing all the constructs supported by the conversion
to_custom_minimad
Convert the markdown AST to a minimad Text, with custom options.
to_minimad
Convert the markdown AST to a minimad Text