#markdown #conversion #convert #minimad #mdast #termimad

mdast2minimad

A crate for converting markdown AST to minimad texts

1 unstable release

0.1.0 Jan 2, 2025

#614 in Text processing

Download history 156/week @ 2025-01-01 3/week @ 2025-01-08

159 downloads per month

MIT license

37KB
750 lines

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.

Dependencies

~1.7–2.4MB
~56K SLoC