1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//! # tui markup
//!
//! This crate provides a markup language to
//! quickly write colorful and styled terminal text in plain text.
//!
//! I suggest to check [help.txt] in examples folder,
//! which generated this self-describing syntax help document:
//!
//! ![][help-text-screenshot]
//!
//! For formal syntax specification, see [syntax.ebnf][syntax].
//!
//! ## How two use
//!
//! ```ignore
//! let output = tui_markup::compile::<GeneratorType>("<geeen hello>").unwrap();
//! ```
//!
//! How two print the output vary depending on the the [Generator] you use, See their document for more info.
//!
//! ### Builtin generators
//!
//! The builtin generators are under feature gates, there is the list:
//!
//! feature | environment | generator type
//! :------ | :---------------------- | :-------------
//! `tui` | the popular [tui] crate | [TuiTextGenerator][generator::tui::TuiTextGenerator]
//!
//! The example page above is using the `tui` generator, print in Windows Terminal.
//!
//! If you want write your own generator, please see document of [Generator] trait.
//!
//!
//! [syntax]: https://github.com/7sDream/tui-markup/blob/master/docs/syntax.ebnf
//! [help-text-screenshot]: https://rikka.7sdre.am/files/37778eea-660b-47a6-bfd1-43979b5c703b.png
//! [help.txt]: https://github.com/7sDream/tui-markup/blob/master/examples/help.txt
pub use ;
use ;
/// Parse markup language source, then generate final output using the default configure of a generator type.
///
/// See document of generator type for examples.
/// Parse markup language source, then generate final output using the provided generator.
///
/// See document of generator type for examples.