| 1 | //! Ready-to-use plugins. Everything, including basic markdown syntax, is a plugin. |
| 2 | //! |
| 3 | //! This library is made to be as extensible as possible. In order to ensure that |
| 4 | //! you can write your own markdown syntax of any arbitrary complexity, |
| 5 | //! CommonMark syntax itself is made into a plugin (`cmark`), which you can use |
| 6 | //! as an example of how to write your own. |
| 7 | //! |
| 8 | //! Add each plugin you need by invoking `add` function like this: |
| 9 | //! ```rust |
| 10 | //! let md = &mut markdown_it::MarkdownIt::new(); |
| 11 | //! markdown_it::plugins::cmark::add(md); |
| 12 | //! markdown_it::plugins::extra::add(md); |
| 13 | //! markdown_it::plugins::html::add(md); |
| 14 | //! markdown_it::plugins::sourcepos::add(md); |
| 15 | //! // ... |
| 16 | //! ``` |
| 17 | pub mod cmark; |
| 18 | pub mod extra; |
| 19 | pub mod html; |
| 20 | pub mod sourcepos; |