aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-26 13:29:10 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-26 13:29:40 +0200
commit670f1d82e01ea2394b21d7d1857f41bdc67b3fce (patch)
treed38fd96745b443dc5ece52c771fa5e39653937c4 /src/lib.rs
parentf41688c067be261279804b8ab3e04cd5d67f492f (diff)
downloadmarkdown-rs-670f1d82e01ea2394b21d7d1857f41bdc67b3fce.tar.gz
markdown-rs-670f1d82e01ea2394b21d7d1857f41bdc67b3fce.tar.bz2
markdown-rs-670f1d82e01ea2394b21d7d1857f41bdc67b3fce.zip
Add support for math (flow)
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 98a4936..4d1b762 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -272,6 +272,17 @@ pub struct Constructs {
/// ^^^
/// ```
pub list_item: bool,
+ /// Math (flow).
+ ///
+ /// ```markdown
+ /// > | $$
+ /// ^^
+ /// > | \frac{1}{2}
+ /// ^^^^^^^^^^^
+ /// > | $$
+ /// ^^
+ /// ```
+ pub math_flow: bool,
/// Math (text).
///
/// ```markdown
@@ -317,6 +328,7 @@ impl Default for Constructs {
label_start_link: true,
label_end: true,
list_item: true,
+ math_flow: false,
math_text: false,
thematic_break: true,
}
@@ -730,7 +742,7 @@ pub struct Options {
/// ..Options::default()
/// }
/// ),
- /// "<p><code class=\"lang-math math-inline\">a</code></p>"
+ /// "<p><code class=\"language-math math-inline\">a</code></p>"
/// );
///
/// // Pass `math_text_single_dollar: false` to turn that off: