markdown_it/generics/mod.rs
1//! Use these to build your own markdown syntax.
2//!
3//! Some markdown structures are very similar under the hood, for example:
4//! - `*emphasis*`, `^supertext^` and `~~strikethrough~~`
5//! - `[link]()` and `![image]()`
6//!
7//! In order to reuse the code between all those, a notion of generic
8//! markdown structures was created. If you want to use syntax like
9//! `=this=` or `++that++`, you only need to specify a character marker
10//! and a renderer function, these rules will figure out the rest.
11//!
12pub mod inline;