From 514e5f8ad7853d239f8209f269474e0609e0ee50 Mon Sep 17 00:00:00 2001
From: Michael Howell red fruit orange fruit red fruit red fruit orange fruit red fruit contains seeds,
+crisp, pleasant to taste orange fruit orange block quote Para one Para two red fruit computer company orange fruit telecom company red fruit computer
+company orange
+fruit telecom company foo Foo Bloze bar
+:baz Bloze Bloze bar
+: baz : first : fourth : first : fourth : first : fourth red fruit orange fruit red fruit red fruit orange fruit red fruit contains seeds,
+crisp, pleasant to taste orange fruit orange block quote Para one Para two red fruit computer company orange fruit telecom company red fruit computer
+company orange
+fruit telecom company foo Foo Bloze bar
+:baz Bloze Bloze bar
+: baz : first : fourth : first : fourth : first : fourth bar def text def text A: def text def text A: This should fix: > Something is wrong! This should fix: > Something is wrong! This should fix: > Something is wrong! This is super This is sub This is stricken out This is ~stricken This~is~nothing This ~~is stricken. This ~~is stricken but this is not~~ This is super This is sub This is stricken out This is ~stricken This~is~nothing This ~~is stricken. This ~~is stricken but this is not~~ This is super This is sub This is stricken out This is ~stricken This~is~nothing This ~~is stricken. This ~~is stricken but this is not~~ Here I strike out an exclamation point This~is~nothing Here I fail to match up ~tildes~~. This is super This is sub This is stricken out This is ~stricken This~is~nothing This ~~is stricken. This ~~is stricken but this is not~~ bar
: baz orange fruit orange block quote orange block quote bar
: baz orange fruit orange block quote orange block quote Here I strike out an exclamation point This~is~nothing Here I fail to match up ~tildes~~. This is super This is sub This is stricken out This is ~stricken This~is~nothing This ~~is stricken. This ~~is stricken but this is not~~ This is a normal blockquote without tag. Note blockquote Tip blockquote Important blockquote Warning blockquote Caution blockquote
+
+````````````````````````````````
+
+Loose:
+
+```````````````````````````````` example
+apple
+
+: red fruit
+
+orange
+
+: orange fruit
+.
+
+
+````````````````````````````````
+
+Also loose:
+
+```````````````````````````````` example
+apple
+
+: red fruit
+.
+
+
+````````````````````````````````
+
+Indented marker:
+
+```````````````````````````````` example
+apple
+ : red fruit
+
+orange
+ : orange fruit
+.
+
+
+````````````````````````````````
+
+```````````````````````````````` example
+apple
+
+ : red fruit
+
+orange
+
+ : orange fruit
+.
+
+
+````````````````````````````````
+
+Multiple blocks in a definition:
+
+```````````````````````````````` example
+*apple*
+
+: red fruit
+
+ contains seeds,
+ crisp, pleasant to taste
+
+*orange*
+
+: orange fruit
+
+ { orange code block }
+
+ > orange block quote
+.
+
+
+````````````````````````````````
+
+Nested lists:
+
+```````````````````````````````` example
+term
+
+: 1. Para one
+
+ Para two
+.
+
+{ orange code block }
+
+
+
+
+````````````````````````````````
+
+Multiple definitions, tight:
+
+```````````````````````````````` example
+apple
+: red fruit
+: computer company
+
+orange
+: orange fruit
+: telecom company
+.
+
+
+
+
+````````````````````````````````
+
+Multiple definitions, loose:
+
+```````````````````````````````` example
+apple
+
+: red fruit
+
+: computer company
+
+orange
+
+: orange fruit
+: telecom company
+.
+
+
+````````````````````````````````
+
+Lazy line continuations:
+
+```````````````````````````````` example
+apple
+
+: red fruit
+
+: computer
+company
+
+orange
+
+: orange
+fruit
+: telecom company
+.
+
+
+````````````````````````````````
+
+Definition terms may span multiple lines:
+
+```````````````````````````````` example
+a
+b\
+c
+
+: foo
+.
+
+
+````````````````````````````````
+
+Definition list with preceding paragraph
+(
+c
+
+````````````````````````````````
+
+Definition list followed by paragraph.
+
+```````````````````````````````` example
+bar
+: baz
+
+bim
+: bor
+
+Bloze
+.
+
+
+
+
+
+
+baz
+baz
+baz
+baz
+
+
+Test Table
+
+
+
+Test Table My section
+
+
+My section
+My subsection
+
+
+My subsection
+
+
+````````````````````````````````
+
+
+Definition titles can't be HTML blocks, but inline's fine.
+
+```````````````````````````````` example
+
+
+
+
+````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 89eb3e06..b1548d09 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -165,6 +165,66 @@ impl<'a, 'b> FirstPass<'a, 'b> {
body: ItemBody::TaskListMarker(is_checked),
});
}
+ } else if let Some((
+ indent,
+ child,
+ item,
+ )) = self
+ .options
+ .contains(Options::ENABLE_DEFINITION_LIST)
+ .then(||
+ self.tree
+ .cur()
+ .map(|cur| (self.tree[cur].child, &mut self.tree[cur].item))
+ )
+ .flatten()
+ .filter(|(_, item)| matches!(item, Item {
+ body: ItemBody::Paragraph | ItemBody::MaybeDefinitionListTitle | ItemBody::DefinitionListDefinition(_),
+ ..
+ }))
+ .and_then(|item| Some((line_start.scan_definition_list_definition_marker()?, item.0, item.1)))
+ {
+ match item.body {
+ ItemBody::Paragraph => {
+ item.body = ItemBody::DefinitionList(true);
+ let Item { start, end, .. } = *item;
+ let list_idx = self.tree.cur().unwrap();
+ let title_idx = self.tree.create_node(Item {
+ start,
+ end, // will get updated later if item not empty
+ body: ItemBody::DefinitionListTitle,
+ });
+ self.tree[title_idx].child = child;
+ self.tree[list_idx].child = Some(title_idx);
+ self.tree.push();
+ }
+ ItemBody::MaybeDefinitionListTitle => {
+ item.body = ItemBody::DefinitionListTitle;
+ }
+ ItemBody::DefinitionListDefinition(_) => {}
+ _ => unreachable!(),
+ }
+ let after_marker_index = start_ix + line_start.bytes_scanned();
+ self.tree.append(Item {
+ start: container_start,
+ end: after_marker_index, // will get updated later if item not empty
+ body: ItemBody::DefinitionListDefinition(indent),
+ });
+ if let Some(ItemBody::DefinitionList(ref mut is_tight)) =
+ self.tree
+ .peek_up()
+ .map(|cur| &mut self.tree[cur].item.body)
+ {
+ if self.last_line_blank {
+ *is_tight = false;
+ self.last_line_blank = false;
+ }
+ }
+ self.tree.push();
+ if let Some(n) = scan_blank_line(&bytes[after_marker_index..]) {
+ self.begin_list_item = Some(after_marker_index + n);
+ return after_marker_index + n;
+ }
} else if line_start.scan_blockquote_marker() {
let kind = if self.options.contains(Options::ENABLE_GFM) {
line_start.scan_blockquote_tag()
@@ -216,7 +276,8 @@ impl<'a, 'b> FirstPass<'a, 'b> {
if let Some(node_ix) = self.tree.peek_up() {
match &mut self.tree[node_ix].item.body {
ItemBody::BlockQuote(..) => (),
- ItemBody::ListItem(indent) if self.begin_list_item.is_some() => {
+ ItemBody::ListItem(indent)
+ | ItemBody::DefinitionListDefinition(indent) if self.begin_list_item.is_some() => {
self.last_line_blank = true;
// This is a blank list item.
// While the list itself can be continued no matter how many blank lines
@@ -228,17 +289,18 @@ impl<'a, 'b> FirstPass<'a, 'b> {
self.last_line_blank = true;
}
}
+ } else {
+ self.last_line_blank = true;
}
return ix + n;
}
- self.finish_list(start_ix);
-
// Save `remaining_space` here to avoid needing to backtrack `line_start` for HTML blocks
let remaining_space = line_start.remaining_space();
let indent = line_start.scan_space_upto(4);
if indent == 4 {
+ self.finish_list(start_ix);
let ix = start_ix + line_start.bytes_scanned();
let remaining_space = line_start.remaining_space();
return self.parse_indented_code_block(ix, remaining_space);
@@ -255,6 +317,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
self.options
.contains(Options::ENABLE_PLUSES_DELIMITED_METADATA_BLOCKS),
) {
+ self.finish_list(start_ix);
return self.parse_metadata_block(ix, metadata_block_ch);
}
}
@@ -264,6 +327,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
// Types 1-5 are all detected by one function and all end with the same
// pattern
if let Some(html_end_tag) = get_html_end_tag(&bytes[(ix + 1)..]) {
+ self.finish_list(start_ix);
return self.parse_html_block_type_1_to_5(
ix,
html_end_tag,
@@ -274,24 +338,29 @@ impl<'a, 'b> FirstPass<'a, 'b> {
// Detect type 6
if starts_html_block_type_6(&bytes[(ix + 1)..]) {
+ self.finish_list(start_ix);
return self.parse_html_block_type_6_or_7(ix, remaining_space, indent);
}
// Detect type 7
if let Some(_html_bytes) = scan_html_type_7(&bytes[ix..]) {
+ self.finish_list(start_ix);
return self.parse_html_block_type_6_or_7(ix, remaining_space, indent);
}
}
if let Ok(n) = scan_hrule(&bytes[ix..]) {
+ self.finish_list(start_ix);
return self.parse_hrule(n, ix);
}
if let Some(atx_size) = scan_atx_heading(&bytes[ix..]) {
+ self.finish_list(start_ix);
return self.parse_atx_heading(ix, atx_size);
}
if let Some((n, fence_ch)) = scan_code_fence(&bytes[ix..]) {
+ self.finish_list(start_ix);
return self.parse_fenced_code_block(ix, indent, fence_ch, n);
}
@@ -331,6 +400,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
current_container,
)
{
+ self.finish_list(start_ix);
return ix;
} else {
line_start = lazy_line_start;
@@ -338,6 +408,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
start_ix = ix;
}
} else {
+ self.finish_list(start_ix);
return ix;
}
}
@@ -482,6 +553,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
&bytes[ix..],
current_container,
self.options.has_gfm_footnotes(),
+ self.options.contains(Options::ENABLE_DEFINITION_LIST),
&self.tree,
) {
return None;
@@ -493,10 +565,18 @@ impl<'a, 'b> FirstPass<'a, 'b> {
/// Returns offset of line start after paragraph.
fn parse_paragraph(&mut self, start_ix: usize) -> usize {
+ let body = if let Some(ItemBody::DefinitionList(_)) = self.tree.peek_up().map(|idx| self.tree[idx].item.body) {
+ // blank lines between the previous definition and this one don't count
+ self.last_line_blank = false;
+ ItemBody::MaybeDefinitionListTitle
+ } else {
+ self.finish_list(start_ix);
+ ItemBody::Paragraph
+ };
let node_ix = self.tree.append(Item {
start: start_ix,
end: 0, // will get set later
- body: ItemBody::Paragraph,
+ body,
});
self.tree.push();
@@ -527,6 +607,9 @@ impl<'a, 'b> FirstPass<'a, 'b> {
// be a cleaner way
self.tree[node_ix].child = None;
self.tree.pop();
+ if body == ItemBody::MaybeDefinitionListTitle {
+ self.finish_list(ix);
+ }
self.tree.push();
if let Some(ix) = self.parse_table(table_cols, ix, next_ix) {
return ix;
@@ -557,8 +640,11 @@ impl<'a, 'b> FirstPass<'a, 'b> {
if let Some(pos) = trailing_backslash_pos {
self.tree.append_text(pos, pos + 1, false);
}
- ix = ix_setext;
- break;
+ self.pop(ix_setext);
+ if body == ItemBody::MaybeDefinitionListTitle {
+ self.finish_list(ix);
+ }
+ return ix_setext;
}
}
// first check for non-empty lists, then for other interrupts
@@ -1401,7 +1487,11 @@ impl<'a, 'b> FirstPass<'a, 'b> {
fn pop(&mut self, ix: usize) {
let cur_ix = self.tree.pop().unwrap();
self.tree[cur_ix].item.end = ix;
- if let ItemBody::List(true, _, _) = self.tree[cur_ix].item.body {
+ if let ItemBody::DefinitionList(_) = self.tree[cur_ix].item.body {
+ fixup_end_of_definition_list(&mut self.tree, cur_ix);
+ self.begin_list_item = None;
+ }
+ if let ItemBody::List(true, _, _) | ItemBody::DefinitionList(true) = self.tree[cur_ix].item.body {
surgerize_tight_list(&mut self.tree, cur_ix);
self.begin_list_item = None;
}
@@ -1412,13 +1502,13 @@ impl<'a, 'b> FirstPass<'a, 'b> {
fn finish_list(&mut self, ix: usize) {
self.finish_empty_list_item();
if let Some(node_ix) = self.tree.peek_up() {
- if let ItemBody::List(_, _, _) = self.tree[node_ix].item.body {
+ if let ItemBody::List(_, _, _) | ItemBody::DefinitionList(_) = self.tree[node_ix].item.body {
self.pop(ix);
}
}
if self.last_line_blank {
if let Some(node_ix) = self.tree.peek_grandparent() {
- if let ItemBody::List(ref mut is_tight, _, _) = self.tree[node_ix].item.body {
+ if let ItemBody::List(ref mut is_tight, _, _) | ItemBody::DefinitionList(ref mut is_tight) = self.tree[node_ix].item.body {
*is_tight = false;
}
}
@@ -1431,7 +1521,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
if self.last_line_blank {
// A list item can begin with at most one blank line.
if let Some(node_ix) = self.tree.peek_up() {
- if let ItemBody::ListItem(_) = self.tree[node_ix].item.body {
+ if let ItemBody::ListItem(_) | ItemBody::DefinitionListDefinition(_) = self.tree[node_ix].item.body {
self.pop(begin_list_item);
}
}
@@ -1854,7 +1944,13 @@ impl<'a, 'b> FirstPass<'a, 'b> {
/// Checks whether we should break a paragraph on the given input.
fn scan_paragraph_interrupt(&self, bytes: &[u8], current_container: bool) -> bool {
let gfm_footnote = self.options.has_gfm_footnotes();
- if scan_paragraph_interrupt_no_table(bytes, current_container, gfm_footnote, &self.tree) {
+ if scan_paragraph_interrupt_no_table(
+ bytes,
+ current_container,
+ gfm_footnote,
+ self.options.contains(Options::ENABLE_DEFINITION_LIST),
+ &self.tree,
+ ) {
return true;
}
// pulldown-cmark allows heavy tables, that have a `|` on the header row,
@@ -2010,6 +2106,7 @@ fn scan_paragraph_interrupt_no_table(
bytes: &[u8],
current_container: bool,
gfm_footnote: bool,
+ definition_list: bool,
tree: &Tree\n")
+ } else {
+ self.write("\n
\n")
+ }
+ }
+ Tag::DefinitionListTitle => {
+ if self.end_newline {
+ self.write("
"),
@@ -414,6 +435,15 @@ where
TagEnd::Item => {
self.write("
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_2() {
+ let original = r##"apple
+
+: red fruit
+
+orange
+
+: orange fruit
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_3() {
+ let original = r##"apple
+
+: red fruit
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_4() {
+ let original = r##"apple
+ : red fruit
+
+orange
+ : orange fruit
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_5() {
+ let original = r##"apple
+
+ : red fruit
+
+orange
+
+ : orange fruit
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_6() {
+ let original = r##"*apple*
+
+: red fruit
+
+ contains seeds,
+ crisp, pleasant to taste
+
+*orange*
+
+: orange fruit
+
+ { orange code block }
+
+ > orange block quote
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_7() {
+ let original = r##"term
+
+: 1. Para one
+
+ Para two
+"##;
+ let expected = r##"
+{ orange code block }
+
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_8() {
+ let original = r##"apple
+: red fruit
+: computer company
+
+orange
+: orange fruit
+: telecom company
+"##;
+ let expected = r##"
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_9() {
+ let original = r##"apple
+
+: red fruit
+
+: computer company
+
+orange
+
+: orange fruit
+: telecom company
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_10() {
+ let original = r##"apple
+
+: red fruit
+
+: computer
+company
+
+orange
+
+: orange
+fruit
+: telecom company
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_11() {
+ let original = r##"a
+b\
+c
+
+: foo
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_12() {
+ let original = r##"Foo
+
+bar
+: baz
+
+bim
+: bor
+"##;
+ let expected = r##"
+c
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_13() {
+ let original = r##"bar
+: baz
+
+bim
+: bor
+
+Bloze
+"##;
+ let expected = r##"
+
+
+
+
+
+baz
+baz
+baz
+baz
+
+
+Test Table
+
+
+
+Test Table My section
+
+
+My section
+My subsection
+
+
+My subsection
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_24() {
+ let original = r##"
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
diff --git a/pulldown-cmark/tests/suite/mod.rs b/pulldown-cmark/tests/suite/mod.rs
index 0f4a250a..7a3fd142 100644
--- a/pulldown-cmark/tests/suite/mod.rs
+++ b/pulldown-cmark/tests/suite/mod.rs
@@ -4,6 +4,7 @@
pub use super::test_markdown_html;
mod blockquotes_tags;
+mod definition_lists;
mod footnotes;
mod gfm_strikethrough;
mod gfm_table;
From 6a1e562ddfbeda31d31b7c4c4f3e834487d32c1b Mon Sep 17 00:00:00 2001
From: Roope Salmi
+
+````````````````````````````````
+
+```````````````````````````````` example
+* def this
+
+ : def text def text
+.
+
+
+
+
+````````````````````````````````
+
+```````````````````````````````` example
+**A:**
+
+> B C
+> I J :x: K
+> :x: L M
+> N O _P_ Q R. (S
+> T U, V W
+> :x:,:x:,:x:, and :x: but no :x: or
+> :x:.)
+.
+
+
+
+
+````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index cd4fbf86..909c8124 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -75,7 +75,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
while ix < self.text.len() {
ix = self.parse_block(ix);
}
- for _ in 0..self.tree.spine_len() {
+ while self.tree.spine_len() > 0 {
self.pop(ix);
}
(self.tree, self.allocs)
diff --git a/pulldown-cmark/tests/suite/regression.rs b/pulldown-cmark/tests/suite/regression.rs
index 14f2833a..d58030d2 100644
--- a/pulldown-cmark/tests/suite/regression.rs
+++ b/pulldown-cmark/tests/suite/regression.rs
@@ -3153,3 +3153,64 @@ fn regression_test_200() {
test_markdown_html(original, expected, false, false, false);
}
+
+#[test]
+fn regression_test_201() {
+ let original = r##"* def this
+ : def text def text
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn regression_test_202() {
+ let original = r##"* def this
+
+ : def text def text
+"##;
+ let expected = r##"
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn regression_test_203() {
+ let original = r##"**A:**
+
+> B C
+> I J :x: K
+> :x: L M
+> N O _P_ Q R. (S
+> T U, V W
+> :x:,:x:,:x:, and :x: but no :x: or
+> :x:.)
+"##;
+ let expected = r##"
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
From 6b2b7e79c509d333fb2c531711f1d69119fc9449 Mon Sep 17 00:00:00 2001
From: Michael Howell
+
+foobar_raz
+Some preamble foobar_raz, not barfoo_raz
+
+foobar_raz
+Some preamble foobar_raz, not barfoo_razfoobar_raz, not barfoo_raz
+
+````````````````````````````````
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 9a6728f2..161dc62d 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -54,14 +54,6 @@ pub(crate) struct Item {
#[derive(Debug, PartialEq, Clone, Copy, Default)]
pub(crate) enum ItemBody {
- Paragraph,
- Text {
- backslash_escaped: bool,
- },
- SoftBreak,
- // true = is backlash
- HardBreak(bool),
-
// These are possible inline items, need to be resolved in second pass.
// repeats, can_open, can_close
@@ -88,19 +80,33 @@ pub(crate) enum ItemBody {
FootnoteReference(CowIndex),
TaskListMarker(bool), // true for checked
+ // These are also inline items.
+ InlineHtml,
+ OwnedInlineHtml(CowIndex),
+ SynthesizeText(CowIndex),
+ SynthesizeChar(char),
+ Html,
+ Text {
+ backslash_escaped: bool,
+ },
+ SoftBreak,
+ // true = is backlash
+ HardBreak(bool),
+
+ // Dummy node at the top of the tree - should not be used otherwise!
+ #[default]
+ Root,
+
+ // These are block items.
+ Paragraph,
Rule,
Heading(HeadingLevel, Option
+stuff](https://example.com)foobar_raz, not barfoo_raz
test_markdown_html(original, expected, false, false, false);
}
+
+#[test]
+fn regression_test_205() {
+ let original = r##"- Item definition [it
+ ```rust
+ ```
+ stuff](https://example.com)
+"##;
+ let expected = r##"
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
From bc32e1d77dd9403cbcfd6f0c2760d3c6ae2035cc Mon Sep 17 00:00:00 2001
From: jim-taylor-business
+stuff](https://example.com)"),
@@ -417,6 +419,12 @@ where
TagEnd::Emphasis => {
self.write("")?;
}
+ TagEnd::Superscript => {
+ self.write("")?;
+ }
+ TagEnd::Subscript => {
+ self.write("")?;
+ }
TagEnd::Strong => {
self.write("")?;
}
diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs
index 82c28fcd..b1588e5e 100644
--- a/pulldown-cmark/src/lib.rs
+++ b/pulldown-cmark/src/lib.rs
@@ -190,6 +190,8 @@ pub enum Tag<'a> {
Emphasis,
Strong,
Strikethrough,
+ Superscript,
+ Subscript,
/// A link.
Link {
@@ -229,6 +231,8 @@ impl<'a> Tag<'a> {
Tag::TableHead => TagEnd::TableHead,
Tag::TableRow => TagEnd::TableRow,
Tag::TableCell => TagEnd::TableCell,
+ Tag::Subscript => TagEnd::Subscript,
+ Tag::Superscript => TagEnd::Superscript,
Tag::Emphasis => TagEnd::Emphasis,
Tag::Strong => TagEnd::Strong,
Tag::Strikethrough => TagEnd::Strikethrough,
@@ -264,6 +268,8 @@ pub enum TagEnd {
Emphasis,
Strong,
Strikethrough,
+ Superscript,
+ Subscript,
Link,
Image,
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 8fef6657..3f50ca9b 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -81,6 +81,8 @@ pub(crate) enum ItemBody {
Emphasis,
Strong,
Strikethrough,
+ Superscript,
+ Subscript,
Math(CowIndex, bool), // true for display math
Code(CowIndex),
Link(LinkIndex),
@@ -835,10 +837,16 @@ impl<'input, F: BrokenLinkCallback<'input>> Parser<'input, F> {
1
};
let ty = if c == b'~' {
- ItemBody::Strikethrough
+ if inc == 2 {
+ ItemBody::Strikethrough
+ } else {
+ ItemBody::Subscript
+ }
+ } else if c == b'^' {
+ ItemBody::Superscript
} else if inc == 2 {
ItemBody::Strong
- } else {
+ } else{
ItemBody::Emphasis
};
@@ -2023,6 +2031,8 @@ fn body_to_tag_end(body: &ItemBody) -> TagEnd {
match *body {
ItemBody::Paragraph => TagEnd::Paragraph,
ItemBody::Emphasis => TagEnd::Emphasis,
+ ItemBody::Superscript => TagEnd::Superscript,
+ ItemBody::Subscript => TagEnd::Subscript,
ItemBody::Strong => TagEnd::Strong,
ItemBody::Strikethrough => TagEnd::Strikethrough,
ItemBody::Link(..) => TagEnd::Link,
@@ -2065,6 +2075,8 @@ fn item_to_event<'a>(item: Item, text: &'a str, allocs: &mut Allocations<'a>) ->
ItemBody::Rule => return Event::Rule,
ItemBody::Paragraph => Tag::Paragraph,
ItemBody::Emphasis => Tag::Emphasis,
+ ItemBody::Superscript => Tag::Superscript,
+ ItemBody::Subscript => Tag::Subscript,
ItemBody::Strong => Tag::Strong,
ItemBody::Strikethrough => Tag::Strikethrough,
ItemBody::Link(link_ix) => {
diff --git a/pulldown-cmark/tests/suite/strikethrough.rs b/pulldown-cmark/tests/suite/strikethrough.rs
index a8799a3b..021a4bc3 100644
--- a/pulldown-cmark/tests/suite/strikethrough.rs
+++ b/pulldown-cmark/tests/suite/strikethrough.rs
@@ -13,6 +13,16 @@ fn strikethrough_test_1() {
test_markdown_html(original, expected, false, false, false);
}
+#[test]
+fn strikethrough_test_0() {
+ let original = r##"^This is super^ ~This is sub~
+"##;
+ let expected = r##"This is stricken outThis is ~strickenThis~is~nothingThis ~~is stricken.This ~~is stricken but this is not~~Thisisstricken!.This is stricken outThis is ~strickenThis~is~nothingThis ~is stricken.This ~~is stricken.This ~~is stricken but this is not~~foobar_raz, not barfoo_raz
stuff](https://example.com)foo
+
+
+
+foo
+
+
+
+foo
+
+
+
+
+
+foo
+
+
+
+````````````````````````````````
+
+```````````````````````````````` example
+the trailing space after the > should be stripped
+ > {.bar}
+===
+.
+foo
+
+the trailing space after the > should be stripped
+>
+````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 25244f9d..48bef856 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -724,8 +724,25 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let new_end = if has_trailing_content {
content_end
} else {
+ let mut last_line_start = header_start;
+ loop {
+ let next_line_start = last_line_start + scan_nextline(&bytes[last_line_start..content_end]);
+ if next_line_start >= content_end {
+ break;
+ }
+ let mut line_start = LineStart::new(&bytes[next_line_start..content_end]);
+ if scan_containers(
+ &self.tree,
+ &mut line_start,
+ self.options.has_gfm_footnotes(),
+ ) != self.tree.spine_len()
+ {
+ break;
+ }
+ last_line_start = next_line_start + line_start.bytes_scanned();
+ }
let trailing_ws =
- scan_rev_while(&bytes[header_start..content_end], is_ascii_whitespace_no_nl);
+ scan_rev_while(&bytes[last_line_start..content_end], is_ascii_whitespace_no_nl);
content_end - trailing_ws
};
diff --git a/pulldown-cmark/tests/suite/regression.rs b/pulldown-cmark/tests/suite/regression.rs
index 9a8b1aa9..70229e5c 100644
--- a/pulldown-cmark/tests/suite/regression.rs
+++ b/pulldown-cmark/tests/suite/regression.rs
@@ -3253,3 +3253,65 @@ stuff](https://example.com)
test_markdown_html(original, expected, false, false, false);
}
+
+#[test]
+fn regression_test_206() {
+ let original = r##"foo
+{.class}
+===
+
+> foo
+> {.class}
+> ===
+>
+> > foo
+> > {.class}
+> > ===
+
+* > foo
+ > {.class}
+ > ===
+
+> foo
+> {.class}
+> ===
+"##;
+ let expected = r##"foo
+
+
+
+foo
+
+
+
+foo
+
+
+
+
+
+foo
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn regression_test_207() {
+ let original = r##"the trailing space after the > should be stripped
+ > {.bar}
+===
+"##;
+ let expected = r##"foo
+
+the trailing space after the > should be stripped
+>
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
From c35ab3cf1149950c7482158549641cee12d7f453 Mon Sep 17 00:00:00 2001
From: Roope Salmi \\
";
From e6e9d88d3408d18d106ed51b94f083cae4bba38d Mon Sep 17 00:00:00 2001
From: Roope Salmi
+
+````````````````````````````````
diff --git a/pulldown-cmark/src/tree.rs b/pulldown-cmark/src/tree.rs
index cca6208e..4200d770 100644
--- a/pulldown-cmark/src/tree.rs
+++ b/pulldown-cmark/src/tree.rs
@@ -186,8 +186,6 @@ impl
+
+
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
From 8705837fd910a3568a081e2e8fb49c88f1756f0d Mon Sep 17 00:00:00 2001
From: Michael Howell
+
+
+
+
baz
-
+ baz
+baz
-
+ baz
+baz
-
+baz
+baz
-
+
+
+{ orange code block }
+
+
+
+
+````````````````````````````````
+
Definition titles can't be tables.
```````````````````````````````` example
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index ec2e5ec0..b2fc4c39 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -285,8 +285,14 @@ impl<'a> LineStart<'a> {
) -> Option
+orange fruit
+
+ { orange code block }
+
+
+
baz
-
+ baz
+baz
-
+ baz
+baz
-
+baz
+baz
-
+
+
+{ orange code block }
+
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false);
+}
+
+#[test]
+fn definition_lists_test_18() {
let original = r##"Test|Table
----|-----
: first
@@ -414,7 +465,7 @@ fn definition_lists_test_17() {
}
#[test]
-fn definition_lists_test_18() {
+fn definition_lists_test_19() {
let original = r##"first
: second
@@ -435,7 +486,7 @@ Test|Table
}
#[test]
-fn definition_lists_test_19() {
+fn definition_lists_test_20() {
let original = r##"My section
==========
: first
@@ -448,7 +499,7 @@ fn definition_lists_test_19() {
}
#[test]
-fn definition_lists_test_20() {
+fn definition_lists_test_21() {
let original = r##"first
: second
@@ -468,7 +519,7 @@ My section
}
#[test]
-fn definition_lists_test_21() {
+fn definition_lists_test_22() {
let original = r##"## My subsection
: first
"##;
@@ -480,7 +531,7 @@ fn definition_lists_test_21() {
}
#[test]
-fn definition_lists_test_22() {
+fn definition_lists_test_23() {
let original = r##"first
: second
@@ -499,7 +550,7 @@ fn definition_lists_test_22() {
}
#[test]
-fn definition_lists_test_23() {
+fn definition_lists_test_24() {
let original = r##"first\
: second
@@ -518,7 +569,7 @@ third
}
#[test]
-fn definition_lists_test_24() {
+fn definition_lists_test_25() {
let original = r##"
+orange fruit
+
+ { orange code block }
+
+
+Thisisstricken!.This is stricken outThis is ~strickenThis~is~nothingThis ~is stricken.This ~~is stricken.This ~~is stricken but this is not~~
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -21,7 +21,7 @@ fn blockquotes_tags_test_2() {
let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -32,7 +32,7 @@ fn blockquotes_tags_test_3() {
let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -43,7 +43,7 @@ fn blockquotes_tags_test_4() {
let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -54,7 +54,7 @@ fn blockquotes_tags_test_5() {
let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -65,7 +65,7 @@ fn blockquotes_tags_test_6() {
let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -75,7 +75,7 @@ fn blockquotes_tags_test_7() {
let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -88,7 +88,7 @@ fn blockquotes_tags_test_8() {
Line 2.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -131,7 +131,7 @@ fn blockquotes_tags_test_11() { let expected = r##"Line 1.
Line 2.
Line 1.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -144,7 +144,7 @@ fn blockquotes_tags_test_12() { Line 2. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -159,7 +159,7 @@ fn blockquotes_tags_test_13() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -174,7 +174,7 @@ fn blockquotes_tags_test_14() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -189,7 +189,7 @@ fn blockquotes_tags_test_15() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -216,7 +216,7 @@ sink ships "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -237,7 +237,7 @@ fn blockquotes_tags_test_17() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -251,5 +251,5 @@ This should be a normal block quote. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/definition_lists.rs b/pulldown-cmark/tests/suite/definition_lists.rs index 897e7d89..37ff4f82 100644 --- a/pulldown-cmark/tests/suite/definition_lists.rs +++ b/pulldown-cmark/tests/suite/definition_lists.rs @@ -19,7 +19,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -44,7 +44,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -61,7 +61,7 @@ fn definition_lists_test_3() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -80,7 +80,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -105,7 +105,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -144,7 +144,7 @@ crisp, pleasant to taste "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -166,7 +166,7 @@ fn definition_lists_test_7() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -189,7 +189,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -223,7 +223,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -261,7 +261,7 @@ fruit "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -282,7 +282,7 @@ c "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -304,7 +304,7 @@ bim "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -326,7 +326,7 @@ BlozeLine 2.
Bloze
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -341,7 +341,7 @@ BlozeBloze
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -358,7 +358,7 @@ BlozeBloze
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -401,7 +401,7 @@ bar : baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -447,7 +447,7 @@ fn definition_lists_test_17() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -461,7 +461,7 @@ fn definition_lists_test_18() {: first
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -482,7 +482,7 @@ Test|Table: fourth
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -495,7 +495,7 @@ fn definition_lists_test_20() {: first
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -515,7 +515,7 @@ My section: fourth
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -527,7 +527,7 @@ fn definition_lists_test_22() {: first
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -546,7 +546,7 @@ fn definition_lists_test_23() {: fourth
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -565,7 +565,7 @@ third "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -588,7 +588,7 @@ first : fourth "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -612,7 +612,7 @@ third "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -647,5 +647,5 @@ level three "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/footnotes.rs b/pulldown-cmark/tests/suite/footnotes.rs index 5d4e9061..c9a59f4a 100644 --- a/pulldown-cmark/tests/suite/footnotes.rs +++ b/pulldown-cmark/tests/suite/footnotes.rs @@ -15,7 +15,7 @@ fn footnotes_test_1() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -34,7 +34,7 @@ Yes it goes on and on my friends. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -77,7 +77,7 @@ fn footnotes_test_4() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -114,7 +114,7 @@ fn footnotes_test_5() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -138,7 +138,7 @@ d "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -161,7 +161,7 @@ I had largely given over my inquiries into what Professor Angell called the "Cth "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -180,7 +180,7 @@ If a woodchuck could chuck wood.As such, we can guarantee that the non-childish forms of entertainment are probably more entertaining to adults, since, having had a whole childhood doing the childish ones, the non-childish ones are merely the ones that haven't gotten boring yet.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -277,7 +277,7 @@ fn footnotes_test_11() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -293,7 +293,7 @@ fn footnotes_test_12() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -312,7 +312,7 @@ fn footnotes_test_13() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -336,7 +336,7 @@ An unordered list before the footnotes: "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -393,7 +393,7 @@ Songs that simply loop are a popular way to annoy people. [^examples3] "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -431,7 +431,7 @@ test suite into pulldown-cmark should be fine.[otherlink1]: https://github.com/github/cmark-gfm/blob/1e230827a584ebc9938c3eadc5059c55ef3c9abf/test/extensions.txt#L702
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -456,7 +456,7 @@ fn main() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -470,7 +470,7 @@ fn footnotes_test_18() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -494,7 +494,7 @@ fn footnotes_test_19() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -556,7 +556,7 @@ Second 2 test "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -568,7 +568,7 @@ fn footnotes_test_21() { let expected = r##"Test ^ link
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -608,7 +608,7 @@ second fourth] "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -623,7 +623,7 @@ fn footnotes_test_23() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -644,7 +644,7 @@ footnote [^quux] "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -663,7 +663,7 @@ fn footnotes_test_25() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -682,5 +682,5 @@ fn footnotes_test_26() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/gfm_strikethrough.rs b/pulldown-cmark/tests/suite/gfm_strikethrough.rs index 59f96745..34902781 100644 --- a/pulldown-cmark/tests/suite/gfm_strikethrough.rs +++ b/pulldown-cmark/tests/suite/gfm_strikethrough.rs @@ -10,7 +10,7 @@ fn gfm_strikethrough_test_1() { let expected = r##"Hi Hello, there world!
new paragraph~~.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -33,5 +33,5 @@ fn gfm_strikethrough_test_3() { let expected = r##"This will ~~~not~~~ strike.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/gfm_table.rs b/pulldown-cmark/tests/suite/gfm_table.rs index 4c997977..f2c7fc69 100644 --- a/pulldown-cmark/tests/suite/gfm_table.rs +++ b/pulldown-cmark/tests/suite/gfm_table.rs @@ -25,7 +25,7 @@ fn gfm_table_test_1() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -50,7 +50,7 @@ bar | baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -77,7 +77,7 @@ fn gfm_table_test_3() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -106,7 +106,7 @@ fn gfm_table_test_4() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -139,7 +139,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -153,7 +153,7 @@ fn gfm_table_test_6() { | bar | "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -183,7 +183,7 @@ fn gfm_table_test_7() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -202,7 +202,7 @@ fn gfm_table_test_8() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -229,5 +229,5 @@ fn gfm_table_test_9() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/gfm_tasklist.rs b/pulldown-cmark/tests/suite/gfm_tasklist.rs index 72262bba..ced6086b 100644 --- a/pulldown-cmark/tests/suite/gfm_tasklist.rs +++ b/pulldown-cmark/tests/suite/gfm_tasklist.rs @@ -16,7 +16,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -41,5 +41,5 @@ bim "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/heading_attrs.rs b/pulldown-cmark/tests/suite/heading_attrs.rs index f16bb8c6..ed9cf2d7 100644 --- a/pulldown-cmark/tests/suite/heading_attrs.rs +++ b/pulldown-cmark/tests/suite/heading_attrs.rs @@ -20,7 +20,7 @@ multiple! {.myclass1 myattr #myh3 otherattr=value .myclass2}nextline
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -99,7 +99,7 @@ nextline {.class}](https://example.com/) {#myid3}
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -114,7 +114,7 @@ cont "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -133,7 +133,7 @@ fn heading_attrs_test_8() { } "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -145,7 +145,7 @@ fn heading_attrs_test_9() {#{}
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -545,7 +545,7 @@ fn heading_attrs_test_39() {\ may follow just after the first $: \{1, 2, 3\}
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -41,7 +41,7 @@ $$$$"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -57,7 +57,7 @@ $$x$$$$$$y$$
xy$$
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -82,7 +82,7 @@ $α$α
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -95,7 +95,7 @@ Dollar at end of line$Dollar at end of line$
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -112,7 +112,7 @@ $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -126,7 +126,7 @@ hard break either "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -139,7 +139,7 @@ $$y = \$ x$$y = \$ x
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -152,7 +152,7 @@ $$ $ $$$$ $ $$
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -162,7 +162,7 @@ fn math_test_11() { let expected = r##"alpha$betagamma$$delta
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -190,7 +190,7 @@ they should not allow inlines to do that $$2 + * "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -200,7 +200,7 @@ fn math_test_13() { let expected = r##"these are math texts: fooy=xbar and y=xbar and fooy=x bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -216,7 +216,7 @@ braces: ($x=y$) [$x=y$] {$x=y$}braces: (x=y) [x=y] {x=y}
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -226,7 +226,7 @@ fn math_test_15() { let expected = r##"x=y
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -245,7 +245,7 @@ $$a$$$$b$$ab
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -264,7 +264,7 @@ $$ Display `first $$ then` codeCode $$ first then $$ display
Math environment contains y: $x {$ $ } y
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -412,7 +412,7 @@ and expected to be as short as possible:\text{first $$ second}$$
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -434,7 +434,7 @@ $}$] $$$}$] $$
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -444,7 +444,7 @@ fn math_test_25() { let expected = r##"x `y`
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -486,7 +486,7 @@ b "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -500,7 +500,7 @@ fn math_test_27() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -523,7 +523,7 @@ A = 5 "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -536,7 +536,7 @@ $$aa<b "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -551,7 +551,7 @@ fn math_test_30() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -563,7 +563,7 @@ fn math_test_31() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -579,7 +579,7 @@ fn math_test_32() {1x
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -595,7 +595,7 @@ _$a$ equals $b$_a equals b
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -618,7 +618,7 @@ a "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -628,7 +628,7 @@ fn math_test_35() { let expected = r##"\{a\,b\}
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -644,7 +644,7 @@ ${a}_b c_{d}${a}_b c_{d}
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -656,7 +656,7 @@ $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -666,7 +666,7 @@ fn math_test_38() { let expected = r##"x = \$
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -676,7 +676,7 @@ fn math_test_39() { let expected = r##"Equation \Omega(69) in italic text
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -700,7 +700,7 @@ fn math_test_40() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -716,7 +716,7 @@ fn math_test_41() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -732,7 +732,7 @@ fn math_test_42() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -770,7 +770,7 @@ fn math_test_43() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -790,7 +790,7 @@ improperly }{ nested But this still isn't, because the braces are still counted: $}{$ "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -819,7 +819,7 @@ another improperly nested example }}}}}}}}}}}}}}}}}}}}}}}}}}}}}} "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -853,7 +853,7 @@ fn math_test_46() { {}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{ 255 brace pairs and one unclosed brace "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -915,5 +915,5 @@ fn math_test_47() { }}}}}}}}}}}}}}}{$ 255 close braces and one open brace "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/metadata_blocks.rs b/pulldown-cmark/tests/suite/metadata_blocks.rs index 9ed3b59b..0020ebba 100644 --- a/pulldown-cmark/tests/suite/metadata_blocks.rs +++ b/pulldown-cmark/tests/suite/metadata_blocks.rs @@ -12,7 +12,7 @@ another_field: 0 "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -26,7 +26,7 @@ another_field: 0 another_field: 0 "##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -38,7 +38,7 @@ fn metadata_blocks_test_3() {My paragraph here.
"##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -105,7 +105,7 @@ another_field: 0 another_field: 0 "##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -126,7 +126,7 @@ another_field: 0 ---a "##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -138,7 +138,7 @@ another_field: 0 "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -150,7 +150,7 @@ another_field: 0 "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -165,7 +165,7 @@ Things "##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -177,5 +177,5 @@ fn metadata_blocks_test_12() { "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } diff --git a/pulldown-cmark/tests/suite/mod.rs b/pulldown-cmark/tests/suite/mod.rs index 090dc71e..79c630c8 100644 --- a/pulldown-cmark/tests/suite/mod.rs +++ b/pulldown-cmark/tests/suite/mod.rs @@ -17,5 +17,5 @@ mod regression; mod smart_punct; mod spec; mod strikethrough; +mod super_sub; mod table; -mod super_sub; \ No newline at end of file diff --git a/pulldown-cmark/tests/suite/old_footnotes.rs b/pulldown-cmark/tests/suite/old_footnotes.rs index 80ec6ef4..a105a32b 100644 --- a/pulldown-cmark/tests/suite/old_footnotes.rs +++ b/pulldown-cmark/tests/suite/old_footnotes.rs @@ -15,7 +15,7 @@ fn old_footnotes_test_1() { "##; - test_markdown_html(original, expected, false, false, true); + test_markdown_html(original, expected, false, false, true, false); } #[test] @@ -34,7 +34,7 @@ Yes it goes on and on my friends. "##; - test_markdown_html(original, expected, false, false, true); + test_markdown_html(original, expected, false, false, true, false); } #[test] @@ -71,7 +71,7 @@ I had largely given over my inquiries into what Professor Angell called the "CthI had largely given over my inquiries into what Professor Angell called the "Cthulhu Cult", and was visiting a learned friend in Paterson, New Jersey; the curator of a local museum and a mineralogist of note. Examining one day the reserve specimens roughly set on the storage shelves in a rear room of the museum, my eye was caught by an odd picture in one of the old papers spread beneath the stones. It was the Sydney Bulletin I have mentioned, for my friend had wide affiliations in all conceivable foreign parts; and the picture was a half-tone cut of a hideous stone image almost identical with that which Legrasse had found in the swamp.
"##; - test_markdown_html(original, expected, false, false, true); + test_markdown_html(original, expected, false, false, true, false); } #[test] @@ -90,7 +90,7 @@ If a woodchuck could chuck wood.As such, we can guarantee that the non-childish forms of entertainment are probably more entertaining to adults, since, having had a whole childhood doing the childish ones, the non-childish ones are merely the ones that haven't gotten boring yet.
"##; - test_markdown_html(original, expected, false, false, true); + test_markdown_html(original, expected, false, false, true, false); } #[test] @@ -144,7 +144,7 @@ fn old_footnotes_test_7() { "##; - test_markdown_html(original, expected, false, false, true); + test_markdown_html(original, expected, false, false, true, false); } #[test] @@ -159,7 +159,7 @@ fn old_footnotes_test_8() {Common for people practicing music.
[Reference to footnotes A1, B2 and C3.
Footnote A.
Footnote B.
Footnote C.
see the many articles on QuickCheck.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -48,7 +48,7 @@ fn regression_test_3() {foo§(bar)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -89,7 +89,7 @@ fn regression_test_6() { let expected = r##"https://example.com hello
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -103,7 +103,7 @@ fn regression_test_7() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -130,7 +130,7 @@ fn regression_test_8() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -144,7 +144,7 @@ i8 let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -156,7 +156,7 @@ fn regression_test_10() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -168,7 +168,7 @@ fn regression_test_11() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -181,7 +181,7 @@ fn regression_test_12() {[a]: /url (title))
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -194,7 +194,7 @@ bb
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -205,7 +205,7 @@ foo let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -215,7 +215,7 @@ fn regression_test_15() { let expected = r##"`foo`
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -227,7 +227,7 @@ bar bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -240,7 +240,7 @@ fn regression_test_17() {1) bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -262,7 +262,7 @@ fn regression_test_18() {1)2)3)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -272,7 +272,7 @@ fn regression_test_19() { let expected = r##"[](<<>)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -282,7 +282,7 @@ fn regression_test_20() { let expected = r##"`foo``bar
\foo
YOLO
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -320,7 +320,7 @@ A | B foo | bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -334,7 +334,7 @@ foo|bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -348,7 +348,7 @@ foo|bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -358,7 +358,7 @@ fn regression_test_26() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -368,7 +368,7 @@ fn regression_test_27() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -378,7 +378,7 @@ fn regression_test_28() { let expected = r##"
some text
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -424,7 +424,7 @@ fn regression_test_31() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -439,7 +439,7 @@ x]: f
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -449,7 +449,7 @@ fn regression_test_33() { let expected = r##"[foo]:
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -464,7 +464,7 @@ fn regression_test_34() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -479,7 +479,7 @@ yolo | swagyolo | swag
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -489,7 +489,7 @@ fn regression_test_36() { let expected = r##"a
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -527,7 +527,7 @@ fn regression_test_39() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -537,7 +537,7 @@ fn regression_test_40() { let expected = r##"\|
Paragraph 2
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -560,7 +560,7 @@ fn regression_test_42() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -572,7 +572,7 @@ fn regression_test_43() { let expected = r##"| foo | bar |
|---|---|
| [a](< | url>) |
")
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -599,7 +599,7 @@ fn regression_test_45() {)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -612,7 +612,7 @@ fn regression_test_46() {")
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -622,7 +622,7 @@ fn regression_test_47() { let expected = r##"<http:// >
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -632,7 +632,7 @@ fn regression_test_48() { let expected = r##"<http://>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -651,7 +651,7 @@ fn regression_test_49() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -670,7 +670,7 @@ fn regression_test_50() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -680,7 +680,7 @@ fn regression_test_51() { let expected = r##"*hi_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -690,7 +690,7 @@ fn regression_test_52() { let expected = r##"email: john@example.com_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -704,7 +704,7 @@ bar">link "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -719,7 +719,7 @@ fn regression_test_54() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -735,7 +735,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -753,7 +753,7 @@ fn regression_test_56() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -770,7 +770,7 @@ fn regression_test_57() {[a b] [a > b]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -783,7 +783,7 @@ package`] let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -798,7 +798,7 @@ fn regression_test_59() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -811,7 +811,7 @@ fn regression_test_60() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -827,7 +827,7 @@ the size ofusize and have the same alignment.
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -851,7 +851,7 @@ An unordered list before the footnotes:
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -869,7 +869,7 @@ fn regression_test_63() {
<foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -942,7 +942,7 @@ lo"> "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -953,7 +953,7 @@ fn regression_test_67() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -975,7 +975,7 @@ a 2. a "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -991,7 +991,7 @@ fn regression_test_69() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1010,7 +1010,7 @@ barbaz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1029,7 +1029,7 @@ fn regression_test_71() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1041,7 +1041,7 @@ fn regression_test_72() { let expected = r##"[]]
foobar
foobar
emphasis strike strong strike emphasis strong
emphasis strike strong strike emphasis strong code
emphasis strike codestrike emphasis strong
emphasis strike codestrike emphasis strong code
strong strike emphasis strike emphasis strong
strong strike emphasis strike emphasis strong code
strong strike codestrike emphasis strong
strong strike codestrike emphasis strong code
b
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1353,7 +1353,7 @@ fn regression_test_89() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1367,7 +1367,7 @@ fn regression_test_90() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1379,7 +1379,7 @@ fn regression_test_91() {"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1451,7 +1451,7 @@ fn regression_test_97() { > not quote "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1463,7 +1463,7 @@ fn regression_test_98() {quote
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1475,7 +1475,7 @@ fn regression_test_99() { >not quote "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1494,7 +1494,7 @@ fn regression_test_100() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1504,7 +1504,7 @@ fn regression_test_101() { let expected = r##"quote
*R]-
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1514,7 +1514,7 @@ fn regression_test_102() { let expected = r##"foobarbaz**
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1528,7 +1528,7 @@ fn regression_test_103() { % "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1542,7 +1542,7 @@ fn regression_test_104() { % "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1552,7 +1552,7 @@ fn regression_test_105() { let expected = r##"<@1>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1566,7 +1566,7 @@ Things let expected = r##"Things
"##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -1581,7 +1581,7 @@ Things let expected = r##"Things
"##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -1595,7 +1595,7 @@ Things let expected = r##"Things
"##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -1619,7 +1619,7 @@ fn regression_test_109() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1634,7 +1634,7 @@ fn regression_test_110() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1644,7 +1644,7 @@ fn regression_test_111() { let expected = r##"j*5=
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1710,7 +1710,7 @@ Table "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1723,7 +1723,7 @@ fn regression_test_113() {[x]: (
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1745,7 +1745,7 @@ an unmatched asterisk. {{ "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1755,7 +1755,7 @@ fn regression_test_115() { let expected = r##"*a.*.a..
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1774,7 +1774,7 @@ _*xx-_-*xx--
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1803,7 +1803,7 @@ fn regression_test_117() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1832,7 +1832,7 @@ fn regression_test_118() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1845,7 +1845,7 @@ fn regression_test_119() {]: https://rust-lang.org
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1878,7 +1878,7 @@ fn regression_test_120() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1921,7 +1921,7 @@ The second hyphen should parse the same way in both samples. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1936,7 +1936,7 @@ https://rust-lang.org "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1949,7 +1949,7 @@ Second try]: https://rust-lang.orgSecond try]: https://rust-lang.org
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1972,7 +1972,7 @@ fn regression_test_124() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1984,7 +1984,7 @@ bar \bar \
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1998,7 +1998,7 @@ fn regression_test_126() {[third try]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2018,7 +2018,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2040,7 +2040,7 @@ fn regression_test_128() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2051,7 +2051,7 @@ fn regression_test_129() { let expected = r##"-
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2068,7 +2068,7 @@ foo) "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2085,7 +2085,7 @@ fn regression_test_131() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2104,7 +2104,7 @@ fn regression_test_132() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2125,7 +2125,7 @@ fn regression_test_133() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2136,7 +2136,7 @@ fn regression_test_134() { let expected = r##"- baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2154,7 +2154,7 @@ GFM footnotes can interrupt link defs if they have three spaces, but not four.GFM footnotes can interrupt link defs if they have three spaces, but not four.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2171,7 +2171,7 @@ Setext heading can interrupt link def if it has three spaces, but not four.Setext heading can interrupt link def if it has three spaces, but not four.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2191,7 +2191,7 @@ List can interrupt the paragraph at the start of a link definition if it startsList can interrupt the paragraph at the start of a link definition if it starts with three spaces, but not four.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2210,7 +2210,7 @@ second]second]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2228,7 +2228,7 @@ second] second "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2245,7 +2245,7 @@ fn regression_test_140() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2262,7 +2262,7 @@ fn regression_test_141() { ">first "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2281,7 +2281,7 @@ fn regression_test_142() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2300,7 +2300,7 @@ fn regression_test_143() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2319,7 +2319,7 @@ fn regression_test_144() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2336,7 +2336,7 @@ fn regression_test_145() { ">first "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2355,7 +2355,7 @@ fn regression_test_146() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2366,7 +2366,7 @@ fn regression_test_147() { let expected = r##"'foo'bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2382,7 +2382,7 @@ fn regression_test_148() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2398,7 +2398,7 @@ a]: https://example.com let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2419,7 +2419,7 @@ fn regression_test_150() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2441,7 +2441,7 @@ baz* "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2463,7 +2463,7 @@ baz` "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2485,7 +2485,7 @@ baz](https://example.com) "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2500,7 +2500,7 @@ part of the title' part of the title">mylink "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2517,7 +2517,7 @@ starts in column three. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2531,7 +2531,7 @@ fn regression_test_156() {This is not in the list at all. It's a paragraph after it.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2543,7 +2543,7 @@ fn regression_test_157() { let expected = r##"\!\"\#\$\%\& \!\"\#\$\%\& \!\"\#\$\%\&
Another paragraph whose spaces must be removed.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2583,7 +2583,7 @@ fn regression_test_160() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2598,7 +2598,7 @@ fn regression_test_161() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2608,7 +2608,7 @@ fn regression_test_162() { let expected = r##"� �
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2618,7 +2618,7 @@ fn regression_test_163() { let expected = r##"�
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2634,7 +2634,7 @@ t_ "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2650,7 +2650,7 @@ N* "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2661,7 +2661,7 @@ fn regression_test_166() { let expected = r##"[link]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2826,7 +2826,7 @@ fn regression_test_177() {[link]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2838,7 +2838,7 @@ fn regression_test_178() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2851,7 +2851,7 @@ fn regression_test_179() {[link]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2863,7 +2863,7 @@ fn regression_test_180() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2876,7 +2876,7 @@ fn regression_test_181() {[link]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2888,7 +2888,7 @@ fn regression_test_182() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2906,7 +2906,7 @@ fn regression_test_183() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2920,7 +2920,7 @@ test2test2
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2936,7 +2936,7 @@ test2 "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2953,7 +2953,7 @@ fn regression_test_186() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2973,7 +2973,7 @@ fn regression_test_187() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2986,7 +2986,7 @@ fn regression_test_188() {<!p>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2998,7 +2998,7 @@ fn regression_test_189() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3014,7 +3014,7 @@ junk "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3026,7 +3026,7 @@ fn regression_test_191() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3037,7 +3037,7 @@ fn regression_test_192() { let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3051,7 +3051,7 @@ fn regression_test_193() {
text ">link
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3069,7 +3069,7 @@ _**
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3084,7 +3084,7 @@ fn regression_test_195() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3097,7 +3097,7 @@ fn regression_test_196() {
bar
"##; - test_markdown_html(original, expected, false, true, false); + test_markdown_html(original, expected, false, true, false, false); } #[test] @@ -3151,7 +3151,7 @@ fn regression_test_200() { let expected = r##"
foobar_raz, not barfoo_raz
> Something is wrong!
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3251,7 +3251,7 @@ stuff](https://example.com) "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3300,7 +3300,7 @@ fn regression_test_206() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3313,5 +3313,5 @@ fn regression_test_207() { > "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/smart_punct.rs b/pulldown-cmark/tests/suite/smart_punct.rs index 327c1046..f4341d2f 100644 --- a/pulldown-cmark/tests/suite/smart_punct.rs +++ b/pulldown-cmark/tests/suite/smart_punct.rs @@ -12,7 +12,7 @@ fn smart_punct_test_1() { “‘Shelob’ is my name.” "##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -22,7 +22,7 @@ fn smart_punct_test_2() { let expected = r##"‘A’, ‘B’, and ‘C’ are letters.
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -34,7 +34,7 @@ So is 'pine.' So is ‘pine.’ "##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -44,7 +44,7 @@ fn smart_punct_test_4() { let expected = r##"‘He said, “I want to go.”’
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -54,7 +54,7 @@ fn smart_punct_test_5() { let expected = r##"Were you alive in the 70’s?
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -64,7 +64,7 @@ fn smart_punct_test_6() { let expected = r##"Here is some quoted ‘code’ and a “quoted link”.
’tis the season to be ‘jolly’
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -84,7 +84,7 @@ fn smart_punct_test_8() { let expected = r##"‘We’ll use Jane’s boat and John’s truck,’ Jenna said.
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -97,7 +97,7 @@ fn smart_punct_test_9() {“Second paragraph by same speaker, in fiction.”
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -107,7 +107,7 @@ fn smart_punct_test_10() { let expected = r##"[a]’s b’
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -121,7 +121,7 @@ This isn't either. 5'8" "##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -139,7 +139,7 @@ en – en 2–3 "##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -167,7 +167,7 @@ nine——— thirteen———––. "##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -177,7 +177,7 @@ fn smart_punct_test_14() { let expected = r##"Escaped hyphens: -- ---.
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -187,7 +187,7 @@ fn smart_punct_test_15() { let expected = r##"Ellipses…and…and….
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } #[test] @@ -197,5 +197,5 @@ fn smart_punct_test_16() { let expected = r##"No ellipses...
"##; - test_markdown_html(original, expected, true, false, false); + test_markdown_html(original, expected, true, false, false, false); } diff --git a/pulldown-cmark/tests/suite/spec.rs b/pulldown-cmark/tests/suite/spec.rs index 5de624c7..2a5520fb 100644 --- a/pulldown-cmark/tests/suite/spec.rs +++ b/pulldown-cmark/tests/suite/spec.rs @@ -11,7 +11,7 @@ fn spec_test_1() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -22,7 +22,7 @@ fn spec_test_2() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -35,7 +35,7 @@ fn spec_test_3() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -52,7 +52,7 @@ fn spec_test_4() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -70,7 +70,7 @@ fn spec_test_5() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -83,7 +83,7 @@ fn spec_test_6() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -98,7 +98,7 @@ fn spec_test_7() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -111,7 +111,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -133,7 +133,7 @@ fn spec_test_9() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -143,7 +143,7 @@ fn spec_test_10() { let expected = r##"!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -173,7 +173,7 @@ fn spec_test_13() { let expected = r##"\ \A\a\ \3\φ\«
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -199,7 +199,7 @@ fn spec_test_14() { ö not a character entity "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -209,7 +209,7 @@ fn spec_test_15() { let expected = r##"\emphasis
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -221,7 +221,7 @@ bar bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -231,7 +231,7 @@ fn spec_test_17() { let expected = r##"\[\`
# Ӓ Ϡ �
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -344,7 +344,7 @@ fn spec_test_27() { let expected = r##"" ആ ಫ
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -360,7 +360,7 @@ fn spec_test_28() { &ThisIsNotDefined; &hi?; "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -370,7 +370,7 @@ fn spec_test_29() { let expected = r##"©
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -380,7 +380,7 @@ fn spec_test_30() { let expected = r##"&MadeUpEntity;
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -390,7 +390,7 @@ fn spec_test_31() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -400,7 +400,7 @@ fn spec_test_32() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -412,7 +412,7 @@ fn spec_test_33() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -425,7 +425,7 @@ foo "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -435,7 +435,7 @@ fn spec_test_35() { let expected = r##"föö
foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -505,7 +505,7 @@ fn spec_test_41() { let expected = r##"[a](url "tit")
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -519,7 +519,7 @@ fn spec_test_42() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -533,7 +533,7 @@ ___+++
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -553,7 +553,7 @@ fn spec_test_45() { let expected = r##"===
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -567,7 +567,7 @@ __ __ "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -581,7 +581,7 @@ fn spec_test_47() {---a---
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -680,7 +680,7 @@ fn spec_test_56() { let expected = r##"-
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -698,7 +698,7 @@ fn spec_test_57() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -712,7 +712,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -725,7 +725,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -743,7 +743,7 @@ fn spec_test_60() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -759,7 +759,7 @@ fn spec_test_61() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -779,7 +779,7 @@ fn spec_test_62() {####### foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -802,7 +802,7 @@ fn spec_test_64() {#hashtag
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -812,7 +812,7 @@ fn spec_test_65() { let expected = r##"## foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -822,7 +822,7 @@ fn spec_test_66() { let expected = r##"Bar foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -979,7 +979,7 @@ fn spec_test_79() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -994,7 +994,7 @@ Foo *bar*of dashes"/>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1168,7 +1168,7 @@ fn spec_test_92() {Baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1240,7 +1240,7 @@ fn spec_test_97() { let expected = r##"====
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1252,7 +1252,7 @@ fn spec_test_98() {baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1338,7 +1338,7 @@ barbaz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1354,7 +1354,7 @@ barbaz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1370,7 +1370,7 @@ bar baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1383,7 +1383,7 @@ fn spec_test_107() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1400,7 +1400,7 @@ fn spec_test_108() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1419,7 +1419,7 @@ fn spec_test_109() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1436,7 +1436,7 @@ fn spec_test_110() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1459,7 +1459,7 @@ chunk3 "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1474,7 +1474,7 @@ fn spec_test_112() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1487,7 +1487,7 @@ fn spec_test_113() { bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1500,7 +1500,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1521,7 +1521,7 @@ Headingfoo
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1688,7 +1688,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1705,7 +1705,7 @@ bbb
bbb
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1720,7 +1720,7 @@ fn spec_test_129() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1731,7 +1731,7 @@ fn spec_test_130() { let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1746,7 +1746,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1763,7 +1763,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1780,7 +1780,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1795,7 +1795,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1808,7 +1808,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1821,7 +1821,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1835,7 +1835,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1847,7 +1847,7 @@ aaa
aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1861,7 +1861,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1878,7 +1878,7 @@ baz
baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -1896,7 +1896,7 @@ bar
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1953,7 +1953,7 @@ foo
foo
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1966,7 +1966,7 @@ foo
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -1979,7 +1979,7 @@ fn spec_test_147() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -2000,7 +2000,7 @@ _world_.
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -2025,7 +2025,7 @@ okay.
okay.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2039,7 +2039,7 @@ fn spec_test_150() {bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2122,7 +2122,7 @@ fn spec_test_156() { *hi* "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2134,7 +2134,7 @@ foo foo "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2146,7 +2146,7 @@ fn spec_test_158() { *foo* "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2156,7 +2156,7 @@ fn spec_test_159() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2170,7 +2170,7 @@ foo "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2186,7 +2186,7 @@ int x = 33; ``` "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2200,7 +2200,7 @@ fn spec_test_162() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2214,7 +2214,7 @@ fn spec_test_163() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2228,7 +2228,7 @@ fn spec_test_164() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2240,7 +2240,7 @@ fn spec_test_165() { *bar* "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2254,7 +2254,7 @@ fn spec_test_166() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2270,7 +2270,7 @@ fn spec_test_167() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2280,7 +2280,7 @@ fn spec_test_168() { let expected = r##"foo
okay
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2322,7 +2322,7 @@ document.getElementById("demo").innerHTML = "Hello JavaScript!";okay
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2344,7 +2344,7 @@ _bar_ "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2366,7 +2366,7 @@ p {color:blue;}okay
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2382,7 +2382,7 @@ foo foo "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2399,7 +2399,7 @@ foobar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2415,7 +2415,7 @@ fn spec_test_175() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2427,7 +2427,7 @@ fn spec_test_176() {foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2439,7 +2439,7 @@ fn spec_test_177() {baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2453,7 +2453,7 @@ foo 1. *bar* "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2471,7 +2471,7 @@ barokay
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2491,7 +2491,7 @@ okayokay
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2501,7 +2501,7 @@ fn spec_test_181() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2535,7 +2535,7 @@ function matchwo(a,b)okay
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2549,7 +2549,7 @@ fn spec_test_183() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2563,7 +2563,7 @@ fn spec_test_184() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2579,7 +2579,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2595,7 +2595,7 @@ bar *foo* "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2609,7 +2609,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2625,7 +2625,7 @@ fn spec_test_188() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2639,7 +2639,7 @@ fn spec_test_189() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2665,7 +2665,7 @@ Hi "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2692,7 +2692,7 @@ fn spec_test_191() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2704,7 +2704,7 @@ fn spec_test_192() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2718,7 +2718,7 @@ fn spec_test_193() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2730,7 +2730,7 @@ fn spec_test_194() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2744,7 +2744,7 @@ fn spec_test_195() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2764,7 +2764,7 @@ line2 ">foo[foo]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2793,7 +2793,7 @@ fn spec_test_198() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2806,7 +2806,7 @@ fn spec_test_199() {[foo]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2818,7 +2818,7 @@ fn spec_test_200() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2831,7 +2831,7 @@ fn spec_test_201() {[foo]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2843,7 +2843,7 @@ fn spec_test_202() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2855,7 +2855,7 @@ fn spec_test_203() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2868,7 +2868,7 @@ fn spec_test_204() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2880,7 +2880,7 @@ fn spec_test_205() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2892,7 +2892,7 @@ fn spec_test_206() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2901,7 +2901,7 @@ fn spec_test_207() { "##; let expected = r##""##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2914,7 +2914,7 @@ bar let expected = r##"bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2924,7 +2924,7 @@ fn spec_test_209() { let expected = r##"[foo]: /url "title" ok
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2935,7 +2935,7 @@ fn spec_test_210() { let expected = r##""title" ok
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2949,7 +2949,7 @@ fn spec_test_211() {[foo]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2965,7 +2965,7 @@ fn spec_test_212() {[foo]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2980,7 +2980,7 @@ fn spec_test_213() {[bar]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -2995,7 +2995,7 @@ fn spec_test_214() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3009,7 +3009,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3022,7 +3022,7 @@ fn spec_test_216() { foo "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3041,7 +3041,7 @@ fn spec_test_217() { baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3055,7 +3055,7 @@ fn spec_test_218() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3068,7 +3068,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3085,7 +3085,7 @@ bbb ddd "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3099,7 +3099,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3111,7 +3111,7 @@ fn spec_test_222() { bbb "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3125,7 +3125,7 @@ bbb ccc "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3137,7 +3137,7 @@ bbb bbb "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3150,7 +3150,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3162,7 +3162,7 @@ bbb bbb "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3180,7 +3180,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3353,7 +3353,7 @@ fn spec_test_238() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3364,7 +3364,7 @@ fn spec_test_239() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3377,7 +3377,7 @@ fn spec_test_240() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3391,7 +3391,7 @@ fn spec_test_241() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3408,7 +3408,7 @@ fn spec_test_242() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3422,7 +3422,7 @@ bar
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3437,7 +3437,7 @@ fn spec_test_244() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3451,7 +3451,7 @@ fn spec_test_245() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3469,7 +3469,7 @@ fn spec_test_246() {
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3483,7 +3483,7 @@ baz
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -3498,7 +3498,7 @@ baz
baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3513,7 +3513,7 @@ bazbaz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3531,7 +3531,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3551,7 +3551,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3569,7 +3569,7 @@ fn spec_test_252() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3590,7 +3590,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3615,7 +3615,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3630,7 +3630,7 @@ fn spec_test_255() {two
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3647,7 +3647,7 @@ fn spec_test_256() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3663,7 +3663,7 @@ fn spec_test_257() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3680,7 +3680,7 @@ fn spec_test_258() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3701,7 +3701,7 @@ fn spec_test_259() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3720,7 +3720,7 @@ fn spec_test_260() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3733,7 +3733,7 @@ fn spec_test_261() {2.two
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3751,7 +3751,7 @@ fn spec_test_262() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3779,7 +3779,7 @@ fn spec_test_263() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3803,7 +3803,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3815,7 +3815,7 @@ fn spec_test_265() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3825,7 +3825,7 @@ fn spec_test_266() { let expected = r##"1234567890. not ok
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3837,7 +3837,7 @@ fn spec_test_267() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3849,7 +3849,7 @@ fn spec_test_268() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3859,7 +3859,7 @@ fn spec_test_269() { let expected = r##"-1. not ok
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3877,7 +3877,7 @@ fn spec_test_270() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3895,7 +3895,7 @@ fn spec_test_271() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3913,7 +3913,7 @@ paragraph "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3935,7 +3935,7 @@ fn spec_test_273() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3957,7 +3957,7 @@ fn spec_test_274() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3970,7 +3970,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -3985,7 +3985,7 @@ fn spec_test_276() {bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4002,7 +4002,7 @@ fn spec_test_277() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4029,7 +4029,7 @@ fn spec_test_278() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4042,7 +4042,7 @@ fn spec_test_279() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4057,7 +4057,7 @@ fn spec_test_280() {foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4073,7 +4073,7 @@ fn spec_test_281() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4089,7 +4089,7 @@ fn spec_test_282() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4105,7 +4105,7 @@ fn spec_test_283() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4117,7 +4117,7 @@ fn spec_test_284() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4134,7 +4134,7 @@ foo 1. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4159,7 +4159,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4184,7 +4184,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4209,7 +4209,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4230,7 +4230,7 @@ fn spec_test_289() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4255,7 +4255,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4269,7 +4269,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4289,7 +4289,7 @@ continued here. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4309,7 +4309,7 @@ continued here. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4336,7 +4336,7 @@ fn spec_test_294() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4354,7 +4354,7 @@ fn spec_test_295() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4371,7 +4371,7 @@ fn spec_test_296() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4387,7 +4387,7 @@ fn spec_test_297() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4403,7 +4403,7 @@ fn spec_test_298() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4423,7 +4423,7 @@ fn spec_test_299() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4443,7 +4443,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4461,7 +4461,7 @@ fn spec_test_301() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4479,7 +4479,7 @@ fn spec_test_302() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4495,7 +4495,7 @@ fn spec_test_303() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4507,7 +4507,7 @@ fn spec_test_304() { 14. The number of doors is 6. "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4521,7 +4521,7 @@ fn spec_test_305() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4546,7 +4546,7 @@ fn spec_test_306() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4574,7 +4574,7 @@ fn spec_test_307() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4598,7 +4598,7 @@ fn spec_test_308() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4627,7 +4627,7 @@ fn spec_test_309() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4651,7 +4651,7 @@ fn spec_test_310() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4675,7 +4675,7 @@ fn spec_test_311() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4695,7 +4695,7 @@ fn spec_test_312() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4718,7 +4718,7 @@ fn spec_test_313() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4741,7 +4741,7 @@ fn spec_test_314() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4762,7 +4762,7 @@ fn spec_test_315() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4787,7 +4787,7 @@ fn spec_test_316() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4811,7 +4811,7 @@ fn spec_test_317() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4836,7 +4836,7 @@ fn spec_test_318() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4860,7 +4860,7 @@ fn spec_test_319() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4880,7 +4880,7 @@ fn spec_test_320() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4904,7 +4904,7 @@ fn spec_test_321() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4916,7 +4916,7 @@ fn spec_test_322() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4933,7 +4933,7 @@ fn spec_test_323() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4953,7 +4953,7 @@ fn spec_test_324() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -4974,7 +4974,7 @@ fn spec_test_325() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5005,7 +5005,7 @@ fn spec_test_326() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5015,7 +5015,7 @@ fn spec_test_327() { let expected = r##"hilo`
foo
foo ` bar
``
``
a
b
"##;
- test_markdown_html(original, expected, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false);
}
#[test]
@@ -5101,7 +5101,7 @@ baz
let expected = r##"foo bar baz
foo
foo bar baz
foo\bar`
foo`bar
foo `` bar
*foo*
[not a link](/foo)
<a href="">`
<https://foo.bar.baz>`
```foo``
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5234,7 +5234,7 @@ fn spec_test_348() { let expected = r##"`foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5244,7 +5244,7 @@ fn spec_test_349() { let expected = r##"`foobar
foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5264,7 +5264,7 @@ fn spec_test_351() { let expected = r##"a * foo bar*
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5274,7 +5274,7 @@ fn spec_test_352() { let expected = r##"a*"foo"*
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5284,7 +5284,7 @@ fn spec_test_353() { let expected = r##"* a *
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5300,7 +5300,7 @@ fn spec_test_354() {*€*charlie.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5310,7 +5310,7 @@ fn spec_test_355() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5320,7 +5320,7 @@ fn spec_test_356() { let expected = r##"5678
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5330,7 +5330,7 @@ fn spec_test_357() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5340,7 +5340,7 @@ fn spec_test_358() { let expected = r##"_ foo bar_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5350,7 +5350,7 @@ fn spec_test_359() { let expected = r##"a_"foo"_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5360,7 +5360,7 @@ fn spec_test_360() { let expected = r##"foo_bar_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5370,7 +5370,7 @@ fn spec_test_361() { let expected = r##"5_6_78
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5380,7 +5380,7 @@ fn spec_test_362() { let expected = r##"пристаням_стремятся_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5390,7 +5390,7 @@ fn spec_test_363() { let expected = r##"aa_"bb"_cc
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5400,7 +5400,7 @@ fn spec_test_364() { let expected = r##"foo-(bar)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5410,7 +5410,7 @@ fn spec_test_365() { let expected = r##"_foo*
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5420,7 +5420,7 @@ fn spec_test_366() { let expected = r##"*foo bar *
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5432,7 +5432,7 @@ fn spec_test_367() { * "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5442,7 +5442,7 @@ fn spec_test_368() { let expected = r##"*(*foo)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5452,7 +5452,7 @@ fn spec_test_369() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5462,7 +5462,7 @@ fn spec_test_370() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5472,7 +5472,7 @@ fn spec_test_371() { let expected = r##"_foo bar _
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5482,7 +5482,7 @@ fn spec_test_372() { let expected = r##"_(_foo)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5492,7 +5492,7 @@ fn spec_test_373() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5502,7 +5502,7 @@ fn spec_test_374() { let expected = r##"_foo_bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5512,7 +5512,7 @@ fn spec_test_375() { let expected = r##"_пристаням_стремятся
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5522,7 +5522,7 @@ fn spec_test_376() { let expected = r##"foo_bar_baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5532,7 +5532,7 @@ fn spec_test_377() { let expected = r##"(bar).
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5542,7 +5542,7 @@ fn spec_test_378() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5552,7 +5552,7 @@ fn spec_test_379() { let expected = r##"** foo bar**
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5562,7 +5562,7 @@ fn spec_test_380() { let expected = r##"a**"foo"**
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5572,7 +5572,7 @@ fn spec_test_381() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5582,7 +5582,7 @@ fn spec_test_382() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5592,7 +5592,7 @@ fn spec_test_383() { let expected = r##"__ foo bar__
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5604,7 +5604,7 @@ foo bar__ foo bar__ "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5614,7 +5614,7 @@ fn spec_test_385() { let expected = r##"a__"foo"__
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5624,7 +5624,7 @@ fn spec_test_386() { let expected = r##"foo__bar__
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5634,7 +5634,7 @@ fn spec_test_387() { let expected = r##"5__6__78
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5644,7 +5644,7 @@ fn spec_test_388() { let expected = r##"пристаням__стремятся__
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5654,7 +5654,7 @@ fn spec_test_389() { let expected = r##"foo, bar, baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5664,7 +5664,7 @@ fn spec_test_390() { let expected = r##"foo-(bar)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5674,7 +5674,7 @@ fn spec_test_391() { let expected = r##"**foo bar **
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5684,7 +5684,7 @@ fn spec_test_392() { let expected = r##"**(**foo)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5694,7 +5694,7 @@ fn spec_test_393() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5706,7 +5706,7 @@ fn spec_test_394() { Asclepias physocarpa) "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5716,7 +5716,7 @@ fn spec_test_395() { let expected = r##"foo "bar" foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5726,7 +5726,7 @@ fn spec_test_396() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5736,7 +5736,7 @@ fn spec_test_397() { let expected = r##"__foo bar __
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5746,7 +5746,7 @@ fn spec_test_398() { let expected = r##"__(__foo)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5756,7 +5756,7 @@ fn spec_test_399() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5766,7 +5766,7 @@ fn spec_test_400() { let expected = r##"__foo__bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5776,7 +5776,7 @@ fn spec_test_401() { let expected = r##"__пристаням__стремятся
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5786,7 +5786,7 @@ fn spec_test_402() { let expected = r##"foo__bar__baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5796,7 +5796,7 @@ fn spec_test_403() { let expected = r##"(bar).
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5806,7 +5806,7 @@ fn spec_test_404() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5818,7 +5818,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5828,7 +5828,7 @@ fn spec_test_406() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5838,7 +5838,7 @@ fn spec_test_407() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5848,7 +5848,7 @@ fn spec_test_408() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5858,7 +5858,7 @@ fn spec_test_409() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5868,7 +5868,7 @@ fn spec_test_410() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5878,7 +5878,7 @@ fn spec_test_411() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5888,7 +5888,7 @@ fn spec_test_412() { let expected = r##"foo**bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5898,7 +5898,7 @@ fn spec_test_413() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5908,7 +5908,7 @@ fn spec_test_414() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5918,7 +5918,7 @@ fn spec_test_415() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5928,7 +5928,7 @@ fn spec_test_416() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5938,7 +5938,7 @@ fn spec_test_417() { let expected = r##"foobar***baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5948,7 +5948,7 @@ fn spec_test_418() { let expected = r##"foo bar baz bim bop
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5958,7 +5958,7 @@ fn spec_test_419() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5968,7 +5968,7 @@ fn spec_test_420() { let expected = r##"** is not an empty emphasis
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5978,7 +5978,7 @@ fn spec_test_421() { let expected = r##"**** is not an empty strong emphasis
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -5988,7 +5988,7 @@ fn spec_test_422() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6000,7 +6000,7 @@ bar** bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6010,7 +6010,7 @@ fn spec_test_424() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6020,7 +6020,7 @@ fn spec_test_425() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6030,7 +6030,7 @@ fn spec_test_426() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6040,7 +6040,7 @@ fn spec_test_427() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6050,7 +6050,7 @@ fn spec_test_428() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6060,7 +6060,7 @@ fn spec_test_429() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6070,7 +6070,7 @@ fn spec_test_430() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6080,7 +6080,7 @@ fn spec_test_431() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6092,7 +6092,7 @@ bim* bop** bim bop "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6102,7 +6102,7 @@ fn spec_test_433() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6112,7 +6112,7 @@ fn spec_test_434() { let expected = r##"__ is not an empty emphasis
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6122,7 +6122,7 @@ fn spec_test_435() { let expected = r##"____ is not an empty strong emphasis
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6132,7 +6132,7 @@ fn spec_test_436() { let expected = r##"foo ***
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6142,7 +6142,7 @@ fn spec_test_437() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6152,7 +6152,7 @@ fn spec_test_438() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6162,7 +6162,7 @@ fn spec_test_439() { let expected = r##"foo *****
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6172,7 +6172,7 @@ fn spec_test_440() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6182,7 +6182,7 @@ fn spec_test_441() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6192,7 +6192,7 @@ fn spec_test_442() { let expected = r##"*foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6202,7 +6202,7 @@ fn spec_test_443() { let expected = r##"foo*
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6212,7 +6212,7 @@ fn spec_test_444() { let expected = r##"*foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6222,7 +6222,7 @@ fn spec_test_445() { let expected = r##"***foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6232,7 +6232,7 @@ fn spec_test_446() { let expected = r##"foo*
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6242,7 +6242,7 @@ fn spec_test_447() { let expected = r##"foo***
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6252,7 +6252,7 @@ fn spec_test_448() { let expected = r##"foo ___
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6262,7 +6262,7 @@ fn spec_test_449() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6272,7 +6272,7 @@ fn spec_test_450() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6282,7 +6282,7 @@ fn spec_test_451() { let expected = r##"foo _____
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6292,7 +6292,7 @@ fn spec_test_452() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6302,7 +6302,7 @@ fn spec_test_453() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6312,7 +6312,7 @@ fn spec_test_454() { let expected = r##"_foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6322,7 +6322,7 @@ fn spec_test_455() { let expected = r##"foo_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6332,7 +6332,7 @@ fn spec_test_456() { let expected = r##"_foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6342,7 +6342,7 @@ fn spec_test_457() { let expected = r##"___foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6352,7 +6352,7 @@ fn spec_test_458() { let expected = r##"foo_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6362,7 +6362,7 @@ fn spec_test_459() { let expected = r##"foo___
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6372,7 +6372,7 @@ fn spec_test_460() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6382,7 +6382,7 @@ fn spec_test_461() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6392,7 +6392,7 @@ fn spec_test_462() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6402,7 +6402,7 @@ fn spec_test_463() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6412,7 +6412,7 @@ fn spec_test_464() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6422,7 +6422,7 @@ fn spec_test_465() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6432,7 +6432,7 @@ fn spec_test_466() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6442,7 +6442,7 @@ fn spec_test_467() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6452,7 +6452,7 @@ fn spec_test_468() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6462,7 +6462,7 @@ fn spec_test_469() { let expected = r##"foo _bar baz_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6472,7 +6472,7 @@ fn spec_test_470() { let expected = r##"foo bar *baz bim bam
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6482,7 +6482,7 @@ fn spec_test_471() { let expected = r##"**foo bar baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6492,7 +6492,7 @@ fn spec_test_472() { let expected = r##"*foo bar baz
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6502,7 +6502,7 @@ fn spec_test_473() { let expected = r##"*bar*
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6512,7 +6512,7 @@ fn spec_test_474() { let expected = r##"_foo bar_
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6522,7 +6522,7 @@ fn spec_test_475() { let expected = r##"*
a *
a _
[link](/my uri)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6662,7 +6662,7 @@ fn spec_test_489() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6674,7 +6674,7 @@ bar) bar) "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6686,7 +6686,7 @@ bar>) bar>) "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6696,7 +6696,7 @@ fn spec_test_492() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6706,7 +6706,7 @@ fn spec_test_493() { let expected = r##"[link](<foo>)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6720,7 +6720,7 @@ fn spec_test_494() { [a](c) "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6730,7 +6730,7 @@ fn spec_test_495() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6740,7 +6740,7 @@ fn spec_test_496() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6750,7 +6750,7 @@ fn spec_test_497() { let expected = r##"[link](foo(and(bar))
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6760,7 +6760,7 @@ fn spec_test_498() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6770,7 +6770,7 @@ fn spec_test_499() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6780,7 +6780,7 @@ fn spec_test_500() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6796,7 +6796,7 @@ fn spec_test_501() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6806,7 +6806,7 @@ fn spec_test_502() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6816,7 +6816,7 @@ fn spec_test_503() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6826,7 +6826,7 @@ fn spec_test_504() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6840,7 +6840,7 @@ fn spec_test_505() { link "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6850,7 +6850,7 @@ fn spec_test_506() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6860,7 +6860,7 @@ fn spec_test_507() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6870,7 +6870,7 @@ fn spec_test_508() { let expected = r##"[link](/url "title "and" title")
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6880,7 +6880,7 @@ fn spec_test_509() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6891,7 +6891,7 @@ fn spec_test_510() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6901,7 +6901,7 @@ fn spec_test_511() { let expected = r##"[link] (/uri)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6911,7 +6911,7 @@ fn spec_test_512() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6921,7 +6921,7 @@ fn spec_test_513() { let expected = r##"[link] bar](/uri)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6931,7 +6931,7 @@ fn spec_test_514() { let expected = r##"[link bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6941,7 +6941,7 @@ fn spec_test_515() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6951,7 +6951,7 @@ fn spec_test_516() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6961,7 +6961,7 @@ fn spec_test_517() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6971,7 +6971,7 @@ fn spec_test_518() { let expected = r##"[foo bar](/uri)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6981,7 +6981,7 @@ fn spec_test_519() { let expected = r##"[foo [bar baz](/uri)](/uri)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -6991,7 +6991,7 @@ fn spec_test_520() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7011,7 +7011,7 @@ fn spec_test_522() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7021,7 +7021,7 @@ fn spec_test_523() { let expected = r##"foo [bar baz]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7031,7 +7031,7 @@ fn spec_test_524() { let expected = r##"[foo
[foo](/uri)
[foohttps://example.com/?search=](uri)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7063,7 +7063,7 @@ fn spec_test_527() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7075,7 +7075,7 @@ fn spec_test_528() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7087,7 +7087,7 @@ fn spec_test_529() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7099,7 +7099,7 @@ fn spec_test_530() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7111,7 +7111,7 @@ fn spec_test_531() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7123,7 +7123,7 @@ fn spec_test_532() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7135,7 +7135,7 @@ fn spec_test_533() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7147,7 +7147,7 @@ fn spec_test_534() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7159,7 +7159,7 @@ fn spec_test_535() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7171,7 +7171,7 @@ fn spec_test_536() { let expected = r##"[foo
[foo][ref]
[foohttps://example.com/?search=][ref]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7207,7 +7207,7 @@ fn spec_test_539() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7219,7 +7219,7 @@ fn spec_test_540() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7232,7 +7232,7 @@ fn spec_test_541() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7244,7 +7244,7 @@ fn spec_test_542() { let expected = r##"[foo] bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7258,7 +7258,7 @@ fn spec_test_543() { bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7272,7 +7272,7 @@ fn spec_test_544() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7284,7 +7284,7 @@ fn spec_test_545() { let expected = r##"[bar][foo!]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7297,7 +7297,7 @@ fn spec_test_546() {[ref[]: /uri
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7310,7 +7310,7 @@ fn spec_test_547() {[ref[bar]]: /uri
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7323,7 +7323,7 @@ fn spec_test_548() {[[[foo]]]: /url
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7335,7 +7335,7 @@ fn spec_test_549() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7347,7 +7347,7 @@ fn spec_test_550() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7360,7 +7360,7 @@ fn spec_test_551() {[]: /uri
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7377,7 +7377,7 @@ fn spec_test_552() { ]: /uri "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7389,7 +7389,7 @@ fn spec_test_553() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7401,7 +7401,7 @@ fn spec_test_554() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7413,7 +7413,7 @@ fn spec_test_555() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7427,7 +7427,7 @@ fn spec_test_556() { [] "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7439,7 +7439,7 @@ fn spec_test_557() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7451,7 +7451,7 @@ fn spec_test_558() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7463,7 +7463,7 @@ fn spec_test_559() { let expected = r##"[foo bar]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7475,7 +7475,7 @@ fn spec_test_560() { let expected = r##"[[bar foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7487,7 +7487,7 @@ fn spec_test_561() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7499,7 +7499,7 @@ fn spec_test_562() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7511,7 +7511,7 @@ fn spec_test_563() { let expected = r##"[foo]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7523,7 +7523,7 @@ fn spec_test_564() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7536,7 +7536,7 @@ fn spec_test_565() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7548,7 +7548,7 @@ fn spec_test_566() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7560,7 +7560,7 @@ fn spec_test_567() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7572,7 +7572,7 @@ fn spec_test_568() { let expected = r##"foo(not a link)
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7584,7 +7584,7 @@ fn spec_test_569() { let expected = r##"[foo]bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7597,7 +7597,7 @@ fn spec_test_570() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7610,7 +7610,7 @@ fn spec_test_571() { let expected = r##"[foo]bar
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7620,7 +7620,7 @@ fn spec_test_572() { let expected = r##"



My 
[[foo]]: /url "title"
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7839,7 +7839,7 @@ fn spec_test_591() { let expected = r##"![foo]
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7863,7 +7863,7 @@ fn spec_test_593() { let expected = r##"!foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7873,7 +7873,7 @@ fn spec_test_594() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7883,7 +7883,7 @@ fn spec_test_595() { let expected = r##"https://foo.bar.baz/test?q=hello&id=22&boolean
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7893,7 +7893,7 @@ fn spec_test_596() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7903,7 +7903,7 @@ fn spec_test_597() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7913,7 +7913,7 @@ fn spec_test_598() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7923,7 +7923,7 @@ fn spec_test_599() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7933,7 +7933,7 @@ fn spec_test_600() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7943,7 +7943,7 @@ fn spec_test_601() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7953,7 +7953,7 @@ fn spec_test_602() { let expected = r##"<https://foo.bar/baz bim>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7963,7 +7963,7 @@ fn spec_test_603() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7973,7 +7973,7 @@ fn spec_test_604() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7983,7 +7983,7 @@ fn spec_test_605() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -7993,7 +7993,7 @@ fn spec_test_606() { let expected = r##"<foo+@bar.example.com>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8003,7 +8003,7 @@ fn spec_test_607() { let expected = r##"<>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8013,7 +8013,7 @@ fn spec_test_608() { let expected = r##"< https://foo.bar >
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8023,7 +8023,7 @@ fn spec_test_609() { let expected = r##"<m:abc>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8033,7 +8033,7 @@ fn spec_test_610() { let expected = r##"<foo.bar.baz>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8043,7 +8043,7 @@ fn spec_test_611() { let expected = r##"https://example.com
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8053,7 +8053,7 @@ fn spec_test_612() { let expected = r##"foo@bar.example.com
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8063,7 +8063,7 @@ fn spec_test_613() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8073,7 +8073,7 @@ fn spec_test_614() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8085,7 +8085,7 @@ data="foo" > data="foo" > "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8097,7 +8097,7 @@ _boolean zoop:33=zoop:33 /> _boolean zoop:33=zoop:33 /> "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8107,7 +8107,7 @@ fn spec_test_617() { let expected = r##"Foo
<33> <__>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8127,7 +8127,7 @@ fn spec_test_619() { let expected = r##"<a h*#ref="hi">
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8137,7 +8137,7 @@ fn spec_test_620() { let expected = r##"<a href="hi'> <a href=hi'>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8153,7 +8153,7 @@ foo><bar/ > bim!bop /> "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8163,7 +8163,7 @@ fn spec_test_622() { let expected = r##"<a href='bar'title=title>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8173,7 +8173,7 @@ fn spec_test_623() { let expected = r##"</a href="foo">
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8195,7 +8195,7 @@ comment - with hyphens --> comment - with hyphens --> "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8208,7 +8208,7 @@ foo foo -->foo foo -->
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8218,7 +8218,7 @@ fn spec_test_627() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8228,7 +8228,7 @@ fn spec_test_628() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8238,7 +8238,7 @@ fn spec_test_629() { let expected = r##"foo &<]]>
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8248,7 +8248,7 @@ fn spec_test_630() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8258,7 +8258,7 @@ fn spec_test_631() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8268,7 +8268,7 @@ fn spec_test_632() { let expected = r##"<a href=""">
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8280,7 +8280,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8292,7 +8292,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8304,7 +8304,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8316,7 +8316,7 @@ fn spec_test_636() { bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8328,7 +8328,7 @@ fn spec_test_637() { bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8340,7 +8340,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8352,7 +8352,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8363,7 +8363,7 @@ span` let expected = r##"code span
code\ span
foo\
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8418,7 +8418,7 @@ fn spec_test_645() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8428,7 +8428,7 @@ fn spec_test_646() { let expected = r##"hello $.;'there
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8482,7 +8482,7 @@ fn spec_test_651() { let expected = r##"Foo χρῆν
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -8492,5 +8492,5 @@ fn spec_test_652() { let expected = r##"Multiple spaces
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/strikethrough.rs b/pulldown-cmark/tests/suite/strikethrough.rs index 95cb1e27..621ed179 100644 --- a/pulldown-cmark/tests/suite/strikethrough.rs +++ b/pulldown-cmark/tests/suite/strikethrough.rs @@ -10,7 +10,7 @@ fn strikethrough_test_1() { let expected = r##"This is stricken out
This is ~~stricken
Thisisstricken
Thisisstricken
Here I strike out an exclamation point!.
This is stricken out
This is ~stricken
This~is~nothing
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); +} + +#[test] +fn strikethrough_test_9() { + let original = r##"~This~is~nothing~ +"##; + let expected = r##"This~is~nothing
Here I fail to strike out an exclamation point~!~.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -80,7 +110,7 @@ fn strikethrough_test_11() { let expected = r##"Here I fail to strike out a tilde ~~~.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -90,7 +120,7 @@ fn strikethrough_test_12() { let expected = r##"Here I fail to match up ~~tildes~.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -100,7 +130,7 @@ fn strikethrough_test_13() { let expected = r##"Here I fail to match up ~tildes~~.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -110,5 +140,15 @@ fn strikethrough_test_14() { let expected = r##"This ~is stricken.
This ~~is stricken.
This is super This is sub
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, true); } #[test] -fn super_sub_test_6() { +fn super_sub_test_2() { let original = r##"~This is stricken out~ "##; let expected = r##"This is stricken out
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, true); } #[test] -fn super_sub_test_7() { +fn super_sub_test_3() { let original = r##"~This is \~stricken~ "##; let expected = r##"This is ~stricken
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, true); } #[test] -fn super_sub_test_9() { +fn super_sub_test_4() { let original = r##"~This~is~nothing~ "##; let expected = r##"This~is~nothing
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, true); } #[test] -fn super_sub_test_15() { +fn super_sub_test_5() { let original = r##"~This ~~is stricken.~ "##; let expected = r##"This ~~is stricken.
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, true); } #[test] -fn super_sub_test_16() { +fn super_sub_test_6() { let original = r##"~This ~~is stricken~ but this is not~~ "##; let expected = r##"This ~~is stricken but this is not~~
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, true); } diff --git a/pulldown-cmark/tests/suite/table.rs b/pulldown-cmark/tests/suite/table.rs index 6cc378ad..97d7b06d 100644 --- a/pulldown-cmark/tests/suite/table.rs +++ b/pulldown-cmark/tests/suite/table.rs @@ -11,7 +11,7 @@ fn table_test_1() { let expected = r##"b
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -316,7 +316,7 @@ fn table_test_14() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -332,7 +332,7 @@ fn table_test_15() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -348,7 +348,7 @@ fn table_test_16() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -398,7 +398,7 @@ fn table_test_17() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -436,7 +436,7 @@ fn table_test_18() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -466,7 +466,7 @@ fn table_test_19() { | Not | Enough | "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -480,7 +480,7 @@ fn table_test_20() {|
"##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -494,7 +494,7 @@ fn table_test_21() { | Table | Body | "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -516,7 +516,7 @@ fn table_test_22() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -542,7 +542,7 @@ fn table_test_23() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -564,7 +564,7 @@ A: Interrupting —? "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -578,7 +578,7 @@ fn table_test_25() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -592,7 +592,7 @@ fn table_test_26() { "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -610,7 +610,7 @@ moo | moo "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } #[test] @@ -628,5 +628,5 @@ moo | moo "##; - test_markdown_html(original, expected, false, false, false); + test_markdown_html(original, expected, false, false, false, false); } From 68197a394f1900a3362f6ec72ce2fe10ef35feb8 Mon Sep 17 00:00:00 2001 From: jim-taylor-businessThis is a WikiLink.
+```````````````````````````````` + +Wikilinks take precedence over reference links: + +```````````````````````````````` example_wikilinks +This is [[Ambiguous]]. + +[Ambiguous]: https://example.com/ +. +This is Ambiguous.
+```````````````````````````````` + +They also take precedence over inline links: + +```````````````````````````````` example_wikilinks +This is [also [[Ambiguous]]](https://example.com/). +. +This is [also Ambiguous](https://example.com/).
+```````````````````````````````` + +Wikilinks can have different display text, called piping: + +```````````````````````````````` example_wikilinks +This is [[WikiLink|a pothole]]. +. +This is a pothole.
+```````````````````````````````` + +Using this syntax, it is possible to show more Markdown in the text: + +```````````````````````````````` example_wikilinks +This is [[WikiLink|a **strong** pothole]]. +. +This is a strong pothole.
+```````````````````````````````` + +Or images: + +```````````````````````````````` example_wikilinks +This is a cute dog, linked to the page "/WikiLink/" + +[[WikiLink|]] +. +This is a cute dog, linked to the page "/WikiLink/"
+```````````````````````````````` + +The content of a wikilink *becomes* the link, modified with some basic rules: +* The `/`` character is appended to the front and back of the link. +* Any whitespace characters are replaced with `_`. + +```````````````````````````````` example_wikilinks +The url of [[This Link]] becomes "/This_Link/" +. +The url of This Link becomes "/This_Link/"
+```````````````````````````````` diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs index 2d4b4946..0e38bc32 100644 --- a/pulldown-cmark/src/firstpass.rs +++ b/pulldown-cmark/src/firstpass.rs @@ -1071,23 +1071,29 @@ impl<'a, 'b> FirstPass<'a, 'b> { } } b'[' => { + let double = ix > 0 + && bytes[ix - 1] == b'[' + && self.options.contains(Options::ENABLE_WIKILINKS); self.tree.append_text(begin_text, ix, backslash_escaped); backslash_escaped = false; self.tree.append(Item { start: ix, end: ix + 1, - body: ItemBody::MaybeLinkOpen, + body: ItemBody::MaybeLinkOpen(double), }); begin_text = ix + 1; LoopInstruction::ContinueAndSkip(0) } b']' => { + let double = ix + 1 < bytes_len + && bytes[ix + 1] == b']' + && self.options.contains(Options::ENABLE_WIKILINKS); self.tree.append_text(begin_text, ix, backslash_escaped); backslash_escaped = false; self.tree.append(Item { start: ix, end: ix + 1, - body: ItemBody::MaybeLinkClose(true), + body: ItemBody::MaybeLinkClose(double, true), }); begin_text = ix + 1; LoopInstruction::ContinueAndSkip(0) diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs index 87757b4c..94d61394 100644 --- a/pulldown-cmark/src/lib.rs +++ b/pulldown-cmark/src/lib.rs @@ -434,6 +434,8 @@ pub enum LinkType { Autolink, /// Email address in autolink like `"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -21,7 +21,7 @@ fn blockquotes_tags_test_2() { let expected = r##"This is a normal blockquote without tag.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -32,7 +32,7 @@ fn blockquotes_tags_test_3() { let expected = r##"Note blockquote
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -43,7 +43,7 @@ fn blockquotes_tags_test_4() { let expected = r##"Tip blockquote
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -54,7 +54,7 @@ fn blockquotes_tags_test_5() { let expected = r##"Important blockquote
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -65,7 +65,7 @@ fn blockquotes_tags_test_6() { let expected = r##"Warning blockquote
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -75,7 +75,7 @@ fn blockquotes_tags_test_7() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -88,7 +88,7 @@ fn blockquotes_tags_test_8() { Line 2. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -103,7 +103,7 @@ fn blockquotes_tags_test_9() { Line 2. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -116,7 +116,7 @@ fn blockquotes_tags_test_10() { let expected = r##"Caution blockquote
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -131,7 +131,7 @@ fn blockquotes_tags_test_11() { let expected = r##"Line 1.
Line 2.
Line 1.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -144,7 +144,7 @@ fn blockquotes_tags_test_12() { Line 2. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -159,7 +159,7 @@ fn blockquotes_tags_test_13() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -174,7 +174,7 @@ fn blockquotes_tags_test_14() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -189,7 +189,7 @@ fn blockquotes_tags_test_15() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -216,7 +216,7 @@ sink ships "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -237,7 +237,7 @@ fn blockquotes_tags_test_17() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -251,5 +251,5 @@ This should be a normal block quote. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/definition_lists.rs b/pulldown-cmark/tests/suite/definition_lists.rs index 37ff4f82..b14855d9 100644 --- a/pulldown-cmark/tests/suite/definition_lists.rs +++ b/pulldown-cmark/tests/suite/definition_lists.rs @@ -19,7 +19,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -44,7 +44,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -61,7 +61,7 @@ fn definition_lists_test_3() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -80,7 +80,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -105,7 +105,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -144,7 +144,7 @@ crisp, pleasant to taste "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -166,7 +166,7 @@ fn definition_lists_test_7() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -189,7 +189,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -223,7 +223,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -261,7 +261,7 @@ fruit "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -282,7 +282,7 @@ c "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -304,7 +304,7 @@ bim "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -326,7 +326,7 @@ BlozeLine 2.
Bloze
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -341,7 +341,7 @@ BlozeBloze
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -358,7 +358,7 @@ BlozeBloze
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -401,7 +401,7 @@ bar : baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -447,7 +447,7 @@ fn definition_lists_test_17() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -461,7 +461,7 @@ fn definition_lists_test_18() {: first
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -482,7 +482,7 @@ Test|Table: fourth
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -495,7 +495,7 @@ fn definition_lists_test_20() {: first
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -515,7 +515,7 @@ My section: fourth
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -527,7 +527,7 @@ fn definition_lists_test_22() {: first
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -546,7 +546,7 @@ fn definition_lists_test_23() {: fourth
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -565,7 +565,7 @@ third "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -588,7 +588,7 @@ first : fourth "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -612,7 +612,7 @@ third "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -647,5 +647,5 @@ level three "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/footnotes.rs b/pulldown-cmark/tests/suite/footnotes.rs index c9a59f4a..dd9b15ee 100644 --- a/pulldown-cmark/tests/suite/footnotes.rs +++ b/pulldown-cmark/tests/suite/footnotes.rs @@ -15,7 +15,7 @@ fn footnotes_test_1() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -34,7 +34,7 @@ Yes it goes on and on my friends. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -77,7 +77,7 @@ fn footnotes_test_4() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -114,7 +114,7 @@ fn footnotes_test_5() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -138,7 +138,7 @@ d "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -161,7 +161,7 @@ I had largely given over my inquiries into what Professor Angell called the "Cth "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -180,7 +180,7 @@ If a woodchuck could chuck wood.As such, we can guarantee that the non-childish forms of entertainment are probably more entertaining to adults, since, having had a whole childhood doing the childish ones, the non-childish ones are merely the ones that haven't gotten boring yet.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -277,7 +277,7 @@ fn footnotes_test_11() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -293,7 +293,7 @@ fn footnotes_test_12() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -312,7 +312,7 @@ fn footnotes_test_13() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -336,7 +336,7 @@ An unordered list before the footnotes: "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -393,7 +393,7 @@ Songs that simply loop are a popular way to annoy people. [^examples3] "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -431,7 +431,7 @@ test suite into pulldown-cmark should be fine.[otherlink1]: https://github.com/github/cmark-gfm/blob/1e230827a584ebc9938c3eadc5059c55ef3c9abf/test/extensions.txt#L702
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -456,7 +456,7 @@ fn main() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -470,7 +470,7 @@ fn footnotes_test_18() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -494,7 +494,7 @@ fn footnotes_test_19() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -556,7 +556,7 @@ Second 2 test "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -568,7 +568,7 @@ fn footnotes_test_21() { let expected = r##"Test ^ link
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -608,7 +608,7 @@ second fourth] "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -623,7 +623,7 @@ fn footnotes_test_23() {Hi Hello, there world!
new paragraph~~.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -33,5 +33,5 @@ fn gfm_strikethrough_test_3() { let expected = r##"This will ~~~not~~~ strike.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/gfm_table.rs b/pulldown-cmark/tests/suite/gfm_table.rs index f2c7fc69..3e5a1e14 100644 --- a/pulldown-cmark/tests/suite/gfm_table.rs +++ b/pulldown-cmark/tests/suite/gfm_table.rs @@ -25,7 +25,7 @@ fn gfm_table_test_1() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -50,7 +50,7 @@ bar | baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -77,7 +77,7 @@ fn gfm_table_test_3() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -106,7 +106,7 @@ fn gfm_table_test_4() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -139,7 +139,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -153,7 +153,7 @@ fn gfm_table_test_6() { | bar | "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -183,7 +183,7 @@ fn gfm_table_test_7() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -202,7 +202,7 @@ fn gfm_table_test_8() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -229,5 +229,5 @@ fn gfm_table_test_9() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/gfm_tasklist.rs b/pulldown-cmark/tests/suite/gfm_tasklist.rs index ced6086b..232d8737 100644 --- a/pulldown-cmark/tests/suite/gfm_tasklist.rs +++ b/pulldown-cmark/tests/suite/gfm_tasklist.rs @@ -16,7 +16,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -41,5 +41,5 @@ bim "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/heading_attrs.rs b/pulldown-cmark/tests/suite/heading_attrs.rs index ed9cf2d7..3b933da5 100644 --- a/pulldown-cmark/tests/suite/heading_attrs.rs +++ b/pulldown-cmark/tests/suite/heading_attrs.rs @@ -20,7 +20,7 @@ multiple! {.myclass1 myattr #myh3 otherattr=value .myclass2}nextline
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -99,7 +99,7 @@ nextline {.class}](https://example.com/) {#myid3}
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -114,7 +114,7 @@ cont "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -133,7 +133,7 @@ fn heading_attrs_test_8() { } "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -145,7 +145,7 @@ fn heading_attrs_test_9() {#{}
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -545,7 +545,7 @@ fn heading_attrs_test_39() {\ may follow just after the first $: \{1, 2, 3\}
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -41,7 +41,7 @@ $$$$"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -57,7 +57,7 @@ $$x$$$$$$y$$
xy$$
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -82,7 +82,7 @@ $α$α
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -95,7 +95,7 @@ Dollar at end of line$Dollar at end of line$
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -112,7 +112,7 @@ $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -126,7 +126,7 @@ hard break either "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -139,7 +139,7 @@ $$y = \$ x$$y = \$ x
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -152,7 +152,7 @@ $$ $ $$$$ $ $$
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -162,7 +162,7 @@ fn math_test_11() { let expected = r##"alpha$betagamma$$delta
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -190,7 +190,7 @@ they should not allow inlines to do that $$2 + * "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -200,7 +200,7 @@ fn math_test_13() { let expected = r##"these are math texts: fooy=xbar and y=xbar and fooy=x bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -216,7 +216,7 @@ braces: ($x=y$) [$x=y$] {$x=y$}braces: (x=y) [x=y] {x=y}
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -226,7 +226,7 @@ fn math_test_15() { let expected = r##"x=y
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -245,7 +245,7 @@ $$a$$$$b$$ab
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -264,7 +264,7 @@ $$ Display `first $$ then` codeCode $$ first then $$ display
Math environment contains y: $x {$ $ } y
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -412,7 +412,7 @@ and expected to be as short as possible:\text{first $$ second}$$
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -434,7 +434,7 @@ $}$] $$$}$] $$
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -444,7 +444,7 @@ fn math_test_25() { let expected = r##"x `y`
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -486,7 +486,7 @@ b "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -500,7 +500,7 @@ fn math_test_27() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -523,7 +523,7 @@ A = 5 "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -536,7 +536,7 @@ $$aa<b "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -551,7 +551,7 @@ fn math_test_30() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -563,7 +563,7 @@ fn math_test_31() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -579,7 +579,7 @@ fn math_test_32() {1x
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -595,7 +595,7 @@ _$a$ equals $b$_a equals b
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -618,7 +618,7 @@ a "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -628,7 +628,7 @@ fn math_test_35() { let expected = r##"\{a\,b\}
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -644,7 +644,7 @@ ${a}_b c_{d}${a}_b c_{d}
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -656,7 +656,7 @@ $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -666,7 +666,7 @@ fn math_test_38() { let expected = r##"x = \$
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -676,7 +676,7 @@ fn math_test_39() { let expected = r##"Equation \Omega(69) in italic text
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -700,7 +700,7 @@ fn math_test_40() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -716,7 +716,7 @@ fn math_test_41() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -732,7 +732,7 @@ fn math_test_42() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -770,7 +770,7 @@ fn math_test_43() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -790,7 +790,7 @@ improperly }{ nested But this still isn't, because the braces are still counted: $}{$ "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -819,7 +819,7 @@ another improperly nested example }}}}}}}}}}}}}}}}}}}}}}}}}}}}}} "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -853,7 +853,7 @@ fn math_test_46() { {}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{ 255 brace pairs and one unclosed brace "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -915,5 +915,5 @@ fn math_test_47() { }}}}}}}}}}}}}}}{$ 255 close braces and one open brace "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/metadata_blocks.rs b/pulldown-cmark/tests/suite/metadata_blocks.rs index 0020ebba..f85d6ded 100644 --- a/pulldown-cmark/tests/suite/metadata_blocks.rs +++ b/pulldown-cmark/tests/suite/metadata_blocks.rs @@ -12,7 +12,7 @@ another_field: 0 "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -26,7 +26,7 @@ another_field: 0 another_field: 0 "##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -38,7 +38,7 @@ fn metadata_blocks_test_3() {My paragraph here.
"##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -105,7 +105,7 @@ another_field: 0 another_field: 0 "##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -126,7 +126,7 @@ another_field: 0 ---a "##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -138,7 +138,7 @@ another_field: 0 "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -150,7 +150,7 @@ another_field: 0 "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -165,7 +165,7 @@ Things "##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -177,5 +177,5 @@ fn metadata_blocks_test_12() { "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } diff --git a/pulldown-cmark/tests/suite/mod.rs b/pulldown-cmark/tests/suite/mod.rs index 79c630c8..a5efb382 100644 --- a/pulldown-cmark/tests/suite/mod.rs +++ b/pulldown-cmark/tests/suite/mod.rs @@ -19,3 +19,4 @@ mod spec; mod strikethrough; mod super_sub; mod table; +mod wikilinks; diff --git a/pulldown-cmark/tests/suite/old_footnotes.rs b/pulldown-cmark/tests/suite/old_footnotes.rs index a105a32b..cf767130 100644 --- a/pulldown-cmark/tests/suite/old_footnotes.rs +++ b/pulldown-cmark/tests/suite/old_footnotes.rs @@ -15,7 +15,7 @@ fn old_footnotes_test_1() { "##; - test_markdown_html(original, expected, false, false, true, false); + test_markdown_html(original, expected, false, false, true, false, false); } #[test] @@ -34,7 +34,7 @@ Yes it goes on and on my friends. "##; - test_markdown_html(original, expected, false, false, true, false); + test_markdown_html(original, expected, false, false, true, false, false); } #[test] @@ -71,7 +71,7 @@ I had largely given over my inquiries into what Professor Angell called the "CthI had largely given over my inquiries into what Professor Angell called the "Cthulhu Cult", and was visiting a learned friend in Paterson, New Jersey; the curator of a local museum and a mineralogist of note. Examining one day the reserve specimens roughly set on the storage shelves in a rear room of the museum, my eye was caught by an odd picture in one of the old papers spread beneath the stones. It was the Sydney Bulletin I have mentioned, for my friend had wide affiliations in all conceivable foreign parts; and the picture was a half-tone cut of a hideous stone image almost identical with that which Legrasse had found in the swamp.
"##; - test_markdown_html(original, expected, false, false, true, false); + test_markdown_html(original, expected, false, false, true, false, false); } #[test] @@ -90,7 +90,7 @@ If a woodchuck could chuck wood.As such, we can guarantee that the non-childish forms of entertainment are probably more entertaining to adults, since, having had a whole childhood doing the childish ones, the non-childish ones are merely the ones that haven't gotten boring yet.
"##; - test_markdown_html(original, expected, false, false, true, false); + test_markdown_html(original, expected, false, false, true, false, false); } #[test] @@ -144,7 +144,7 @@ fn old_footnotes_test_7() { "##; - test_markdown_html(original, expected, false, false, true, false); + test_markdown_html(original, expected, false, false, true, false, false); } #[test] @@ -159,7 +159,7 @@ fn old_footnotes_test_8() {Common for people practicing music.
[Reference to footnotes A1, B2 and C3.
Footnote A.
Footnote B.
Footnote C.
see the many articles on QuickCheck.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -48,7 +48,7 @@ fn regression_test_3() {foo§(bar)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -89,7 +89,7 @@ fn regression_test_6() { let expected = r##"https://example.com hello
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -103,7 +103,7 @@ fn regression_test_7() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -130,7 +130,7 @@ fn regression_test_8() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -144,7 +144,7 @@ i8 let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -156,7 +156,7 @@ fn regression_test_10() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -168,7 +168,7 @@ fn regression_test_11() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -181,7 +181,7 @@ fn regression_test_12() {[a]: /url (title))
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -194,7 +194,7 @@ bb
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -205,7 +205,7 @@ foo let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -215,7 +215,7 @@ fn regression_test_15() { let expected = r##"`foo`
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -227,7 +227,7 @@ bar bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -240,7 +240,7 @@ fn regression_test_17() {1) bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -262,7 +262,7 @@ fn regression_test_18() {1)2)3)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -272,7 +272,7 @@ fn regression_test_19() { let expected = r##"[](<<>)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -282,7 +282,7 @@ fn regression_test_20() { let expected = r##"`foo``bar
\foo
YOLO
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -320,7 +320,7 @@ A | B foo | bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -334,7 +334,7 @@ foo|bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -348,7 +348,7 @@ foo|bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -358,7 +358,7 @@ fn regression_test_26() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -368,7 +368,7 @@ fn regression_test_27() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -378,7 +378,7 @@ fn regression_test_28() { let expected = r##"
some text
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -424,7 +424,7 @@ fn regression_test_31() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -439,7 +439,7 @@ x]: f
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -449,7 +449,7 @@ fn regression_test_33() { let expected = r##"[foo]:
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -464,7 +464,7 @@ fn regression_test_34() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -479,7 +479,7 @@ yolo | swagyolo | swag
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -489,7 +489,7 @@ fn regression_test_36() { let expected = r##"a
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -527,7 +527,7 @@ fn regression_test_39() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -537,7 +537,7 @@ fn regression_test_40() { let expected = r##"\|
Paragraph 2
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -560,7 +560,7 @@ fn regression_test_42() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -572,7 +572,7 @@ fn regression_test_43() { let expected = r##"| foo | bar |
|---|---|
| [a](< | url>) |
")
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -599,7 +599,7 @@ fn regression_test_45() {)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -612,7 +612,7 @@ fn regression_test_46() {")
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -622,7 +622,7 @@ fn regression_test_47() { let expected = r##"<http:// >
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -632,7 +632,7 @@ fn regression_test_48() { let expected = r##"<http://>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -651,7 +651,7 @@ fn regression_test_49() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -670,7 +670,7 @@ fn regression_test_50() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -680,7 +680,7 @@ fn regression_test_51() { let expected = r##"*hi_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -690,7 +690,7 @@ fn regression_test_52() { let expected = r##"email: john@example.com_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -704,7 +704,7 @@ bar">link "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -719,7 +719,7 @@ fn regression_test_54() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -735,7 +735,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -753,7 +753,7 @@ fn regression_test_56() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -770,7 +770,7 @@ fn regression_test_57() {[a b] [a > b]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -783,7 +783,7 @@ package`] let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -798,7 +798,7 @@ fn regression_test_59() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -811,7 +811,7 @@ fn regression_test_60() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -827,7 +827,7 @@ the size ofusize and have the same alignment.
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -851,7 +851,7 @@ An unordered list before the footnotes:
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -869,7 +869,7 @@ fn regression_test_63() {
<foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -942,7 +942,7 @@ lo"> "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -953,7 +953,7 @@ fn regression_test_67() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -975,7 +975,7 @@ a 2. a "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -991,7 +991,7 @@ fn regression_test_69() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1010,7 +1010,7 @@ barbaz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1029,7 +1029,7 @@ fn regression_test_71() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1041,7 +1041,7 @@ fn regression_test_72() { let expected = r##"[]]
foobar
foobar
emphasis strike strong strike emphasis strong
emphasis strike strong strike emphasis strong code
emphasis strike codestrike emphasis strong
emphasis strike codestrike emphasis strong code
strong strike emphasis strike emphasis strong
strong strike emphasis strike emphasis strong code
strong strike codestrike emphasis strong
strong strike codestrike emphasis strong code
b
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1353,7 +1353,7 @@ fn regression_test_89() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1367,7 +1367,7 @@ fn regression_test_90() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1379,7 +1379,7 @@ fn regression_test_91() {"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1451,7 +1451,7 @@ fn regression_test_97() { > not quote "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1463,7 +1463,7 @@ fn regression_test_98() {quote
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1475,7 +1475,7 @@ fn regression_test_99() { >not quote "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1494,7 +1494,7 @@ fn regression_test_100() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1504,7 +1504,7 @@ fn regression_test_101() { let expected = r##"quote
*R]-
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1514,7 +1514,7 @@ fn regression_test_102() { let expected = r##"foobarbaz**
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1528,7 +1528,7 @@ fn regression_test_103() { % "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1542,7 +1542,7 @@ fn regression_test_104() { % "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1552,7 +1552,7 @@ fn regression_test_105() { let expected = r##"<@1>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1566,7 +1566,7 @@ Things let expected = r##"Things
"##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -1581,7 +1581,7 @@ Things let expected = r##"Things
"##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -1595,7 +1595,7 @@ Things let expected = r##"Things
"##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -1619,7 +1619,7 @@ fn regression_test_109() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1634,7 +1634,7 @@ fn regression_test_110() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1644,7 +1644,7 @@ fn regression_test_111() { let expected = r##"j*5=
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1710,7 +1710,7 @@ Table "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1723,7 +1723,7 @@ fn regression_test_113() {[x]: (
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1745,7 +1745,7 @@ an unmatched asterisk. {{ "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1755,7 +1755,7 @@ fn regression_test_115() { let expected = r##"*a.*.a..
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1774,7 +1774,7 @@ _*xx-_-*xx--
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1803,7 +1803,7 @@ fn regression_test_117() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1832,7 +1832,7 @@ fn regression_test_118() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1845,7 +1845,7 @@ fn regression_test_119() {]: https://rust-lang.org
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1878,7 +1878,7 @@ fn regression_test_120() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1921,7 +1921,7 @@ The second hyphen should parse the same way in both samples. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1936,7 +1936,7 @@ https://rust-lang.org "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1949,7 +1949,7 @@ Second try]: https://rust-lang.orgSecond try]: https://rust-lang.org
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1972,7 +1972,7 @@ fn regression_test_124() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1984,7 +1984,7 @@ bar \bar \
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1998,7 +1998,7 @@ fn regression_test_126() {[third try]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2018,7 +2018,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2040,7 +2040,7 @@ fn regression_test_128() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2051,7 +2051,7 @@ fn regression_test_129() { let expected = r##"-
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2068,7 +2068,7 @@ foo) "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2085,7 +2085,7 @@ fn regression_test_131() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2104,7 +2104,7 @@ fn regression_test_132() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2125,7 +2125,7 @@ fn regression_test_133() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2136,7 +2136,7 @@ fn regression_test_134() { let expected = r##"- baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2154,7 +2154,7 @@ GFM footnotes can interrupt link defs if they have three spaces, but not four.GFM footnotes can interrupt link defs if they have three spaces, but not four.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2171,7 +2171,7 @@ Setext heading can interrupt link def if it has three spaces, but not four.Setext heading can interrupt link def if it has three spaces, but not four.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2191,7 +2191,7 @@ List can interrupt the paragraph at the start of a link definition if it startsList can interrupt the paragraph at the start of a link definition if it starts with three spaces, but not four.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2210,7 +2210,7 @@ second]second]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2228,7 +2228,7 @@ second] second "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2245,7 +2245,7 @@ fn regression_test_140() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2262,7 +2262,7 @@ fn regression_test_141() { ">first "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2281,7 +2281,7 @@ fn regression_test_142() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2300,7 +2300,7 @@ fn regression_test_143() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2319,7 +2319,7 @@ fn regression_test_144() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2336,7 +2336,7 @@ fn regression_test_145() { ">first "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2355,7 +2355,7 @@ fn regression_test_146() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2366,7 +2366,7 @@ fn regression_test_147() { let expected = r##"'foo'bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2382,7 +2382,7 @@ fn regression_test_148() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2398,7 +2398,7 @@ a]: https://example.com let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2419,7 +2419,7 @@ fn regression_test_150() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2441,7 +2441,7 @@ baz* "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2463,7 +2463,7 @@ baz` "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2485,7 +2485,7 @@ baz](https://example.com) "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2500,7 +2500,7 @@ part of the title' part of the title">mylink "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2517,7 +2517,7 @@ starts in column three. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2531,7 +2531,7 @@ fn regression_test_156() {This is not in the list at all. It's a paragraph after it.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2543,7 +2543,7 @@ fn regression_test_157() { let expected = r##"\!\"\#\$\%\& \!\"\#\$\%\& \!\"\#\$\%\&
Another paragraph whose spaces must be removed.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2583,7 +2583,7 @@ fn regression_test_160() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2598,7 +2598,7 @@ fn regression_test_161() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2608,7 +2608,7 @@ fn regression_test_162() { let expected = r##"� �
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2618,7 +2618,7 @@ fn regression_test_163() { let expected = r##"�
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2634,7 +2634,7 @@ t_ "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2650,7 +2650,7 @@ N* "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2661,7 +2661,7 @@ fn regression_test_166() { let expected = r##"[link]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2826,7 +2826,7 @@ fn regression_test_177() {[link]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2838,7 +2838,7 @@ fn regression_test_178() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2851,7 +2851,7 @@ fn regression_test_179() {[link]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2863,7 +2863,7 @@ fn regression_test_180() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2876,7 +2876,7 @@ fn regression_test_181() {[link]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2888,7 +2888,7 @@ fn regression_test_182() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2906,7 +2906,7 @@ fn regression_test_183() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2920,7 +2920,7 @@ test2test2
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2936,7 +2936,7 @@ test2 "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2953,7 +2953,7 @@ fn regression_test_186() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2973,7 +2973,7 @@ fn regression_test_187() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2986,7 +2986,7 @@ fn regression_test_188() {<!p>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2998,7 +2998,7 @@ fn regression_test_189() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3014,7 +3014,7 @@ junk "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3026,7 +3026,7 @@ fn regression_test_191() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3037,7 +3037,7 @@ fn regression_test_192() { let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3051,7 +3051,7 @@ fn regression_test_193() {
text ">link
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3069,7 +3069,7 @@ _**
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3084,7 +3084,7 @@ fn regression_test_195() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3097,7 +3097,7 @@ fn regression_test_196() {
bar
"##; - test_markdown_html(original, expected, false, true, false, false); + test_markdown_html(original, expected, false, true, false, false, false); } #[test] @@ -3151,7 +3151,7 @@ fn regression_test_200() { let expected = r##"
foobar_raz, not barfoo_raz
> Something is wrong!
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3251,7 +3251,7 @@ stuff](https://example.com) "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3300,7 +3300,7 @@ fn regression_test_206() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3313,5 +3313,5 @@ fn regression_test_207() { > "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/smart_punct.rs b/pulldown-cmark/tests/suite/smart_punct.rs index f4341d2f..89a653b8 100644 --- a/pulldown-cmark/tests/suite/smart_punct.rs +++ b/pulldown-cmark/tests/suite/smart_punct.rs @@ -12,7 +12,7 @@ fn smart_punct_test_1() { “‘Shelob’ is my name.” "##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -22,7 +22,7 @@ fn smart_punct_test_2() { let expected = r##"‘A’, ‘B’, and ‘C’ are letters.
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -34,7 +34,7 @@ So is 'pine.' So is ‘pine.’ "##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -44,7 +44,7 @@ fn smart_punct_test_4() { let expected = r##"‘He said, “I want to go.”’
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -54,7 +54,7 @@ fn smart_punct_test_5() { let expected = r##"Were you alive in the 70’s?
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -64,7 +64,7 @@ fn smart_punct_test_6() { let expected = r##"Here is some quoted ‘code’ and a “quoted link”.
’tis the season to be ‘jolly’
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -84,7 +84,7 @@ fn smart_punct_test_8() { let expected = r##"‘We’ll use Jane’s boat and John’s truck,’ Jenna said.
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -97,7 +97,7 @@ fn smart_punct_test_9() {“Second paragraph by same speaker, in fiction.”
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -107,7 +107,7 @@ fn smart_punct_test_10() { let expected = r##"[a]’s b’
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -121,7 +121,7 @@ This isn't either. 5'8" "##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -139,7 +139,7 @@ en – en 2–3 "##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -167,7 +167,7 @@ nine——— thirteen———––. "##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -177,7 +177,7 @@ fn smart_punct_test_14() { let expected = r##"Escaped hyphens: -- ---.
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -187,7 +187,7 @@ fn smart_punct_test_15() { let expected = r##"Ellipses…and…and….
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } #[test] @@ -197,5 +197,5 @@ fn smart_punct_test_16() { let expected = r##"No ellipses...
"##; - test_markdown_html(original, expected, true, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/spec.rs b/pulldown-cmark/tests/suite/spec.rs index 2a5520fb..da3374f6 100644 --- a/pulldown-cmark/tests/suite/spec.rs +++ b/pulldown-cmark/tests/suite/spec.rs @@ -11,7 +11,7 @@ fn spec_test_1() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -22,7 +22,7 @@ fn spec_test_2() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -35,7 +35,7 @@ fn spec_test_3() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -52,7 +52,7 @@ fn spec_test_4() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -70,7 +70,7 @@ fn spec_test_5() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -83,7 +83,7 @@ fn spec_test_6() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -98,7 +98,7 @@ fn spec_test_7() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -111,7 +111,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -133,7 +133,7 @@ fn spec_test_9() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -143,7 +143,7 @@ fn spec_test_10() { let expected = r##"!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -173,7 +173,7 @@ fn spec_test_13() { let expected = r##"\ \A\a\ \3\φ\«
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -199,7 +199,7 @@ fn spec_test_14() { ö not a character entity "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -209,7 +209,7 @@ fn spec_test_15() { let expected = r##"\emphasis
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -221,7 +221,7 @@ bar bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -231,7 +231,7 @@ fn spec_test_17() { let expected = r##"\[\`
# Ӓ Ϡ �
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -344,7 +344,7 @@ fn spec_test_27() { let expected = r##"" ആ ಫ
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -360,7 +360,7 @@ fn spec_test_28() { &ThisIsNotDefined; &hi?; "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -370,7 +370,7 @@ fn spec_test_29() { let expected = r##"©
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -380,7 +380,7 @@ fn spec_test_30() { let expected = r##"&MadeUpEntity;
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -390,7 +390,7 @@ fn spec_test_31() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -400,7 +400,7 @@ fn spec_test_32() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -412,7 +412,7 @@ fn spec_test_33() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -425,7 +425,7 @@ foo "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -435,7 +435,7 @@ fn spec_test_35() { let expected = r##"föö
foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -505,7 +505,7 @@ fn spec_test_41() { let expected = r##"[a](url "tit")
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -519,7 +519,7 @@ fn spec_test_42() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -533,7 +533,7 @@ ___+++
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -553,7 +553,7 @@ fn spec_test_45() { let expected = r##"===
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -567,7 +567,7 @@ __ __ "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -581,7 +581,7 @@ fn spec_test_47() {---a---
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -680,7 +680,7 @@ fn spec_test_56() { let expected = r##"-
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -698,7 +698,7 @@ fn spec_test_57() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -712,7 +712,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -725,7 +725,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -743,7 +743,7 @@ fn spec_test_60() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -759,7 +759,7 @@ fn spec_test_61() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -779,7 +779,7 @@ fn spec_test_62() {####### foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -802,7 +802,7 @@ fn spec_test_64() {#hashtag
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -812,7 +812,7 @@ fn spec_test_65() { let expected = r##"## foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -822,7 +822,7 @@ fn spec_test_66() { let expected = r##"Bar foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -979,7 +979,7 @@ fn spec_test_79() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -994,7 +994,7 @@ Foo *bar*of dashes"/>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1168,7 +1168,7 @@ fn spec_test_92() {Baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1240,7 +1240,7 @@ fn spec_test_97() { let expected = r##"====
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1252,7 +1252,7 @@ fn spec_test_98() {baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1338,7 +1338,7 @@ barbaz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1354,7 +1354,7 @@ barbaz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1370,7 +1370,7 @@ bar baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1383,7 +1383,7 @@ fn spec_test_107() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1400,7 +1400,7 @@ fn spec_test_108() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1419,7 +1419,7 @@ fn spec_test_109() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1436,7 +1436,7 @@ fn spec_test_110() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1459,7 +1459,7 @@ chunk3 "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1474,7 +1474,7 @@ fn spec_test_112() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1487,7 +1487,7 @@ fn spec_test_113() { bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1500,7 +1500,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1521,7 +1521,7 @@ Headingfoo
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1688,7 +1688,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1705,7 +1705,7 @@ bbb
bbb
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1720,7 +1720,7 @@ fn spec_test_129() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1731,7 +1731,7 @@ fn spec_test_130() { let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1746,7 +1746,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1763,7 +1763,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1780,7 +1780,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1795,7 +1795,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1808,7 +1808,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1821,7 +1821,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1835,7 +1835,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1847,7 +1847,7 @@ aaa
aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1861,7 +1861,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1878,7 +1878,7 @@ baz
baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -1896,7 +1896,7 @@ bar
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1953,7 +1953,7 @@ foo
foo
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1966,7 +1966,7 @@ foo
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -1979,7 +1979,7 @@ fn spec_test_147() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -2000,7 +2000,7 @@ _world_.
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -2025,7 +2025,7 @@ okay.
okay.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2039,7 +2039,7 @@ fn spec_test_150() {bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2122,7 +2122,7 @@ fn spec_test_156() { *hi* "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2134,7 +2134,7 @@ foo foo "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2146,7 +2146,7 @@ fn spec_test_158() { *foo* "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2156,7 +2156,7 @@ fn spec_test_159() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2170,7 +2170,7 @@ foo "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2186,7 +2186,7 @@ int x = 33; ``` "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2200,7 +2200,7 @@ fn spec_test_162() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2214,7 +2214,7 @@ fn spec_test_163() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2228,7 +2228,7 @@ fn spec_test_164() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2240,7 +2240,7 @@ fn spec_test_165() { *bar* "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2254,7 +2254,7 @@ fn spec_test_166() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2270,7 +2270,7 @@ fn spec_test_167() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2280,7 +2280,7 @@ fn spec_test_168() { let expected = r##"foo
okay
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2322,7 +2322,7 @@ document.getElementById("demo").innerHTML = "Hello JavaScript!";okay
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2344,7 +2344,7 @@ _bar_ "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2366,7 +2366,7 @@ p {color:blue;}okay
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2382,7 +2382,7 @@ foo foo "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2399,7 +2399,7 @@ foobar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2415,7 +2415,7 @@ fn spec_test_175() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2427,7 +2427,7 @@ fn spec_test_176() {foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2439,7 +2439,7 @@ fn spec_test_177() {baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2453,7 +2453,7 @@ foo 1. *bar* "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2471,7 +2471,7 @@ barokay
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2491,7 +2491,7 @@ okayokay
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2501,7 +2501,7 @@ fn spec_test_181() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2535,7 +2535,7 @@ function matchwo(a,b)okay
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2549,7 +2549,7 @@ fn spec_test_183() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2563,7 +2563,7 @@ fn spec_test_184() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2579,7 +2579,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2595,7 +2595,7 @@ bar *foo* "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2609,7 +2609,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2625,7 +2625,7 @@ fn spec_test_188() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2639,7 +2639,7 @@ fn spec_test_189() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2665,7 +2665,7 @@ Hi "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2692,7 +2692,7 @@ fn spec_test_191() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2704,7 +2704,7 @@ fn spec_test_192() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2718,7 +2718,7 @@ fn spec_test_193() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2730,7 +2730,7 @@ fn spec_test_194() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2744,7 +2744,7 @@ fn spec_test_195() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2764,7 +2764,7 @@ line2 ">foo[foo]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2793,7 +2793,7 @@ fn spec_test_198() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2806,7 +2806,7 @@ fn spec_test_199() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2818,7 +2818,7 @@ fn spec_test_200() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2831,7 +2831,7 @@ fn spec_test_201() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2843,7 +2843,7 @@ fn spec_test_202() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2855,7 +2855,7 @@ fn spec_test_203() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2868,7 +2868,7 @@ fn spec_test_204() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2880,7 +2880,7 @@ fn spec_test_205() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2892,7 +2892,7 @@ fn spec_test_206() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2901,7 +2901,7 @@ fn spec_test_207() { "##; let expected = r##""##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2914,7 +2914,7 @@ bar let expected = r##"bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2924,7 +2924,7 @@ fn spec_test_209() { let expected = r##"[foo]: /url "title" ok
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2935,7 +2935,7 @@ fn spec_test_210() { let expected = r##""title" ok
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2949,7 +2949,7 @@ fn spec_test_211() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2965,7 +2965,7 @@ fn spec_test_212() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2980,7 +2980,7 @@ fn spec_test_213() {[bar]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -2995,7 +2995,7 @@ fn spec_test_214() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3009,7 +3009,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3022,7 +3022,7 @@ fn spec_test_216() { foo "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3041,7 +3041,7 @@ fn spec_test_217() { baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3055,7 +3055,7 @@ fn spec_test_218() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3068,7 +3068,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3085,7 +3085,7 @@ bbb ddd "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3099,7 +3099,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3111,7 +3111,7 @@ fn spec_test_222() { bbb "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3125,7 +3125,7 @@ bbb ccc "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3137,7 +3137,7 @@ bbb bbb "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3150,7 +3150,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3162,7 +3162,7 @@ bbb bbb "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3180,7 +3180,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3353,7 +3353,7 @@ fn spec_test_238() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3364,7 +3364,7 @@ fn spec_test_239() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3377,7 +3377,7 @@ fn spec_test_240() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3391,7 +3391,7 @@ fn spec_test_241() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3408,7 +3408,7 @@ fn spec_test_242() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3422,7 +3422,7 @@ bar
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3437,7 +3437,7 @@ fn spec_test_244() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3451,7 +3451,7 @@ fn spec_test_245() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3469,7 +3469,7 @@ fn spec_test_246() {
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3483,7 +3483,7 @@ baz
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -3498,7 +3498,7 @@ baz
baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3513,7 +3513,7 @@ bazbaz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3531,7 +3531,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3551,7 +3551,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3569,7 +3569,7 @@ fn spec_test_252() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3590,7 +3590,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3615,7 +3615,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3630,7 +3630,7 @@ fn spec_test_255() {two
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3647,7 +3647,7 @@ fn spec_test_256() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3663,7 +3663,7 @@ fn spec_test_257() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3680,7 +3680,7 @@ fn spec_test_258() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3701,7 +3701,7 @@ fn spec_test_259() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3720,7 +3720,7 @@ fn spec_test_260() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3733,7 +3733,7 @@ fn spec_test_261() {2.two
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3751,7 +3751,7 @@ fn spec_test_262() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3779,7 +3779,7 @@ fn spec_test_263() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3803,7 +3803,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3815,7 +3815,7 @@ fn spec_test_265() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3825,7 +3825,7 @@ fn spec_test_266() { let expected = r##"1234567890. not ok
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3837,7 +3837,7 @@ fn spec_test_267() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3849,7 +3849,7 @@ fn spec_test_268() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3859,7 +3859,7 @@ fn spec_test_269() { let expected = r##"-1. not ok
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3877,7 +3877,7 @@ fn spec_test_270() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3895,7 +3895,7 @@ fn spec_test_271() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3913,7 +3913,7 @@ paragraph "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3935,7 +3935,7 @@ fn spec_test_273() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3957,7 +3957,7 @@ fn spec_test_274() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3970,7 +3970,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -3985,7 +3985,7 @@ fn spec_test_276() {bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4002,7 +4002,7 @@ fn spec_test_277() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4029,7 +4029,7 @@ fn spec_test_278() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4042,7 +4042,7 @@ fn spec_test_279() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4057,7 +4057,7 @@ fn spec_test_280() {foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4073,7 +4073,7 @@ fn spec_test_281() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4089,7 +4089,7 @@ fn spec_test_282() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4105,7 +4105,7 @@ fn spec_test_283() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4117,7 +4117,7 @@ fn spec_test_284() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4134,7 +4134,7 @@ foo 1. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4159,7 +4159,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4184,7 +4184,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4209,7 +4209,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4230,7 +4230,7 @@ fn spec_test_289() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4255,7 +4255,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4269,7 +4269,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4289,7 +4289,7 @@ continued here. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4309,7 +4309,7 @@ continued here. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4336,7 +4336,7 @@ fn spec_test_294() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4354,7 +4354,7 @@ fn spec_test_295() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4371,7 +4371,7 @@ fn spec_test_296() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4387,7 +4387,7 @@ fn spec_test_297() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4403,7 +4403,7 @@ fn spec_test_298() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4423,7 +4423,7 @@ fn spec_test_299() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4443,7 +4443,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4461,7 +4461,7 @@ fn spec_test_301() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4479,7 +4479,7 @@ fn spec_test_302() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4495,7 +4495,7 @@ fn spec_test_303() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4507,7 +4507,7 @@ fn spec_test_304() { 14. The number of doors is 6. "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4521,7 +4521,7 @@ fn spec_test_305() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4546,7 +4546,7 @@ fn spec_test_306() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4574,7 +4574,7 @@ fn spec_test_307() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4598,7 +4598,7 @@ fn spec_test_308() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4627,7 +4627,7 @@ fn spec_test_309() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4651,7 +4651,7 @@ fn spec_test_310() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4675,7 +4675,7 @@ fn spec_test_311() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4695,7 +4695,7 @@ fn spec_test_312() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4718,7 +4718,7 @@ fn spec_test_313() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4741,7 +4741,7 @@ fn spec_test_314() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4762,7 +4762,7 @@ fn spec_test_315() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4787,7 +4787,7 @@ fn spec_test_316() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4811,7 +4811,7 @@ fn spec_test_317() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4836,7 +4836,7 @@ fn spec_test_318() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4860,7 +4860,7 @@ fn spec_test_319() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4880,7 +4880,7 @@ fn spec_test_320() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4904,7 +4904,7 @@ fn spec_test_321() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4916,7 +4916,7 @@ fn spec_test_322() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4933,7 +4933,7 @@ fn spec_test_323() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4953,7 +4953,7 @@ fn spec_test_324() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -4974,7 +4974,7 @@ fn spec_test_325() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5005,7 +5005,7 @@ fn spec_test_326() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5015,7 +5015,7 @@ fn spec_test_327() { let expected = r##"hilo`
foo
foo ` bar
``
``
a
b
"##;
- test_markdown_html(original, expected, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false);
}
#[test]
@@ -5101,7 +5101,7 @@ baz
let expected = r##"foo bar baz
foo
foo bar baz
foo\bar`
foo`bar
foo `` bar
*foo*
[not a link](/foo)
<a href="">`
<https://foo.bar.baz>`
```foo``
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5234,7 +5234,7 @@ fn spec_test_348() { let expected = r##"`foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5244,7 +5244,7 @@ fn spec_test_349() { let expected = r##"`foobar
foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5264,7 +5264,7 @@ fn spec_test_351() { let expected = r##"a * foo bar*
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5274,7 +5274,7 @@ fn spec_test_352() { let expected = r##"a*"foo"*
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5284,7 +5284,7 @@ fn spec_test_353() { let expected = r##"* a *
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5300,7 +5300,7 @@ fn spec_test_354() {*€*charlie.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5310,7 +5310,7 @@ fn spec_test_355() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5320,7 +5320,7 @@ fn spec_test_356() { let expected = r##"5678
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5330,7 +5330,7 @@ fn spec_test_357() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5340,7 +5340,7 @@ fn spec_test_358() { let expected = r##"_ foo bar_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5350,7 +5350,7 @@ fn spec_test_359() { let expected = r##"a_"foo"_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5360,7 +5360,7 @@ fn spec_test_360() { let expected = r##"foo_bar_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5370,7 +5370,7 @@ fn spec_test_361() { let expected = r##"5_6_78
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5380,7 +5380,7 @@ fn spec_test_362() { let expected = r##"пристаням_стремятся_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5390,7 +5390,7 @@ fn spec_test_363() { let expected = r##"aa_"bb"_cc
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5400,7 +5400,7 @@ fn spec_test_364() { let expected = r##"foo-(bar)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5410,7 +5410,7 @@ fn spec_test_365() { let expected = r##"_foo*
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5420,7 +5420,7 @@ fn spec_test_366() { let expected = r##"*foo bar *
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5432,7 +5432,7 @@ fn spec_test_367() { * "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5442,7 +5442,7 @@ fn spec_test_368() { let expected = r##"*(*foo)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5452,7 +5452,7 @@ fn spec_test_369() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5462,7 +5462,7 @@ fn spec_test_370() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5472,7 +5472,7 @@ fn spec_test_371() { let expected = r##"_foo bar _
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5482,7 +5482,7 @@ fn spec_test_372() { let expected = r##"_(_foo)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5492,7 +5492,7 @@ fn spec_test_373() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5502,7 +5502,7 @@ fn spec_test_374() { let expected = r##"_foo_bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5512,7 +5512,7 @@ fn spec_test_375() { let expected = r##"_пристаням_стремятся
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5522,7 +5522,7 @@ fn spec_test_376() { let expected = r##"foo_bar_baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5532,7 +5532,7 @@ fn spec_test_377() { let expected = r##"(bar).
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5542,7 +5542,7 @@ fn spec_test_378() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5552,7 +5552,7 @@ fn spec_test_379() { let expected = r##"** foo bar**
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5562,7 +5562,7 @@ fn spec_test_380() { let expected = r##"a**"foo"**
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5572,7 +5572,7 @@ fn spec_test_381() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5582,7 +5582,7 @@ fn spec_test_382() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5592,7 +5592,7 @@ fn spec_test_383() { let expected = r##"__ foo bar__
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5604,7 +5604,7 @@ foo bar__ foo bar__ "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5614,7 +5614,7 @@ fn spec_test_385() { let expected = r##"a__"foo"__
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5624,7 +5624,7 @@ fn spec_test_386() { let expected = r##"foo__bar__
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5634,7 +5634,7 @@ fn spec_test_387() { let expected = r##"5__6__78
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5644,7 +5644,7 @@ fn spec_test_388() { let expected = r##"пристаням__стремятся__
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5654,7 +5654,7 @@ fn spec_test_389() { let expected = r##"foo, bar, baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5664,7 +5664,7 @@ fn spec_test_390() { let expected = r##"foo-(bar)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5674,7 +5674,7 @@ fn spec_test_391() { let expected = r##"**foo bar **
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5684,7 +5684,7 @@ fn spec_test_392() { let expected = r##"**(**foo)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5694,7 +5694,7 @@ fn spec_test_393() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5706,7 +5706,7 @@ fn spec_test_394() { Asclepias physocarpa) "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5716,7 +5716,7 @@ fn spec_test_395() { let expected = r##"foo "bar" foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5726,7 +5726,7 @@ fn spec_test_396() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5736,7 +5736,7 @@ fn spec_test_397() { let expected = r##"__foo bar __
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5746,7 +5746,7 @@ fn spec_test_398() { let expected = r##"__(__foo)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5756,7 +5756,7 @@ fn spec_test_399() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5766,7 +5766,7 @@ fn spec_test_400() { let expected = r##"__foo__bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5776,7 +5776,7 @@ fn spec_test_401() { let expected = r##"__пристаням__стремятся
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5786,7 +5786,7 @@ fn spec_test_402() { let expected = r##"foo__bar__baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5796,7 +5796,7 @@ fn spec_test_403() { let expected = r##"(bar).
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5806,7 +5806,7 @@ fn spec_test_404() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5818,7 +5818,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5828,7 +5828,7 @@ fn spec_test_406() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5838,7 +5838,7 @@ fn spec_test_407() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5848,7 +5848,7 @@ fn spec_test_408() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5858,7 +5858,7 @@ fn spec_test_409() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5868,7 +5868,7 @@ fn spec_test_410() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5878,7 +5878,7 @@ fn spec_test_411() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5888,7 +5888,7 @@ fn spec_test_412() { let expected = r##"foo**bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5898,7 +5898,7 @@ fn spec_test_413() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5908,7 +5908,7 @@ fn spec_test_414() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5918,7 +5918,7 @@ fn spec_test_415() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5928,7 +5928,7 @@ fn spec_test_416() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5938,7 +5938,7 @@ fn spec_test_417() { let expected = r##"foobar***baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5948,7 +5948,7 @@ fn spec_test_418() { let expected = r##"foo bar baz bim bop
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5958,7 +5958,7 @@ fn spec_test_419() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5968,7 +5968,7 @@ fn spec_test_420() { let expected = r##"** is not an empty emphasis
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5978,7 +5978,7 @@ fn spec_test_421() { let expected = r##"**** is not an empty strong emphasis
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -5988,7 +5988,7 @@ fn spec_test_422() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6000,7 +6000,7 @@ bar** bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6010,7 +6010,7 @@ fn spec_test_424() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6020,7 +6020,7 @@ fn spec_test_425() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6030,7 +6030,7 @@ fn spec_test_426() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6040,7 +6040,7 @@ fn spec_test_427() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6050,7 +6050,7 @@ fn spec_test_428() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6060,7 +6060,7 @@ fn spec_test_429() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6070,7 +6070,7 @@ fn spec_test_430() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6080,7 +6080,7 @@ fn spec_test_431() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6092,7 +6092,7 @@ bim* bop** bim bop "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6102,7 +6102,7 @@ fn spec_test_433() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6112,7 +6112,7 @@ fn spec_test_434() { let expected = r##"__ is not an empty emphasis
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6122,7 +6122,7 @@ fn spec_test_435() { let expected = r##"____ is not an empty strong emphasis
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6132,7 +6132,7 @@ fn spec_test_436() { let expected = r##"foo ***
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6142,7 +6142,7 @@ fn spec_test_437() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6152,7 +6152,7 @@ fn spec_test_438() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6162,7 +6162,7 @@ fn spec_test_439() { let expected = r##"foo *****
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6172,7 +6172,7 @@ fn spec_test_440() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6182,7 +6182,7 @@ fn spec_test_441() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6192,7 +6192,7 @@ fn spec_test_442() { let expected = r##"*foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6202,7 +6202,7 @@ fn spec_test_443() { let expected = r##"foo*
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6212,7 +6212,7 @@ fn spec_test_444() { let expected = r##"*foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6222,7 +6222,7 @@ fn spec_test_445() { let expected = r##"***foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6232,7 +6232,7 @@ fn spec_test_446() { let expected = r##"foo*
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6242,7 +6242,7 @@ fn spec_test_447() { let expected = r##"foo***
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6252,7 +6252,7 @@ fn spec_test_448() { let expected = r##"foo ___
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6262,7 +6262,7 @@ fn spec_test_449() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6272,7 +6272,7 @@ fn spec_test_450() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6282,7 +6282,7 @@ fn spec_test_451() { let expected = r##"foo _____
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6292,7 +6292,7 @@ fn spec_test_452() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6302,7 +6302,7 @@ fn spec_test_453() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6312,7 +6312,7 @@ fn spec_test_454() { let expected = r##"_foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6322,7 +6322,7 @@ fn spec_test_455() { let expected = r##"foo_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6332,7 +6332,7 @@ fn spec_test_456() { let expected = r##"_foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6342,7 +6342,7 @@ fn spec_test_457() { let expected = r##"___foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6352,7 +6352,7 @@ fn spec_test_458() { let expected = r##"foo_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6362,7 +6362,7 @@ fn spec_test_459() { let expected = r##"foo___
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6372,7 +6372,7 @@ fn spec_test_460() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6382,7 +6382,7 @@ fn spec_test_461() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6392,7 +6392,7 @@ fn spec_test_462() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6402,7 +6402,7 @@ fn spec_test_463() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6412,7 +6412,7 @@ fn spec_test_464() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6422,7 +6422,7 @@ fn spec_test_465() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6432,7 +6432,7 @@ fn spec_test_466() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6442,7 +6442,7 @@ fn spec_test_467() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6452,7 +6452,7 @@ fn spec_test_468() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6462,7 +6462,7 @@ fn spec_test_469() { let expected = r##"foo _bar baz_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6472,7 +6472,7 @@ fn spec_test_470() { let expected = r##"foo bar *baz bim bam
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6482,7 +6482,7 @@ fn spec_test_471() { let expected = r##"**foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6492,7 +6492,7 @@ fn spec_test_472() { let expected = r##"*foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6502,7 +6502,7 @@ fn spec_test_473() { let expected = r##"*bar*
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6512,7 +6512,7 @@ fn spec_test_474() { let expected = r##"_foo bar_
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6522,7 +6522,7 @@ fn spec_test_475() { let expected = r##"*
a *
a _
[link](/my uri)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6662,7 +6662,7 @@ fn spec_test_489() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6674,7 +6674,7 @@ bar) bar) "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6686,7 +6686,7 @@ bar>) bar>) "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6696,7 +6696,7 @@ fn spec_test_492() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6706,7 +6706,7 @@ fn spec_test_493() { let expected = r##"[link](<foo>)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6720,7 +6720,7 @@ fn spec_test_494() { [a](c) "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6730,7 +6730,7 @@ fn spec_test_495() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6740,7 +6740,7 @@ fn spec_test_496() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6750,7 +6750,7 @@ fn spec_test_497() { let expected = r##"[link](foo(and(bar))
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6760,7 +6760,7 @@ fn spec_test_498() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6770,7 +6770,7 @@ fn spec_test_499() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6780,7 +6780,7 @@ fn spec_test_500() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6796,7 +6796,7 @@ fn spec_test_501() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6806,7 +6806,7 @@ fn spec_test_502() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6816,7 +6816,7 @@ fn spec_test_503() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6826,7 +6826,7 @@ fn spec_test_504() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6840,7 +6840,7 @@ fn spec_test_505() { link "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6850,7 +6850,7 @@ fn spec_test_506() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6860,7 +6860,7 @@ fn spec_test_507() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6870,7 +6870,7 @@ fn spec_test_508() { let expected = r##"[link](/url "title "and" title")
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6880,7 +6880,7 @@ fn spec_test_509() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6891,7 +6891,7 @@ fn spec_test_510() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6901,7 +6901,7 @@ fn spec_test_511() { let expected = r##"[link] (/uri)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6911,7 +6911,7 @@ fn spec_test_512() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6921,7 +6921,7 @@ fn spec_test_513() { let expected = r##"[link] bar](/uri)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6931,7 +6931,7 @@ fn spec_test_514() { let expected = r##"[link bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6941,7 +6941,7 @@ fn spec_test_515() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6951,7 +6951,7 @@ fn spec_test_516() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6961,7 +6961,7 @@ fn spec_test_517() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6971,7 +6971,7 @@ fn spec_test_518() { let expected = r##"[foo bar](/uri)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6981,7 +6981,7 @@ fn spec_test_519() { let expected = r##"[foo [bar baz](/uri)](/uri)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -6991,7 +6991,7 @@ fn spec_test_520() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7011,7 +7011,7 @@ fn spec_test_522() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7021,7 +7021,7 @@ fn spec_test_523() { let expected = r##"foo [bar baz]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7031,7 +7031,7 @@ fn spec_test_524() { let expected = r##"[foo
[foo](/uri)
[foohttps://example.com/?search=](uri)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7063,7 +7063,7 @@ fn spec_test_527() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7075,7 +7075,7 @@ fn spec_test_528() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7087,7 +7087,7 @@ fn spec_test_529() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7099,7 +7099,7 @@ fn spec_test_530() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7111,7 +7111,7 @@ fn spec_test_531() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7123,7 +7123,7 @@ fn spec_test_532() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7135,7 +7135,7 @@ fn spec_test_533() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7147,7 +7147,7 @@ fn spec_test_534() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7159,7 +7159,7 @@ fn spec_test_535() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7171,7 +7171,7 @@ fn spec_test_536() { let expected = r##"[foo
[foo][ref]
[foohttps://example.com/?search=][ref]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7207,7 +7207,7 @@ fn spec_test_539() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7219,7 +7219,7 @@ fn spec_test_540() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7232,7 +7232,7 @@ fn spec_test_541() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7244,7 +7244,7 @@ fn spec_test_542() { let expected = r##"[foo] bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7258,7 +7258,7 @@ fn spec_test_543() { bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7272,7 +7272,7 @@ fn spec_test_544() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7284,7 +7284,7 @@ fn spec_test_545() { let expected = r##"[bar][foo!]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7297,7 +7297,7 @@ fn spec_test_546() {[ref[]: /uri
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7310,7 +7310,7 @@ fn spec_test_547() {[ref[bar]]: /uri
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7323,7 +7323,7 @@ fn spec_test_548() {[[[foo]]]: /url
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7335,7 +7335,7 @@ fn spec_test_549() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7347,7 +7347,7 @@ fn spec_test_550() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7360,7 +7360,7 @@ fn spec_test_551() {[]: /uri
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7377,7 +7377,7 @@ fn spec_test_552() { ]: /uri "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7389,7 +7389,7 @@ fn spec_test_553() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7401,7 +7401,7 @@ fn spec_test_554() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7413,7 +7413,7 @@ fn spec_test_555() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7427,7 +7427,7 @@ fn spec_test_556() { [] "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7439,7 +7439,7 @@ fn spec_test_557() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7451,7 +7451,7 @@ fn spec_test_558() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7463,7 +7463,7 @@ fn spec_test_559() { let expected = r##"[foo bar]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7475,7 +7475,7 @@ fn spec_test_560() { let expected = r##"[[bar foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7487,7 +7487,7 @@ fn spec_test_561() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7499,7 +7499,7 @@ fn spec_test_562() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7511,7 +7511,7 @@ fn spec_test_563() { let expected = r##"[foo]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7523,7 +7523,7 @@ fn spec_test_564() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7536,7 +7536,7 @@ fn spec_test_565() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7548,7 +7548,7 @@ fn spec_test_566() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7560,7 +7560,7 @@ fn spec_test_567() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7572,7 +7572,7 @@ fn spec_test_568() { let expected = r##"foo(not a link)
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7584,7 +7584,7 @@ fn spec_test_569() { let expected = r##"[foo]bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7597,7 +7597,7 @@ fn spec_test_570() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7610,7 +7610,7 @@ fn spec_test_571() { let expected = r##"[foo]bar
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7620,7 +7620,7 @@ fn spec_test_572() { let expected = r##"



My 
[[foo]]: /url "title"
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7839,7 +7839,7 @@ fn spec_test_591() { let expected = r##"![foo]
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7863,7 +7863,7 @@ fn spec_test_593() { let expected = r##"!foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7873,7 +7873,7 @@ fn spec_test_594() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7883,7 +7883,7 @@ fn spec_test_595() { let expected = r##"https://foo.bar.baz/test?q=hello&id=22&boolean
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7893,7 +7893,7 @@ fn spec_test_596() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7903,7 +7903,7 @@ fn spec_test_597() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7913,7 +7913,7 @@ fn spec_test_598() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7923,7 +7923,7 @@ fn spec_test_599() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7933,7 +7933,7 @@ fn spec_test_600() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7943,7 +7943,7 @@ fn spec_test_601() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7953,7 +7953,7 @@ fn spec_test_602() { let expected = r##"<https://foo.bar/baz bim>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7963,7 +7963,7 @@ fn spec_test_603() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7973,7 +7973,7 @@ fn spec_test_604() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7983,7 +7983,7 @@ fn spec_test_605() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -7993,7 +7993,7 @@ fn spec_test_606() { let expected = r##"<foo+@bar.example.com>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8003,7 +8003,7 @@ fn spec_test_607() { let expected = r##"<>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8013,7 +8013,7 @@ fn spec_test_608() { let expected = r##"< https://foo.bar >
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8023,7 +8023,7 @@ fn spec_test_609() { let expected = r##"<m:abc>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8033,7 +8033,7 @@ fn spec_test_610() { let expected = r##"<foo.bar.baz>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8043,7 +8043,7 @@ fn spec_test_611() { let expected = r##"https://example.com
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8053,7 +8053,7 @@ fn spec_test_612() { let expected = r##"foo@bar.example.com
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8063,7 +8063,7 @@ fn spec_test_613() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8073,7 +8073,7 @@ fn spec_test_614() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8085,7 +8085,7 @@ data="foo" > data="foo" > "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8097,7 +8097,7 @@ _boolean zoop:33=zoop:33 /> _boolean zoop:33=zoop:33 /> "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8107,7 +8107,7 @@ fn spec_test_617() { let expected = r##"Foo
<33> <__>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8127,7 +8127,7 @@ fn spec_test_619() { let expected = r##"<a h*#ref="hi">
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8137,7 +8137,7 @@ fn spec_test_620() { let expected = r##"<a href="hi'> <a href=hi'>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8153,7 +8153,7 @@ foo><bar/ > bim!bop /> "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8163,7 +8163,7 @@ fn spec_test_622() { let expected = r##"<a href='bar'title=title>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8173,7 +8173,7 @@ fn spec_test_623() { let expected = r##"</a href="foo">
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8195,7 +8195,7 @@ comment - with hyphens --> comment - with hyphens --> "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8208,7 +8208,7 @@ foo foo -->foo foo -->
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8218,7 +8218,7 @@ fn spec_test_627() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8228,7 +8228,7 @@ fn spec_test_628() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8238,7 +8238,7 @@ fn spec_test_629() { let expected = r##"foo &<]]>
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8248,7 +8248,7 @@ fn spec_test_630() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8258,7 +8258,7 @@ fn spec_test_631() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8268,7 +8268,7 @@ fn spec_test_632() { let expected = r##"<a href=""">
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8280,7 +8280,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8292,7 +8292,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8304,7 +8304,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8316,7 +8316,7 @@ fn spec_test_636() { bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8328,7 +8328,7 @@ fn spec_test_637() { bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8340,7 +8340,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8352,7 +8352,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8363,7 +8363,7 @@ span` let expected = r##"code span
code\ span
foo\
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8418,7 +8418,7 @@ fn spec_test_645() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8428,7 +8428,7 @@ fn spec_test_646() { let expected = r##"hello $.;'there
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8482,7 +8482,7 @@ fn spec_test_651() { let expected = r##"Foo χρῆν
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -8492,5 +8492,5 @@ fn spec_test_652() { let expected = r##"Multiple spaces
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/strikethrough.rs b/pulldown-cmark/tests/suite/strikethrough.rs index 621ed179..ae672a09 100644 --- a/pulldown-cmark/tests/suite/strikethrough.rs +++ b/pulldown-cmark/tests/suite/strikethrough.rs @@ -10,7 +10,7 @@ fn strikethrough_test_1() { let expected = r##"This is stricken out
This is ~~stricken
Thisisstricken
Thisisstricken
Here I strike out an exclamation point!.
This is stricken out
This is ~stricken
This~is~nothing
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -90,7 +90,7 @@ fn strikethrough_test_9() { let expected = r##"This~is~nothing
Here I fail to strike out an exclamation point~!~.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -110,7 +110,7 @@ fn strikethrough_test_11() { let expected = r##"Here I fail to strike out a tilde ~~~.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -120,7 +120,7 @@ fn strikethrough_test_12() { let expected = r##"Here I fail to match up ~~tildes~.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -130,7 +130,7 @@ fn strikethrough_test_13() { let expected = r##"Here I fail to match up ~tildes~~.
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -140,7 +140,7 @@ fn strikethrough_test_14() { let expected = r##"This ~is stricken.
This ~~is stricken.
This is super This is sub
"##; - test_markdown_html(original, expected, false, false, false, true); + test_markdown_html(original, expected, false, false, false, true, false); } #[test] @@ -20,7 +20,7 @@ fn super_sub_test_2() { let expected = r##"This is stricken out
"##; - test_markdown_html(original, expected, false, false, false, true); + test_markdown_html(original, expected, false, false, false, true, false); } #[test] @@ -30,7 +30,7 @@ fn super_sub_test_3() { let expected = r##"This is ~stricken
"##; - test_markdown_html(original, expected, false, false, false, true); + test_markdown_html(original, expected, false, false, false, true, false); } #[test] @@ -40,7 +40,7 @@ fn super_sub_test_4() { let expected = r##"This~is~nothing
"##; - test_markdown_html(original, expected, false, false, false, true); + test_markdown_html(original, expected, false, false, false, true, false); } #[test] @@ -50,7 +50,7 @@ fn super_sub_test_5() { let expected = r##"This ~~is stricken.
"##; - test_markdown_html(original, expected, false, false, false, true); + test_markdown_html(original, expected, false, false, false, true, false); } #[test] @@ -60,5 +60,5 @@ fn super_sub_test_6() { let expected = r##"This ~~is stricken but this is not~~
"##; - test_markdown_html(original, expected, false, false, false, true); + test_markdown_html(original, expected, false, false, false, true, false); } diff --git a/pulldown-cmark/tests/suite/table.rs b/pulldown-cmark/tests/suite/table.rs index 97d7b06d..aa46bca7 100644 --- a/pulldown-cmark/tests/suite/table.rs +++ b/pulldown-cmark/tests/suite/table.rs @@ -11,7 +11,7 @@ fn table_test_1() { let expected = r##"b
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -316,7 +316,7 @@ fn table_test_14() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -332,7 +332,7 @@ fn table_test_15() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -348,7 +348,7 @@ fn table_test_16() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -398,7 +398,7 @@ fn table_test_17() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -436,7 +436,7 @@ fn table_test_18() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -466,7 +466,7 @@ fn table_test_19() { | Not | Enough | "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -480,7 +480,7 @@ fn table_test_20() {|
"##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -494,7 +494,7 @@ fn table_test_21() { | Table | Body | "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -516,7 +516,7 @@ fn table_test_22() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -542,7 +542,7 @@ fn table_test_23() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -564,7 +564,7 @@ A: Interrupting —? "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -578,7 +578,7 @@ fn table_test_25() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -592,7 +592,7 @@ fn table_test_26() { "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -610,7 +610,7 @@ moo | moo "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } #[test] @@ -628,5 +628,5 @@ moo | moo "##; - test_markdown_html(original, expected, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/wikilinks.rs b/pulldown-cmark/tests/suite/wikilinks.rs new file mode 100644 index 00000000..0b8f9609 --- /dev/null +++ b/pulldown-cmark/tests/suite/wikilinks.rs @@ -0,0 +1,78 @@ +// This file is auto-generated by the build script +// Please, do not modify it manually + +use super::test_markdown_html; + +#[test] +fn wikilinks_test_1() { + let original = r##"This is a [[WikiLink]]. +"##; + let expected = r##"This is a WikiLink.
+"##; + + test_markdown_html(original, expected, false, false, false, false, true); +} + +#[test] +fn wikilinks_test_2() { + let original = r##"This is [[Ambiguous]]. + +[Ambiguous]: https://example.com/ +"##; + let expected = r##"This is Ambiguous.
+"##; + + test_markdown_html(original, expected, false, false, false, false, true); +} + +#[test] +fn wikilinks_test_3() { + let original = r##"This is [also [[Ambiguous]]](https://example.com/). +"##; + let expected = r##"This is [also Ambiguous](https://example.com/).
+"##; + + test_markdown_html(original, expected, false, false, false, false, true); +} + +#[test] +fn wikilinks_test_4() { + let original = r##"This is [[WikiLink|a pothole]]. +"##; + let expected = r##"This is a pothole.
+"##; + + test_markdown_html(original, expected, false, false, false, false, true); +} + +#[test] +fn wikilinks_test_5() { + let original = r##"This is [[WikiLink|a **strong** pothole]]. +"##; + let expected = r##"This is a strong pothole.
+"##; + + test_markdown_html(original, expected, false, false, false, false, true); +} + +#[test] +fn wikilinks_test_6() { + let original = r##"This is a cute dog, linked to the page "/WikiLink/" + +[[WikiLink|]] +"##; + let expected = r##"This is a cute dog, linked to the page "/WikiLink/"
+"##; + + test_markdown_html(original, expected, false, false, false, false, true); +} + +#[test] +fn wikilinks_test_7() { + let original = r##"The url of [[This Link]] becomes "/This_Link/" +"##; + let expected = r##"The url of This Link becomes "/This_Link/"
+"##; + + test_markdown_html(original, expected, false, false, false, false, true); +} From be5615523b56d546e3fc10632e2d0c70b32b60a8 Mon Sep 17 00:00:00 2001 From: Dante HelmoreThe url of This Link becomes "/This_Link/"
```````````````````````````````` + +Paths can be qualified in wikilinks while only showing the title of the page. +This is useful for wikis that support a "directory-like" system. + +```````````````````````````````` example_wikilinks +This is a [[WikiLink/In/A/Directory]]. +. +This is a Directory.
+```````````````````````````````` + +Of course, the pipe operator can still be used: + +```````````````````````````````` example_wikilinks +This is a [[WikiLink/In/A/Directory|WikiLink]]. +. +This is a WikiLink.
+```````````````````````````````` diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs index 0643d797..24c82602 100644 --- a/pulldown-cmark/src/parse.rs +++ b/pulldown-cmark/src/parse.rs @@ -670,6 +670,23 @@ impl<'input, F: BrokenLinkCallback<'input>> Parser<'input, F> { None => { // [[WikiName]] let wikiname = &block_text[start_ix..end_ix]; + // or [[Nested/WikiName]] + let display_ix = wikiname + .as_bytes() + .iter() + .rposition(|b| *b == b'/') + .map(|ix| ix + 1) + .unwrap_or(0) + + start_ix; + // TODO: wikitext should not be styled, might + // need a more experienced contributor's help + let body_node = self.tree.create_node(Item { + start: display_ix, + end: end_ix, + body: ItemBody::Text { + backslash_escaped: false, + }, + }); Some((body_node, wikiname)) } }; diff --git a/pulldown-cmark/tests/suite/wikilinks.rs b/pulldown-cmark/tests/suite/wikilinks.rs index 0b8f9609..c4c11ccd 100644 --- a/pulldown-cmark/tests/suite/wikilinks.rs +++ b/pulldown-cmark/tests/suite/wikilinks.rs @@ -76,3 +76,23 @@ fn wikilinks_test_7() { test_markdown_html(original, expected, false, false, false, false, true); } + +#[test] +fn wikilinks_test_8() { + let original = r##"This is a [[WikiLink/In/A/Directory]]. +"##; + let expected = r##"This is a Directory.
+"##; + + test_markdown_html(original, expected, false, false, false, false, true); +} + +#[test] +fn wikilinks_test_9() { + let original = r##"This is a [[WikiLink/In/A/Directory|WikiLink]]. +"##; + let expected = r##"This is a WikiLink.
+"##; + + test_markdown_html(original, expected, false, false, false, false, true); +} From 675acd25a2052c40717476b5f84f5efe60a10d5d Mon Sep 17 00:00:00 2001 From: Roope Salmi"), + End(EndTag::Paragraph) => write("
\n"), + // etc +} +``` + +### Inline Elements + +Inline elements like emphasis and links are handled similarly but without newlines: + +```rust +match event { + Start(Tag::Emphasis) => write(""), + End(EndTag::Emphasis) => write(""), + // etc +} +``` + +### Text Content + +Text content is HTML escaped and written directly: + +```rust +match event { + Text(text) => escape_html_body_text(&mut writer, &text), + // etc +} +``` + +### Complex Elements + +More complex elements like tables require managing state: + +```rust +match event { + Start(Tag::Table(alignments)) => { + self.table_alignments = alignments; + self.write("| + +[WikiLinks](specs/wikilinks.md) + + | + + [[https://example.com/destination|label]] + + | + +label + |
|---|
` like `1. *bar* "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2471,7 +2471,7 @@ bar"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2563,7 +2563,7 @@ fn spec_test_184() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2579,7 +2579,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2595,7 +2595,7 @@ bar *foo* "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2609,7 +2609,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2625,7 +2625,7 @@ fn spec_test_188() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2639,7 +2639,7 @@ fn spec_test_189() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2665,7 +2665,7 @@ Hi "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2692,7 +2692,7 @@ fn spec_test_191() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2704,7 +2704,7 @@ fn spec_test_192() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2718,7 +2718,7 @@ fn spec_test_193() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2730,7 +2730,7 @@ fn spec_test_194() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2744,7 +2744,7 @@ fn spec_test_195() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2764,7 +2764,7 @@ line2 ">foo "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2780,7 +2780,7 @@ with blank line'okay
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2491,7 +2491,7 @@ okayokay
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2501,7 +2501,7 @@ fn spec_test_181() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2535,7 +2535,7 @@ function matchwo(a,b)okay
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2549,7 +2549,7 @@ fn spec_test_183() {
[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2793,7 +2793,7 @@ fn spec_test_198() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2806,7 +2806,7 @@ fn spec_test_199() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2818,7 +2818,7 @@ fn spec_test_200() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2831,7 +2831,7 @@ fn spec_test_201() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2843,7 +2843,7 @@ fn spec_test_202() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2855,7 +2855,7 @@ fn spec_test_203() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2868,7 +2868,7 @@ fn spec_test_204() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2880,7 +2880,7 @@ fn spec_test_205() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2892,7 +2892,7 @@ fn spec_test_206() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2901,7 +2901,7 @@ fn spec_test_207() { "##; let expected = r##""##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2914,7 +2914,7 @@ bar let expected = r##"bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2924,7 +2924,7 @@ fn spec_test_209() { let expected = r##"[foo]: /url "title" ok
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2935,7 +2935,7 @@ fn spec_test_210() { let expected = r##""title" ok
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2949,7 +2949,7 @@ fn spec_test_211() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2965,7 +2965,7 @@ fn spec_test_212() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2980,7 +2980,7 @@ fn spec_test_213() {[bar]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -2995,7 +2995,7 @@ fn spec_test_214() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3009,7 +3009,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3022,7 +3022,7 @@ fn spec_test_216() { foo "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3041,7 +3041,7 @@ fn spec_test_217() { baz "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3055,7 +3055,7 @@ fn spec_test_218() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3068,7 +3068,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3085,7 +3085,7 @@ bbb ddd "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3099,7 +3099,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3111,7 +3111,7 @@ fn spec_test_222() { bbb "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3125,7 +3125,7 @@ bbb ccc "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3137,7 +3137,7 @@ bbb bbb "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3150,7 +3150,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3162,7 +3162,7 @@ bbb bbb "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3180,7 +3180,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3353,7 +3353,7 @@ fn spec_test_238() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3364,7 +3364,7 @@ fn spec_test_239() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3377,7 +3377,7 @@ fn spec_test_240() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3391,7 +3391,7 @@ fn spec_test_241() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3408,7 +3408,7 @@ fn spec_test_242() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3422,7 +3422,7 @@ bar
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3437,7 +3437,7 @@ fn spec_test_244() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3451,7 +3451,7 @@ fn spec_test_245() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3469,7 +3469,7 @@ fn spec_test_246() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3483,7 +3483,7 @@ baz
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -3498,7 +3498,7 @@ baz
baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3513,7 +3513,7 @@ bazbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3531,7 +3531,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3551,7 +3551,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3569,7 +3569,7 @@ fn spec_test_252() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3590,7 +3590,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3615,7 +3615,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3630,7 +3630,7 @@ fn spec_test_255() {two
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3647,7 +3647,7 @@ fn spec_test_256() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3663,7 +3663,7 @@ fn spec_test_257() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3680,7 +3680,7 @@ fn spec_test_258() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3701,7 +3701,7 @@ fn spec_test_259() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3720,7 +3720,7 @@ fn spec_test_260() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3733,7 +3733,7 @@ fn spec_test_261() {2.two
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3751,7 +3751,7 @@ fn spec_test_262() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3779,7 +3779,7 @@ fn spec_test_263() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3803,7 +3803,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3815,7 +3815,7 @@ fn spec_test_265() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3825,7 +3825,7 @@ fn spec_test_266() { let expected = r##"1234567890. not ok
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3837,7 +3837,7 @@ fn spec_test_267() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3849,7 +3849,7 @@ fn spec_test_268() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3859,7 +3859,7 @@ fn spec_test_269() { let expected = r##"-1. not ok
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3877,7 +3877,7 @@ fn spec_test_270() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3895,7 +3895,7 @@ fn spec_test_271() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3913,7 +3913,7 @@ paragraph "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3935,7 +3935,7 @@ fn spec_test_273() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3957,7 +3957,7 @@ fn spec_test_274() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3970,7 +3970,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -3985,7 +3985,7 @@ fn spec_test_276() {bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4002,7 +4002,7 @@ fn spec_test_277() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4029,7 +4029,7 @@ fn spec_test_278() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4042,7 +4042,7 @@ fn spec_test_279() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4057,7 +4057,7 @@ fn spec_test_280() {foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4073,7 +4073,7 @@ fn spec_test_281() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4089,7 +4089,7 @@ fn spec_test_282() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4105,7 +4105,7 @@ fn spec_test_283() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4117,7 +4117,7 @@ fn spec_test_284() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4134,7 +4134,7 @@ foo 1. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4159,7 +4159,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4184,7 +4184,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4209,7 +4209,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4230,7 +4230,7 @@ fn spec_test_289() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4255,7 +4255,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4269,7 +4269,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4289,7 +4289,7 @@ continued here. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4309,7 +4309,7 @@ continued here. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4336,7 +4336,7 @@ fn spec_test_294() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4354,7 +4354,7 @@ fn spec_test_295() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4371,7 +4371,7 @@ fn spec_test_296() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4387,7 +4387,7 @@ fn spec_test_297() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4403,7 +4403,7 @@ fn spec_test_298() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4423,7 +4423,7 @@ fn spec_test_299() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4443,7 +4443,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4461,7 +4461,7 @@ fn spec_test_301() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4479,7 +4479,7 @@ fn spec_test_302() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4495,7 +4495,7 @@ fn spec_test_303() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4507,7 +4507,7 @@ fn spec_test_304() { 14. The number of doors is 6. "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4521,7 +4521,7 @@ fn spec_test_305() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4546,7 +4546,7 @@ fn spec_test_306() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4574,7 +4574,7 @@ fn spec_test_307() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4598,7 +4598,7 @@ fn spec_test_308() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4627,7 +4627,7 @@ fn spec_test_309() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4651,7 +4651,7 @@ fn spec_test_310() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4675,7 +4675,7 @@ fn spec_test_311() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4695,7 +4695,7 @@ fn spec_test_312() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4718,7 +4718,7 @@ fn spec_test_313() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4741,7 +4741,7 @@ fn spec_test_314() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4762,7 +4762,7 @@ fn spec_test_315() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4787,7 +4787,7 @@ fn spec_test_316() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4811,7 +4811,7 @@ fn spec_test_317() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4836,7 +4836,7 @@ fn spec_test_318() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4860,7 +4860,7 @@ fn spec_test_319() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4880,7 +4880,7 @@ fn spec_test_320() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4904,7 +4904,7 @@ fn spec_test_321() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4916,7 +4916,7 @@ fn spec_test_322() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4933,7 +4933,7 @@ fn spec_test_323() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4953,7 +4953,7 @@ fn spec_test_324() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -4974,7 +4974,7 @@ fn spec_test_325() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5005,7 +5005,7 @@ fn spec_test_326() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5015,7 +5015,7 @@ fn spec_test_327() { let expected = r##"hilo`
foo
foo ` bar
``
``
a
b
"##;
- test_markdown_html(original, expected, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false);
}
#[test]
@@ -5101,7 +5101,7 @@ baz
let expected = r##"foo bar baz
foo
foo bar baz
foo\bar`
foo`bar
foo `` bar
*foo*
[not a link](/foo)
<a href="">`
<https://foo.bar.baz>`
```foo``
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5234,7 +5234,7 @@ fn spec_test_348() { let expected = r##"`foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5244,7 +5244,7 @@ fn spec_test_349() { let expected = r##"`foobar
foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5264,7 +5264,7 @@ fn spec_test_351() { let expected = r##"a * foo bar*
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5274,7 +5274,7 @@ fn spec_test_352() { let expected = r##"a*"foo"*
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5284,7 +5284,7 @@ fn spec_test_353() { let expected = r##"* a *
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5300,7 +5300,7 @@ fn spec_test_354() {*€*charlie.
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5310,7 +5310,7 @@ fn spec_test_355() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5320,7 +5320,7 @@ fn spec_test_356() { let expected = r##"5678
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5330,7 +5330,7 @@ fn spec_test_357() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5340,7 +5340,7 @@ fn spec_test_358() { let expected = r##"_ foo bar_
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5350,7 +5350,7 @@ fn spec_test_359() { let expected = r##"a_"foo"_
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5360,7 +5360,7 @@ fn spec_test_360() { let expected = r##"foo_bar_
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5370,7 +5370,7 @@ fn spec_test_361() { let expected = r##"5_6_78
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5380,7 +5380,7 @@ fn spec_test_362() { let expected = r##"пристаням_стремятся_
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5390,7 +5390,7 @@ fn spec_test_363() { let expected = r##"aa_"bb"_cc
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5400,7 +5400,7 @@ fn spec_test_364() { let expected = r##"foo-(bar)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5410,7 +5410,7 @@ fn spec_test_365() { let expected = r##"_foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5420,7 +5420,7 @@ fn spec_test_366() { let expected = r##"*foo bar *
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5432,7 +5432,7 @@ fn spec_test_367() { * "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5442,7 +5442,7 @@ fn spec_test_368() { let expected = r##"*(*foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5452,7 +5452,7 @@ fn spec_test_369() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5462,7 +5462,7 @@ fn spec_test_370() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5472,7 +5472,7 @@ fn spec_test_371() { let expected = r##"_foo bar _
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5482,7 +5482,7 @@ fn spec_test_372() { let expected = r##"_(_foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5492,7 +5492,7 @@ fn spec_test_373() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5502,7 +5502,7 @@ fn spec_test_374() { let expected = r##"_foo_bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5512,7 +5512,7 @@ fn spec_test_375() { let expected = r##"_пристаням_стремятся
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5522,7 +5522,7 @@ fn spec_test_376() { let expected = r##"foo_bar_baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5532,7 +5532,7 @@ fn spec_test_377() { let expected = r##"(bar).
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5542,7 +5542,7 @@ fn spec_test_378() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5552,7 +5552,7 @@ fn spec_test_379() { let expected = r##"** foo bar**
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5562,7 +5562,7 @@ fn spec_test_380() { let expected = r##"a**"foo"**
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5572,7 +5572,7 @@ fn spec_test_381() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5582,7 +5582,7 @@ fn spec_test_382() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5592,7 +5592,7 @@ fn spec_test_383() { let expected = r##"__ foo bar__
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5604,7 +5604,7 @@ foo bar__ foo bar__ "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5614,7 +5614,7 @@ fn spec_test_385() { let expected = r##"a__"foo"__
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5624,7 +5624,7 @@ fn spec_test_386() { let expected = r##"foo__bar__
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5634,7 +5634,7 @@ fn spec_test_387() { let expected = r##"5__6__78
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5644,7 +5644,7 @@ fn spec_test_388() { let expected = r##"пристаням__стремятся__
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5654,7 +5654,7 @@ fn spec_test_389() { let expected = r##"foo, bar, baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5664,7 +5664,7 @@ fn spec_test_390() { let expected = r##"foo-(bar)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5674,7 +5674,7 @@ fn spec_test_391() { let expected = r##"**foo bar **
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5684,7 +5684,7 @@ fn spec_test_392() { let expected = r##"**(**foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5694,7 +5694,7 @@ fn spec_test_393() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5706,7 +5706,7 @@ fn spec_test_394() { Asclepias physocarpa) "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5716,7 +5716,7 @@ fn spec_test_395() { let expected = r##"foo "bar" foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5726,7 +5726,7 @@ fn spec_test_396() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5736,7 +5736,7 @@ fn spec_test_397() { let expected = r##"__foo bar __
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5746,7 +5746,7 @@ fn spec_test_398() { let expected = r##"__(__foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5756,7 +5756,7 @@ fn spec_test_399() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5766,7 +5766,7 @@ fn spec_test_400() { let expected = r##"__foo__bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5776,7 +5776,7 @@ fn spec_test_401() { let expected = r##"__пристаням__стремятся
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5786,7 +5786,7 @@ fn spec_test_402() { let expected = r##"foo__bar__baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5796,7 +5796,7 @@ fn spec_test_403() { let expected = r##"(bar).
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5806,7 +5806,7 @@ fn spec_test_404() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5818,7 +5818,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5828,7 +5828,7 @@ fn spec_test_406() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5838,7 +5838,7 @@ fn spec_test_407() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5848,7 +5848,7 @@ fn spec_test_408() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5858,7 +5858,7 @@ fn spec_test_409() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5868,7 +5868,7 @@ fn spec_test_410() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5878,7 +5878,7 @@ fn spec_test_411() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5888,7 +5888,7 @@ fn spec_test_412() { let expected = r##"foo**bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5898,7 +5898,7 @@ fn spec_test_413() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5908,7 +5908,7 @@ fn spec_test_414() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5918,7 +5918,7 @@ fn spec_test_415() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5928,7 +5928,7 @@ fn spec_test_416() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5938,7 +5938,7 @@ fn spec_test_417() { let expected = r##"foobar***baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5948,7 +5948,7 @@ fn spec_test_418() { let expected = r##"foo bar baz bim bop
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5958,7 +5958,7 @@ fn spec_test_419() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5968,7 +5968,7 @@ fn spec_test_420() { let expected = r##"** is not an empty emphasis
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5978,7 +5978,7 @@ fn spec_test_421() { let expected = r##"**** is not an empty strong emphasis
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -5988,7 +5988,7 @@ fn spec_test_422() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6000,7 +6000,7 @@ bar** bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6010,7 +6010,7 @@ fn spec_test_424() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6020,7 +6020,7 @@ fn spec_test_425() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6030,7 +6030,7 @@ fn spec_test_426() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6040,7 +6040,7 @@ fn spec_test_427() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6050,7 +6050,7 @@ fn spec_test_428() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6060,7 +6060,7 @@ fn spec_test_429() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6070,7 +6070,7 @@ fn spec_test_430() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6080,7 +6080,7 @@ fn spec_test_431() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6092,7 +6092,7 @@ bim* bop** bim bop "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6102,7 +6102,7 @@ fn spec_test_433() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6112,7 +6112,7 @@ fn spec_test_434() { let expected = r##"__ is not an empty emphasis
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6122,7 +6122,7 @@ fn spec_test_435() { let expected = r##"____ is not an empty strong emphasis
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6132,7 +6132,7 @@ fn spec_test_436() { let expected = r##"foo ***
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6142,7 +6142,7 @@ fn spec_test_437() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6152,7 +6152,7 @@ fn spec_test_438() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6162,7 +6162,7 @@ fn spec_test_439() { let expected = r##"foo *****
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6172,7 +6172,7 @@ fn spec_test_440() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6182,7 +6182,7 @@ fn spec_test_441() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6192,7 +6192,7 @@ fn spec_test_442() { let expected = r##"*foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6202,7 +6202,7 @@ fn spec_test_443() { let expected = r##"foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6212,7 +6212,7 @@ fn spec_test_444() { let expected = r##"*foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6222,7 +6222,7 @@ fn spec_test_445() { let expected = r##"***foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6232,7 +6232,7 @@ fn spec_test_446() { let expected = r##"foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6242,7 +6242,7 @@ fn spec_test_447() { let expected = r##"foo***
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6252,7 +6252,7 @@ fn spec_test_448() { let expected = r##"foo ___
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6262,7 +6262,7 @@ fn spec_test_449() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6272,7 +6272,7 @@ fn spec_test_450() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6282,7 +6282,7 @@ fn spec_test_451() { let expected = r##"foo _____
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6292,7 +6292,7 @@ fn spec_test_452() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6302,7 +6302,7 @@ fn spec_test_453() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6312,7 +6312,7 @@ fn spec_test_454() { let expected = r##"_foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6322,7 +6322,7 @@ fn spec_test_455() { let expected = r##"foo_
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6332,7 +6332,7 @@ fn spec_test_456() { let expected = r##"_foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6342,7 +6342,7 @@ fn spec_test_457() { let expected = r##"___foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6352,7 +6352,7 @@ fn spec_test_458() { let expected = r##"foo_
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6362,7 +6362,7 @@ fn spec_test_459() { let expected = r##"foo___
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6372,7 +6372,7 @@ fn spec_test_460() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6382,7 +6382,7 @@ fn spec_test_461() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6392,7 +6392,7 @@ fn spec_test_462() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6402,7 +6402,7 @@ fn spec_test_463() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6412,7 +6412,7 @@ fn spec_test_464() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6422,7 +6422,7 @@ fn spec_test_465() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6432,7 +6432,7 @@ fn spec_test_466() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6442,7 +6442,7 @@ fn spec_test_467() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6452,7 +6452,7 @@ fn spec_test_468() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6462,7 +6462,7 @@ fn spec_test_469() { let expected = r##"foo _bar baz_
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6472,7 +6472,7 @@ fn spec_test_470() { let expected = r##"foo bar *baz bim bam
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6482,7 +6482,7 @@ fn spec_test_471() { let expected = r##"**foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6492,7 +6492,7 @@ fn spec_test_472() { let expected = r##"*foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6502,7 +6502,7 @@ fn spec_test_473() { let expected = r##"*bar*
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6512,7 +6512,7 @@ fn spec_test_474() { let expected = r##"_foo bar_
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6522,7 +6522,7 @@ fn spec_test_475() { let expected = r##"*
a *
a _
[link](/my uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6662,7 +6662,7 @@ fn spec_test_489() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6674,7 +6674,7 @@ bar) bar) "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6686,7 +6686,7 @@ bar>) bar>) "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6696,7 +6696,7 @@ fn spec_test_492() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6706,7 +6706,7 @@ fn spec_test_493() { let expected = r##"[link](<foo>)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6720,7 +6720,7 @@ fn spec_test_494() { [a](c) "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6730,7 +6730,7 @@ fn spec_test_495() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6740,7 +6740,7 @@ fn spec_test_496() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6750,7 +6750,7 @@ fn spec_test_497() { let expected = r##"[link](foo(and(bar))
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6760,7 +6760,7 @@ fn spec_test_498() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6770,7 +6770,7 @@ fn spec_test_499() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6780,7 +6780,7 @@ fn spec_test_500() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6796,7 +6796,7 @@ fn spec_test_501() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6806,7 +6806,7 @@ fn spec_test_502() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6816,7 +6816,7 @@ fn spec_test_503() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6826,7 +6826,7 @@ fn spec_test_504() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6840,7 +6840,7 @@ fn spec_test_505() { link "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6850,7 +6850,7 @@ fn spec_test_506() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6860,7 +6860,7 @@ fn spec_test_507() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6870,7 +6870,7 @@ fn spec_test_508() { let expected = r##"[link](/url "title "and" title")
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6880,7 +6880,7 @@ fn spec_test_509() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6891,7 +6891,7 @@ fn spec_test_510() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6901,7 +6901,7 @@ fn spec_test_511() { let expected = r##"[link] (/uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6911,7 +6911,7 @@ fn spec_test_512() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6921,7 +6921,7 @@ fn spec_test_513() { let expected = r##"[link] bar](/uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6931,7 +6931,7 @@ fn spec_test_514() { let expected = r##"[link bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6941,7 +6941,7 @@ fn spec_test_515() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6951,7 +6951,7 @@ fn spec_test_516() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6961,7 +6961,7 @@ fn spec_test_517() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6971,7 +6971,7 @@ fn spec_test_518() { let expected = r##"[foo bar](/uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6981,7 +6981,7 @@ fn spec_test_519() { let expected = r##"[foo [bar baz](/uri)](/uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -6991,7 +6991,7 @@ fn spec_test_520() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7011,7 +7011,7 @@ fn spec_test_522() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7021,7 +7021,7 @@ fn spec_test_523() { let expected = r##"foo [bar baz]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7031,7 +7031,7 @@ fn spec_test_524() { let expected = r##"[foo
[foo](/uri)
[foohttps://example.com/?search=](uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7063,7 +7063,7 @@ fn spec_test_527() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7075,7 +7075,7 @@ fn spec_test_528() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7087,7 +7087,7 @@ fn spec_test_529() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7099,7 +7099,7 @@ fn spec_test_530() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7111,7 +7111,7 @@ fn spec_test_531() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7123,7 +7123,7 @@ fn spec_test_532() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7135,7 +7135,7 @@ fn spec_test_533() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7147,7 +7147,7 @@ fn spec_test_534() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7159,7 +7159,7 @@ fn spec_test_535() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7171,7 +7171,7 @@ fn spec_test_536() { let expected = r##"[foo
[foo][ref]
[foohttps://example.com/?search=][ref]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7207,7 +7207,7 @@ fn spec_test_539() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7219,7 +7219,7 @@ fn spec_test_540() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7232,7 +7232,7 @@ fn spec_test_541() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7244,7 +7244,7 @@ fn spec_test_542() { let expected = r##"[foo] bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7258,7 +7258,7 @@ fn spec_test_543() { bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7272,7 +7272,7 @@ fn spec_test_544() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7284,7 +7284,7 @@ fn spec_test_545() { let expected = r##"[bar][foo!]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7297,7 +7297,7 @@ fn spec_test_546() {[ref[]: /uri
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7310,7 +7310,7 @@ fn spec_test_547() {[ref[bar]]: /uri
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7323,7 +7323,7 @@ fn spec_test_548() {[[[foo]]]: /url
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7335,7 +7335,7 @@ fn spec_test_549() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7347,7 +7347,7 @@ fn spec_test_550() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7360,7 +7360,7 @@ fn spec_test_551() {[]: /uri
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7377,7 +7377,7 @@ fn spec_test_552() { ]: /uri "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7389,7 +7389,7 @@ fn spec_test_553() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7401,7 +7401,7 @@ fn spec_test_554() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7413,7 +7413,7 @@ fn spec_test_555() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7427,7 +7427,7 @@ fn spec_test_556() { [] "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7439,7 +7439,7 @@ fn spec_test_557() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7451,7 +7451,7 @@ fn spec_test_558() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7463,7 +7463,7 @@ fn spec_test_559() { let expected = r##"[foo bar]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7475,7 +7475,7 @@ fn spec_test_560() { let expected = r##"[[bar foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7487,7 +7487,7 @@ fn spec_test_561() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7499,7 +7499,7 @@ fn spec_test_562() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7511,7 +7511,7 @@ fn spec_test_563() { let expected = r##"[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7523,7 +7523,7 @@ fn spec_test_564() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7536,7 +7536,7 @@ fn spec_test_565() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7548,7 +7548,7 @@ fn spec_test_566() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7560,7 +7560,7 @@ fn spec_test_567() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7572,7 +7572,7 @@ fn spec_test_568() { let expected = r##"foo(not a link)
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7584,7 +7584,7 @@ fn spec_test_569() { let expected = r##"[foo]bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7597,7 +7597,7 @@ fn spec_test_570() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7610,7 +7610,7 @@ fn spec_test_571() { let expected = r##"[foo]bar
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7620,7 +7620,7 @@ fn spec_test_572() { let expected = r##"



My 
[[foo]]: /url "title"
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7839,7 +7839,7 @@ fn spec_test_591() { let expected = r##"![foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7863,7 +7863,7 @@ fn spec_test_593() { let expected = r##"!foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7873,7 +7873,7 @@ fn spec_test_594() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7883,7 +7883,7 @@ fn spec_test_595() { let expected = r##"https://foo.bar.baz/test?q=hello&id=22&boolean
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7893,7 +7893,7 @@ fn spec_test_596() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7903,7 +7903,7 @@ fn spec_test_597() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7913,7 +7913,7 @@ fn spec_test_598() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7923,7 +7923,7 @@ fn spec_test_599() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7933,7 +7933,7 @@ fn spec_test_600() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7943,7 +7943,7 @@ fn spec_test_601() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7953,7 +7953,7 @@ fn spec_test_602() { let expected = r##"<https://foo.bar/baz bim>
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7963,7 +7963,7 @@ fn spec_test_603() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7973,7 +7973,7 @@ fn spec_test_604() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7983,7 +7983,7 @@ fn spec_test_605() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -7993,7 +7993,7 @@ fn spec_test_606() { let expected = r##"<foo+@bar.example.com>
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8003,7 +8003,7 @@ fn spec_test_607() { let expected = r##"<>
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8013,7 +8013,7 @@ fn spec_test_608() { let expected = r##"< https://foo.bar >
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8023,7 +8023,7 @@ fn spec_test_609() { let expected = r##"<m:abc>
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8033,7 +8033,7 @@ fn spec_test_610() { let expected = r##"<foo.bar.baz>
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8043,7 +8043,7 @@ fn spec_test_611() { let expected = r##"https://example.com
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8053,7 +8053,7 @@ fn spec_test_612() { let expected = r##"foo@bar.example.com
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8063,7 +8063,7 @@ fn spec_test_613() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8073,7 +8073,7 @@ fn spec_test_614() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8085,7 +8085,7 @@ data="foo" > data="foo" > "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8097,7 +8097,7 @@ _boolean zoop:33=zoop:33 /> _boolean zoop:33=zoop:33 /> "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8107,7 +8107,7 @@ fn spec_test_617() { let expected = r##"Foo
<33> <__>
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8127,7 +8127,7 @@ fn spec_test_619() { let expected = r##"<a h*#ref="hi">
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8137,7 +8137,7 @@ fn spec_test_620() { let expected = r##"<a href="hi'> <a href=hi'>
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8153,7 +8153,7 @@ foo><bar/ > bim!bop /> "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8163,7 +8163,7 @@ fn spec_test_622() { let expected = r##"<a href='bar'title=title>
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8173,7 +8173,7 @@ fn spec_test_623() { let expected = r##"</a href="foo">
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8195,7 +8195,7 @@ comment - with hyphens --> comment - with hyphens --> "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8208,7 +8208,7 @@ foo foo -->foo foo -->
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8218,7 +8218,7 @@ fn spec_test_627() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8228,7 +8228,7 @@ fn spec_test_628() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8238,7 +8238,7 @@ fn spec_test_629() { let expected = r##"foo &<]]>
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8248,7 +8248,7 @@ fn spec_test_630() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8258,7 +8258,7 @@ fn spec_test_631() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8268,7 +8268,7 @@ fn spec_test_632() { let expected = r##"<a href=""">
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8280,7 +8280,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8292,7 +8292,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8304,7 +8304,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8316,7 +8316,7 @@ fn spec_test_636() { bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8328,7 +8328,7 @@ fn spec_test_637() { bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8340,7 +8340,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8352,7 +8352,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8363,7 +8363,7 @@ span` let expected = r##"code span
code\ span
foo\
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8418,7 +8418,7 @@ fn spec_test_645() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8428,7 +8428,7 @@ fn spec_test_646() { let expected = r##"hello $.;'there
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8482,7 +8482,7 @@ fn spec_test_651() { let expected = r##"Foo χρῆν
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -8492,5 +8492,5 @@ fn spec_test_652() { let expected = r##"Multiple spaces
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/strikethrough.rs b/pulldown-cmark/tests/suite/strikethrough.rs index ae672a09..3f2bd93f 100644 --- a/pulldown-cmark/tests/suite/strikethrough.rs +++ b/pulldown-cmark/tests/suite/strikethrough.rs @@ -10,7 +10,7 @@ fn strikethrough_test_1() { let expected = r##"This is stricken out
This is ~~stricken
Thisisstricken
Thisisstricken
Here I strike out an exclamation point!.
This is stricken out
This is ~stricken
This~is~nothing
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -90,7 +90,7 @@ fn strikethrough_test_9() { let expected = r##"This~is~nothing
Here I fail to strike out an exclamation point~!~.
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -110,7 +110,7 @@ fn strikethrough_test_11() { let expected = r##"Here I fail to strike out a tilde ~~~.
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -120,7 +120,7 @@ fn strikethrough_test_12() { let expected = r##"Here I fail to match up ~~tildes~.
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -130,7 +130,7 @@ fn strikethrough_test_13() { let expected = r##"Here I fail to match up ~tildes~~.
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -140,7 +140,7 @@ fn strikethrough_test_14() { let expected = r##"This ~is stricken.
This ~~is stricken.
This is super This is sub
"##; - test_markdown_html(original, expected, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, true, false, false); } #[test] @@ -20,7 +20,7 @@ fn super_sub_test_2() { let expected = r##"This is stricken out
"##; - test_markdown_html(original, expected, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, true, false, false); } #[test] @@ -30,7 +30,7 @@ fn super_sub_test_3() { let expected = r##"This is ~stricken
"##; - test_markdown_html(original, expected, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, true, false, false); } #[test] @@ -40,7 +40,7 @@ fn super_sub_test_4() { let expected = r##"This~is~nothing
"##; - test_markdown_html(original, expected, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, true, false, false); } #[test] @@ -50,7 +50,7 @@ fn super_sub_test_5() { let expected = r##"This ~~is stricken.
"##; - test_markdown_html(original, expected, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, true, false, false); } #[test] @@ -60,5 +60,5 @@ fn super_sub_test_6() { let expected = r##"This ~~is stricken but this is not~~
"##; - test_markdown_html(original, expected, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, true, false, false); } diff --git a/pulldown-cmark/tests/suite/table.rs b/pulldown-cmark/tests/suite/table.rs index aa46bca7..3e6eee04 100644 --- a/pulldown-cmark/tests/suite/table.rs +++ b/pulldown-cmark/tests/suite/table.rs @@ -11,7 +11,7 @@ fn table_test_1() { let expected = r##"b
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -316,7 +316,7 @@ fn table_test_14() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -332,7 +332,7 @@ fn table_test_15() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -348,7 +348,7 @@ fn table_test_16() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -398,7 +398,7 @@ fn table_test_17() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -436,7 +436,7 @@ fn table_test_18() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -466,7 +466,7 @@ fn table_test_19() { | Not | Enough | "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -480,7 +480,7 @@ fn table_test_20() {|
"##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -494,7 +494,7 @@ fn table_test_21() { | Table | Body | "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -516,7 +516,7 @@ fn table_test_22() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -542,7 +542,7 @@ fn table_test_23() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -564,7 +564,7 @@ A: Interrupting —? "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -578,7 +578,7 @@ fn table_test_25() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -592,7 +592,7 @@ fn table_test_26() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -610,7 +610,7 @@ moo | moo "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } #[test] @@ -628,5 +628,5 @@ moo | moo "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/wikilinks.rs b/pulldown-cmark/tests/suite/wikilinks.rs index 89566e89..e557d1d3 100644 --- a/pulldown-cmark/tests/suite/wikilinks.rs +++ b/pulldown-cmark/tests/suite/wikilinks.rs @@ -10,7 +10,7 @@ fn wikilinks_test_1() { let expected = r##"This is a WikiLink.
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -20,7 +20,7 @@ fn wikilinks_test_2() { let expected = r##"This is a Main/WikiLink.
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -32,7 +32,7 @@ fn wikilinks_test_3() { let expected = r##"This is Ambiguous.
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -49,7 +49,7 @@ fn wikilinks_test_4() { "##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -59,7 +59,7 @@ fn wikilinks_test_5() { let expected = r##"This is [also Ambiguous](https://example.com/).
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -72,7 +72,7 @@ fn wikilinks_test_6() { "##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -82,7 +82,7 @@ fn wikilinks_test_7() { let expected = r##"This is a pothole.
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -92,7 +92,7 @@ fn wikilinks_test_8() { let expected = r##"This is a WikiLink.
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -102,7 +102,7 @@ fn wikilinks_test_9() { let expected = r##"This is a strong pothole.
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -117,7 +117,7 @@ fn wikilinks_test_10() { "##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -127,7 +127,7 @@ fn wikilinks_test_11() { let expected = r##"[[WikiLink|Fish]]
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -137,7 +137,7 @@ fn wikilinks_test_12() { let expected = r##"[[WikiLink|cat]]
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -152,7 +152,7 @@ fn wikilinks_test_13() { "##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -162,7 +162,7 @@ fn wikilinks_test_14() { let expected = r##"
]] [[]] [[|]] [[|Symbol]] [[
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -182,7 +182,7 @@ fn wikilinks_test_16() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -192,7 +192,7 @@ fn wikilinks_test_17() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -202,7 +202,7 @@ fn wikilinks_test_18() { let expected = r##"[[code]]
emphasis **cross over** here
"##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -222,7 +222,7 @@ fn wikilinks_test_20() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } #[test] @@ -232,5 +232,5 @@ fn wikilinks_test_21() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, true, false); } From edee73b7b81b7888c942c6835b5b9a4ab9456f51 Mon Sep 17 00:00:00 2001 From: Michael Howell` start after four-space blank line --- pulldown-cmark/specs/definition_lists.txt | 12 ++++++++++++ pulldown-cmark/specs/regression.txt | 12 ++++++++++++ pulldown-cmark/src/firstpass.rs | 5 +++-- pulldown-cmark/tests/suite/definition_lists.rs | 18 +++++++++++++++--- pulldown-cmark/tests/suite/regression.rs | 12 ++++++++++++ 5 files changed, 54 insertions(+), 5 deletions(-) diff --git a/pulldown-cmark/specs/definition_lists.txt b/pulldown-cmark/specs/definition_lists.txt index 11556f20..c9a079f5 100644 --- a/pulldown-cmark/specs/definition_lists.txt +++ b/pulldown-cmark/specs/definition_lists.txt @@ -673,3 +673,15 @@ level three
:
+```````````````````````````````` diff --git a/pulldown-cmark/specs/regression.txt b/pulldown-cmark/specs/regression.txt index 01f83659..855ab646 100644 --- a/pulldown-cmark/specs/regression.txt +++ b/pulldown-cmark/specs/regression.txt @@ -2824,3 +2824,15 @@ https://github.com/pulldown-cmark/pulldown-cmark/issues/999 ```````````````````````````````` + +https://github.com/pulldown-cmark/pulldown-cmark/issues/997 + +Link refdef split from paragraph with line with spaces. + +```````````````````````````````` example +[a]: /url + +: +. +:
+```````````````````````````````` diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs index fc8abed6..8994a272 100644 --- a/pulldown-cmark/src/firstpass.rs +++ b/pulldown-cmark/src/firstpass.rs @@ -421,12 +421,13 @@ impl<'a, 'b> FirstPass<'a, 'b> { let mut line_start = LineStart::new(bytes); let tree_position = scan_containers(&self.tree, &mut line_start, self.options); let current_container = tree_position == self.tree.spine_len(); - if !line_start.scan_space(4) + if (!line_start.scan_space(4) && self.scan_paragraph_interrupt( &bytes[line_start.bytes_scanned()..], current_container, tree_position, - ) + )) + || scan_blank_line(&bytes[line_start.bytes_scanned()..]).is_some() { None } else { diff --git a/pulldown-cmark/tests/suite/definition_lists.rs b/pulldown-cmark/tests/suite/definition_lists.rs index 31cac39a..a3437862 100644 --- a/pulldown-cmark/tests/suite/definition_lists.rs +++ b/pulldown-cmark/tests/suite/definition_lists.rs @@ -300,7 +300,7 @@ chili's "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, true); } #[test] @@ -320,7 +320,7 @@ pomegranate "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, true); } #[test] @@ -621,7 +621,7 @@ fn definition_lists_test_26() { "##; - test_markdown_html(original, expected, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, true); } #[test] @@ -724,3 +724,15 @@ level three test_markdown_html(original, expected, false, false, false, false, false, true); } + +#[test] +fn definition_lists_test_31() { + let original = r##"[a]: /url + +: +"##; + let expected = r##":
+"##; + + test_markdown_html(original, expected, false, false, false, false, false, true); +} diff --git a/pulldown-cmark/tests/suite/regression.rs b/pulldown-cmark/tests/suite/regression.rs index dca508a4..12e98f53 100644 --- a/pulldown-cmark/tests/suite/regression.rs +++ b/pulldown-cmark/tests/suite/regression.rs @@ -3367,3 +3367,15 @@ fn regression_test_210() { test_markdown_html(original, expected, false, false, false, false, true, false); } + +#[test] +fn regression_test_211() { + let original = r##"[a]: /url + +: +"##; + let expected = r##":
+"##; + + test_markdown_html(original, expected, false, false, false, false, false, false); +} From 478a2ce7d08960d5b68cdc0e9c56647c082bc76a Mon Sep 17 00:00:00 2001 From: Michael HowellThis~is~nothing
+Thisisnothing
```````````````````````````````` ```````````````````````````````` example_super_sub -~This ~~is stricken.~ +~This ~~is not stricken.~ . -This ~~is stricken.
+This ~~is not stricken.
+```````````````````````````````` + +```````````````````````````````` example_super_sub +~~This ~is~~ stricken.~ +. +This ~is stricken.~
This ~~is stricken but this is not~~
```````````````````````````````` + +Though strikethrough requires left and right flanking, subscript does not. +Neither does superscript. + +```````````````````````````````` example_super_sub +H~2~O + +y=x^2^a+xb+c +. +H2O
+y=x2a+xb+c
+```````````````````````````````` diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs index 8994a272..31eae05a 100644 --- a/pulldown-cmark/src/firstpass.rs +++ b/pulldown-cmark/src/firstpass.rs @@ -925,6 +925,7 @@ impl<'a, 'b> FirstPass<'a, 'b> { count, ix - start, mode, + self.options, ); let can_close = delim_run_can_close( &self.text[start..], @@ -932,6 +933,7 @@ impl<'a, 'b> FirstPass<'a, 'b> { count, ix - start, mode, + self.options, ); let is_valid_seq = (c != b'~' || count <= 2) || (c == b'~' && count == 2); @@ -1176,14 +1178,21 @@ impl<'a, 'b> FirstPass<'a, 'b> { } c @ b'\'' | c @ b'"' => { let string_suffix = &self.text[ix..]; - let can_open = - delim_run_can_open(&self.text[start..], string_suffix, 1, ix - start, mode); + let can_open = delim_run_can_open( + &self.text[start..], + string_suffix, + 1, + ix - start, + mode, + self.options, + ); let can_close = delim_run_can_close( &self.text[start..], string_suffix, 1, ix - start, mode, + self.options, ); self.tree.append_text(begin_text, ix, backslash_escaped); @@ -2258,6 +2267,7 @@ fn delim_run_can_open( run_len: usize, ix: usize, mode: TableParseMode, + options: Options, ) -> bool { let next_char = if let Some(c) = suffix[run_len..].chars().next() { c @@ -2279,15 +2289,18 @@ fn delim_run_can_open( } } let delim = suffix.bytes().next().unwrap(); - // `*` and `~~` can be intraword, `_` and `~` cannot - if delim == b'*' && !is_punctuation(next_char) { + // `*`, `~~`, and `^` can be intraword, `~` can only be interword if it's subscript, `_` cannot + if (delim == b'*' || delim == b'^') && !is_punctuation(next_char) { return true; } if delim == b'~' && run_len > 1 { return true; } let prev_char = s[..ix].chars().last().unwrap(); - if delim == b'~' && prev_char == '~' && !is_punctuation(next_char) { + if delim == b'~' + && (prev_char == '~' || options.contains(Options::ENABLE_SUBSCRIPT)) + && !is_punctuation(next_char) + { return true; } @@ -2304,6 +2317,7 @@ fn delim_run_can_close( run_len: usize, ix: usize, mode: TableParseMode, + options: Options, ) -> bool { if ix == 0 { return false; @@ -2326,11 +2340,13 @@ fn delim_run_can_close( } } let delim = suffix.bytes().next().unwrap(); - // `*` and `~~` can be intraword, `_` and `~` cannot - if (delim == b'*' || (delim == b'~' && run_len > 1)) && !is_punctuation(prev_char) { + // `*`, `~~`, and `^` can be intraword, `~` can only be interword if it's subscript, `_` cannot + if (delim == b'*' || delim == b'^' || (delim == b'~' && run_len > 1)) + && !is_punctuation(prev_char) + { return true; } - if delim == b'~' && prev_char == '~' { + if delim == b'~' && (prev_char == '~' || options.contains(Options::ENABLE_SUBSCRIPT)) { return true; } diff --git a/pulldown-cmark/tests/suite/super_sub.rs b/pulldown-cmark/tests/suite/super_sub.rs index a9c0c84a..6c2492bf 100644 --- a/pulldown-cmark/tests/suite/super_sub.rs +++ b/pulldown-cmark/tests/suite/super_sub.rs @@ -37,7 +37,7 @@ fn super_sub_test_3() { fn super_sub_test_4() { let original = r##"~This~is~nothing~ "##; - let expected = r##"This~is~nothing
+ let expected = r##"Thisisnothing
"##; test_markdown_html(original, expected, false, false, false, true, false, false); @@ -45,9 +45,9 @@ fn super_sub_test_4() { #[test] fn super_sub_test_5() { - let original = r##"~This ~~is stricken.~ + let original = r##"~This ~~is not stricken.~ "##; - let expected = r##"This ~~is stricken.
+ let expected = r##"This ~~is not stricken.
"##; test_markdown_html(original, expected, false, false, false, true, false, false); @@ -55,6 +55,16 @@ fn super_sub_test_5() { #[test] fn super_sub_test_6() { + let original = r##"~~This ~is~~ stricken.~ +"##; + let expected = r##"This ~is stricken.~
This ~~is stricken but this is not~~
@@ -62,3 +72,16 @@ fn super_sub_test_6() { test_markdown_html(original, expected, false, false, false, true, false, false); } + +#[test] +fn super_sub_test_8() { + let original = r##"H~2~O + +y=x^2^a+xb+c +"##; + let expected = r##"H2O
+y=x2a+xb+c
+"##; + + test_markdown_html(original, expected, false, false, false, true, false, false); +} From 65b2b7695d0fa4f6ac36d831cd799dd69103261f Mon Sep 17 00:00:00 2001 From: Michael HowellH2O
y=x2a+xb+c
```````````````````````````````` + +Superscript and subscript cannot group with a different delimiter count. + +```````````````````````````````` example_super_sub +~foo~~ + +^bar^^ +. +~foo~~
+^bar^^
+```````````````````````````````` + +The lower bound of superscript and subscript are separate. +Emphasis example included for analogy. + +```````````````````````````````` example_super_sub +~foo^~^bar~ + +*foo_*_bar* +. +foo^^bar~
+foo__bar*
+```````````````````````````````` diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs index e3d9f2ae..a54709fb 100644 --- a/pulldown-cmark/src/parse.rs +++ b/pulldown-cmark/src/parse.rs @@ -1548,7 +1548,7 @@ struct InlineStack { // a strikethrough delimiter will never match with any element // in the stack with index smaller than // `lower_bounds[InlineStack::TILDES]`. - lower_bounds: [usize; 9], + lower_bounds: [usize; 10], } impl InlineStack { @@ -1560,6 +1560,7 @@ impl InlineStack { const ASTERISK_BASE: usize = 2; const TILDES: usize = 5; const UNDERSCORE_BASE: usize = 6; + const CIRCUMFLEXES: usize = 9; fn pop_all(&mut self, tree: &mut Tree~foo~~
+^bar^^
+"##; + + test_markdown_html(original, expected, false, false, false, true, false, false); +} + +#[test] +fn super_sub_test_10() { + let original = r##"~foo^~^bar~ + +*foo_*_bar* +"##; + let expected = r##"foo^^bar~
+foo__bar*
+"##; + + test_markdown_html(original, expected, false, false, false, true, false, false); +} From 71195c0cbf565a575317a06d1e81069f3702dfb8 Mon Sep 17 00:00:00 2001 From: Michael Howell+```````````````````````````````` + +```````````````````````````````` example_super_sub +::: spoiler Is this expandable? +Is this collapsable? +> Is this **bold**? +> Is this **bold**? +::: +**is this seperate and bold** +. +Is this bold? +Is this bold?
+++Is this expandable?
+Is this inside?
+
Is this collapsable?
++Is this bold? +Is this bold?
is this seperate and bold
+```````````````````````````````` + +```````````````````````````````` example_super_sub +::: spoiler Is this expandable? +Is this collapsable? +> Is this **bold**? +> Is this **bold**? +> ::: spoiler Is this expandable? +> Is this inside? +> ::: +::: +. +Is this collapsable?
++Is this bold? +Is this bold?
+++Is this expandable?
+Is this inside?
+
Is this collapsable?
++Is this bold? +Is this bold?
+++Is this expandable?
+Is this collapsable?
++Is this bold? +Is this bold?
is this seperate and bold
+```````````````````````````````` + +```````````````````````````````` example_super_sub +::: spoiler Is this expandable? +Is this collapsable? +::: +**is this seperate and bold** +. +Is this collapsable?
+is this seperate and bold
+```````````````````````````````` + +```````````````````````````````` example_super_sub +::: spoiler Is this expandable? +Is this collapsable? + +Is this **bold**? +::: +. +Is this collapsable?
+Is this bold?
+"),
}
}
+ Tag::SpoilerBlock(summary) => {
+ if !self.end_newline {
+ self.write_newline()?;
+ }
+ if summary.is_empty() {
+ self.write("")
+ } else {
+ self.write("")?;
+ escape_html(&mut self.writer, summary.as_ref())?;
+ self.write("
")
+ }
+ }
Tag::List(Some(1)) => {
if self.end_newline {
self.write("\n")
@@ -434,6 +446,9 @@ where
TagEnd::CodeBlock => {
self.write("
\n")?;
}
+ TagEnd::SpoilerBlock => {
+ self.write("\n")?;
+ }
TagEnd::List(true) => {
self.write("\n")?;
}
diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs
index fd40530b..aa1240ea 100644
--- a/pulldown-cmark/src/lib.rs
+++ b/pulldown-cmark/src/lib.rs
@@ -200,6 +200,7 @@ pub enum Tag<'a> {
BlockQuote(Option+"##; + + test_markdown_html(original, expected, false, false, false, true, false, false); +} + +#[test] +fn spoiler_test_2() { + let original = r##"::: spoiler Is this expandable? +Is this collapsable? +> Is this **bold**? +> Is this **bold**? +::: +**is this seperate and bold** +"##; + let expected = r##"Is this bold? +Is this bold?
+++Is this expandable?
+Is this inside?
+
Is this collapsable?
++Is this bold? +Is this bold?
is this seperate and bold
+"##; + + test_markdown_html(original, expected, false, false, false, true, false, false); +} + +#[test] +fn spoiler_test_3() { + let original = r##"::: spoiler Is this expandable? +Is this collapsable? +> Is this **bold**? +> Is this **bold**? +> ::: spoiler Is this expandable? +> Is this inside? +> ::: +::: +"##; + let expected = r##"Is this collapsable?
++Is this bold? +Is this bold?
+++Is this expandable?
+Is this inside?
+
Is this collapsable?
++Is this bold? +Is this bold?
+++Is this expandable?
+Is this collapsable?
++Is this bold? +Is this bold?
is this seperate and bold
+"##; + + test_markdown_html(original, expected, false, false, false, true, false, false); +} + +#[test] +fn spoiler_test_5() { + let original = r##"::: spoiler Is this expandable? +Is this collapsable? +::: +**is this seperate and bold** +"##; + let expected = r##"Is this collapsable?
+is this seperate and bold
+"##; + + test_markdown_html(original, expected, false, false, false, true, false, false); +} + +#[test] +fn spoiler_test_6() { + let original = r##"::: spoiler Is this expandable? +Is this collapsable? + +Is this **bold**? +::: +"##; + let expected = r##"Is this collapsable?
+Is this bold?
+is this seperate and bold
```````````````````````````````` -```````````````````````````````` example_super_sub +```````````````````````````````` example_spoiler ::: spoiler Is this expandable? Is this collapsable? > Is this **bold**? @@ -56,7 +56,7 @@ Is this bold? ```````````````````````````````` -```````````````````````````````` example_super_sub +```````````````````````````````` example_spoiler ::: spoiler Is this expandable? Is this collapsable? > Is this **bold**? @@ -85,7 +85,7 @@ Is this bold?is this seperate and bold
```````````````````````````````` -```````````````````````````````` example_super_sub +```````````````````````````````` example_spoiler ::: spoiler Is this expandable? Is this collapsable? ::: @@ -98,7 +98,7 @@ Is this collapsable?is this seperate and bold
```````````````````````````````` -```````````````````````````````` example_super_sub +```````````````````````````````` example_spoiler ::: spoiler Is this expandable? Is this collapsable? diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs index f8087f0a..56d7ec0c 100644 --- a/pulldown-cmark/src/lib.rs +++ b/pulldown-cmark/src/lib.rs @@ -757,6 +757,8 @@ bitflags::bitflags! { const ENABLE_SUBSCRIPT = 1 << 14; /// Obsidian-style Wikilinks. const ENABLE_WIKILINKS = 1 << 15; + /// Colon-style Spoilers. + const ENABLE_SPOILER = 1 << 16; } } diff --git a/pulldown-cmark/tests/lib.rs b/pulldown-cmark/tests/lib.rs index 47099273..a5ddab47 100644 --- a/pulldown-cmark/tests/lib.rs +++ b/pulldown-cmark/tests/lib.rs @@ -15,6 +15,7 @@ pub fn test_markdown_html( subscript: bool, wikilinks: bool, deflists: bool, + spoiler: bool, ) { let mut s = String::new(); @@ -47,6 +48,9 @@ pub fn test_markdown_html( if deflists { opts.insert(Options::ENABLE_DEFINITION_LIST); } + if spoiler { + opts.insert(Options::ENABLE_SPOILER); + } let p = Parser::new_ext(input, opts); pulldown_cmark::html::push_html(&mut s, p); diff --git a/pulldown-cmark/tests/suite/blockquotes_tags.rs b/pulldown-cmark/tests/suite/blockquotes_tags.rs index e3b8bbbf..bf337a63 100644 --- a/pulldown-cmark/tests/suite/blockquotes_tags.rs +++ b/pulldown-cmark/tests/suite/blockquotes_tags.rs @@ -10,7 +10,7 @@ fn blockquotes_tags_test_1() { let expected = r##""##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -21,7 +21,7 @@ fn blockquotes_tags_test_2() { let expected = r##"This is a normal blockquote without tag.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -32,7 +32,7 @@ fn blockquotes_tags_test_3() { let expected = r##"Note blockquote
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -43,7 +43,7 @@ fn blockquotes_tags_test_4() { let expected = r##"Tip blockquote
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -54,7 +54,7 @@ fn blockquotes_tags_test_5() { let expected = r##"Important blockquote
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -65,7 +65,7 @@ fn blockquotes_tags_test_6() { let expected = r##"Warning blockquote
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -75,7 +75,7 @@ fn blockquotes_tags_test_7() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -88,7 +88,7 @@ fn blockquotes_tags_test_8() { Line 2. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -103,7 +103,7 @@ fn blockquotes_tags_test_9() { Line 2. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -116,7 +116,7 @@ fn blockquotes_tags_test_10() { let expected = r##"Caution blockquote
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -131,7 +131,7 @@ fn blockquotes_tags_test_11() { let expected = r##"Line 1.
Line 2.
Line 1.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -144,7 +144,7 @@ fn blockquotes_tags_test_12() { Line 2. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -159,7 +159,7 @@ fn blockquotes_tags_test_13() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -174,7 +174,7 @@ fn blockquotes_tags_test_14() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -189,7 +189,7 @@ fn blockquotes_tags_test_15() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -216,7 +216,7 @@ sink ships "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -237,7 +237,7 @@ fn blockquotes_tags_test_17() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -251,5 +251,5 @@ This should be a normal block quote. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/definition_lists.rs b/pulldown-cmark/tests/suite/definition_lists.rs index a3437862..03d28e7c 100644 --- a/pulldown-cmark/tests/suite/definition_lists.rs +++ b/pulldown-cmark/tests/suite/definition_lists.rs @@ -19,7 +19,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -44,7 +44,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -61,7 +61,7 @@ fn definition_lists_test_3() { "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -80,7 +80,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -105,7 +105,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -144,7 +144,7 @@ crisp, pleasant to taste "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -166,7 +166,7 @@ fn definition_lists_test_7() { "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -189,7 +189,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -223,7 +223,7 @@ orange "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -261,7 +261,7 @@ fruit "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -300,7 +300,7 @@ chili's "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -320,7 +320,7 @@ pomegranate "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -341,7 +341,7 @@ c "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -363,7 +363,7 @@ bim "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -385,7 +385,7 @@ BlozeLine 2.
Bloze
"##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -400,7 +400,7 @@ BlozeBloze
"##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -417,7 +417,7 @@ BlozeBloze
"##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -460,7 +460,7 @@ bar : baz "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -506,7 +506,7 @@ fn definition_lists_test_19() { "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -521,7 +521,7 @@ fn definition_lists_test_20() { "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -543,7 +543,7 @@ Test|Table "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -556,7 +556,7 @@ fn definition_lists_test_22() {: first
"##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -576,7 +576,7 @@ My section: fourth
"##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -588,7 +588,7 @@ fn definition_lists_test_24() {: first
"##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -607,7 +607,7 @@ fn definition_lists_test_25() {: fourth
"##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -621,7 +621,7 @@ fn definition_lists_test_26() { "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -640,7 +640,7 @@ third "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -663,7 +663,7 @@ first : fourth "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -687,7 +687,7 @@ third "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -722,7 +722,7 @@ level three "##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -734,5 +734,5 @@ fn definition_lists_test_31() { let expected = r##":
"##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } diff --git a/pulldown-cmark/tests/suite/footnotes.rs b/pulldown-cmark/tests/suite/footnotes.rs index cc80392e..3cb08c5e 100644 --- a/pulldown-cmark/tests/suite/footnotes.rs +++ b/pulldown-cmark/tests/suite/footnotes.rs @@ -15,7 +15,7 @@ fn footnotes_test_1() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -34,7 +34,7 @@ Yes it goes on and on my friends. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -77,7 +77,7 @@ fn footnotes_test_4() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -114,7 +114,7 @@ fn footnotes_test_5() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -138,7 +138,7 @@ d "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -161,7 +161,7 @@ I had largely given over my inquiries into what Professor Angell called the "Cth "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -180,7 +180,7 @@ If a woodchuck could chuck wood.As such, we can guarantee that the non-childish forms of entertainment are probably more entertaining to adults, since, having had a whole childhood doing the childish ones, the non-childish ones are merely the ones that haven't gotten boring yet.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -277,7 +277,7 @@ fn footnotes_test_11() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -293,7 +293,7 @@ fn footnotes_test_12() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -312,7 +312,7 @@ fn footnotes_test_13() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -336,7 +336,7 @@ An unordered list before the footnotes: "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -393,7 +393,7 @@ Songs that simply loop are a popular way to annoy people. [^examples3] "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -431,7 +431,7 @@ test suite into pulldown-cmark should be fine.[otherlink1]: https://github.com/github/cmark-gfm/blob/1e230827a584ebc9938c3eadc5059c55ef3c9abf/test/extensions.txt#L702
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -456,7 +456,7 @@ fn main() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -470,7 +470,7 @@ fn footnotes_test_18() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -494,7 +494,7 @@ fn footnotes_test_19() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -556,7 +556,7 @@ Second 2 test "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -568,7 +568,7 @@ fn footnotes_test_21() { let expected = r##"Test ^ link
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -608,7 +608,7 @@ second fourth] "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -623,7 +623,7 @@ fn footnotes_test_23() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -644,7 +644,7 @@ footnote [^quux] "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -663,7 +663,7 @@ fn footnotes_test_25() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -682,5 +682,5 @@ fn footnotes_test_26() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/gfm_strikethrough.rs b/pulldown-cmark/tests/suite/gfm_strikethrough.rs index 23c332d8..e1a6504a 100644 --- a/pulldown-cmark/tests/suite/gfm_strikethrough.rs +++ b/pulldown-cmark/tests/suite/gfm_strikethrough.rs @@ -10,7 +10,7 @@ fn gfm_strikethrough_test_1() { let expected = r##"Hi Hello, there world!
new paragraph~~.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -33,5 +33,5 @@ fn gfm_strikethrough_test_3() { let expected = r##"This will ~~~not~~~ strike.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/gfm_table.rs b/pulldown-cmark/tests/suite/gfm_table.rs index 3be2ad9d..e8ef4973 100644 --- a/pulldown-cmark/tests/suite/gfm_table.rs +++ b/pulldown-cmark/tests/suite/gfm_table.rs @@ -25,7 +25,7 @@ fn gfm_table_test_1() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -50,7 +50,7 @@ bar | baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -77,7 +77,7 @@ fn gfm_table_test_3() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -106,7 +106,7 @@ fn gfm_table_test_4() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -139,7 +139,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -153,7 +153,7 @@ fn gfm_table_test_6() { | bar | "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -183,7 +183,7 @@ fn gfm_table_test_7() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -202,7 +202,7 @@ fn gfm_table_test_8() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -229,5 +229,5 @@ fn gfm_table_test_9() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/gfm_tasklist.rs b/pulldown-cmark/tests/suite/gfm_tasklist.rs index 00252509..c25fa465 100644 --- a/pulldown-cmark/tests/suite/gfm_tasklist.rs +++ b/pulldown-cmark/tests/suite/gfm_tasklist.rs @@ -16,7 +16,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -41,5 +41,5 @@ bim "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/heading_attrs.rs b/pulldown-cmark/tests/suite/heading_attrs.rs index 7047ce54..2336594b 100644 --- a/pulldown-cmark/tests/suite/heading_attrs.rs +++ b/pulldown-cmark/tests/suite/heading_attrs.rs @@ -20,7 +20,7 @@ multiple! {.myclass1 myattr #myh3 otherattr=value .myclass2}nextline
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -99,7 +99,7 @@ nextline {.class}](https://example.com/) {#myid3}
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -114,7 +114,7 @@ cont "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -133,7 +133,7 @@ fn heading_attrs_test_8() { } "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -145,7 +145,7 @@ fn heading_attrs_test_9() {#{}
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -545,7 +545,7 @@ fn heading_attrs_test_39() {\ may follow just after the first $: \{1, 2, 3\}
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -41,7 +41,7 @@ $$$$"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -57,7 +57,7 @@ $$x$$$$$$y$$
xy$$
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -82,7 +82,7 @@ $α$α
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -95,7 +95,7 @@ Dollar at end of line$Dollar at end of line$
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -112,7 +112,7 @@ $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -126,7 +126,7 @@ hard break either "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -139,7 +139,7 @@ $$y = \$ x$$y = \$ x
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -152,7 +152,7 @@ $$ $ $$$$ $ $$
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -162,7 +162,7 @@ fn math_test_11() { let expected = r##"alpha$betagamma$$delta
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -190,7 +190,7 @@ they should not allow inlines to do that $$2 + * "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -200,7 +200,7 @@ fn math_test_13() { let expected = r##"these are math texts: fooy=xbar and y=xbar and fooy=x bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -216,7 +216,7 @@ braces: ($x=y$) [$x=y$] {$x=y$}braces: (x=y) [x=y] {x=y}
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -226,7 +226,7 @@ fn math_test_15() { let expected = r##"x=y
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -245,7 +245,7 @@ $$a$$$$b$$ab
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -264,7 +264,7 @@ $$ Display `first $$ then` codeCode $$ first then $$ display
Math environment contains y: $x {$ $ } y
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -412,7 +412,7 @@ and expected to be as short as possible:\text{first $$ second}$$
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -434,7 +434,7 @@ $}$] $$$}$] $$
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -444,7 +444,7 @@ fn math_test_25() { let expected = r##"x `y`
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -486,7 +486,7 @@ b "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -500,7 +500,7 @@ fn math_test_27() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -523,7 +523,7 @@ A = 5 "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -536,7 +536,7 @@ $$aa<b "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -551,7 +551,7 @@ fn math_test_30() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -563,7 +563,7 @@ fn math_test_31() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -579,7 +579,7 @@ fn math_test_32() {1x
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -595,7 +595,7 @@ _$a$ equals $b$_a equals b
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -618,7 +618,7 @@ a "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -628,7 +628,7 @@ fn math_test_35() { let expected = r##"\{a\,b\}
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -644,7 +644,7 @@ ${a}_b c_{d}${a}_b c_{d}
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -656,7 +656,7 @@ $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -666,7 +666,7 @@ fn math_test_38() { let expected = r##"x = \$
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -676,7 +676,7 @@ fn math_test_39() { let expected = r##"Equation \Omega(69) in italic text
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -700,7 +700,7 @@ fn math_test_40() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -716,7 +716,7 @@ fn math_test_41() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -732,7 +732,7 @@ fn math_test_42() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -770,7 +770,7 @@ fn math_test_43() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -790,7 +790,7 @@ improperly }{ nested But this still isn't, because the braces are still counted: $}{$ "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -819,7 +819,7 @@ another improperly nested example }}}}}}}}}}}}}}}}}}}}}}}}}}}}}} "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -853,7 +853,7 @@ fn math_test_46() { {}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{ 255 brace pairs and one unclosed brace "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -915,5 +915,5 @@ fn math_test_47() { }}}}}}}}}}}}}}}{$ 255 close braces and one open brace "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/metadata_blocks.rs b/pulldown-cmark/tests/suite/metadata_blocks.rs index 93dbc885..aa27615c 100644 --- a/pulldown-cmark/tests/suite/metadata_blocks.rs +++ b/pulldown-cmark/tests/suite/metadata_blocks.rs @@ -12,7 +12,7 @@ another_field: 0 "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -26,7 +26,7 @@ another_field: 0 another_field: 0 "##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -38,7 +38,7 @@ fn metadata_blocks_test_3() {My paragraph here.
"##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -105,7 +105,7 @@ another_field: 0 another_field: 0 "##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -126,7 +126,7 @@ another_field: 0 ---a "##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -138,7 +138,7 @@ another_field: 0 "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -150,7 +150,7 @@ another_field: 0 "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -165,7 +165,7 @@ Things "##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -177,5 +177,5 @@ fn metadata_blocks_test_12() { "##; let expected = r##""##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/old_footnotes.rs b/pulldown-cmark/tests/suite/old_footnotes.rs index 316b236a..314610bb 100644 --- a/pulldown-cmark/tests/suite/old_footnotes.rs +++ b/pulldown-cmark/tests/suite/old_footnotes.rs @@ -15,7 +15,7 @@ fn old_footnotes_test_1() { "##; - test_markdown_html(original, expected, false, false, true, false, false, false); + test_markdown_html(original, expected, false, false, true, false, false, false, false); } #[test] @@ -34,7 +34,7 @@ Yes it goes on and on my friends. "##; - test_markdown_html(original, expected, false, false, true, false, false, false); + test_markdown_html(original, expected, false, false, true, false, false, false, false); } #[test] @@ -71,7 +71,7 @@ I had largely given over my inquiries into what Professor Angell called the "CthI had largely given over my inquiries into what Professor Angell called the "Cthulhu Cult", and was visiting a learned friend in Paterson, New Jersey; the curator of a local museum and a mineralogist of note. Examining one day the reserve specimens roughly set on the storage shelves in a rear room of the museum, my eye was caught by an odd picture in one of the old papers spread beneath the stones. It was the Sydney Bulletin I have mentioned, for my friend had wide affiliations in all conceivable foreign parts; and the picture was a half-tone cut of a hideous stone image almost identical with that which Legrasse had found in the swamp.
"##; - test_markdown_html(original, expected, false, false, true, false, false, false); + test_markdown_html(original, expected, false, false, true, false, false, false, false); } #[test] @@ -90,7 +90,7 @@ If a woodchuck could chuck wood.As such, we can guarantee that the non-childish forms of entertainment are probably more entertaining to adults, since, having had a whole childhood doing the childish ones, the non-childish ones are merely the ones that haven't gotten boring yet.
"##; - test_markdown_html(original, expected, false, false, true, false, false, false); + test_markdown_html(original, expected, false, false, true, false, false, false, false); } #[test] @@ -144,7 +144,7 @@ fn old_footnotes_test_7() { "##; - test_markdown_html(original, expected, false, false, true, false, false, false); + test_markdown_html(original, expected, false, false, true, false, false, false, false); } #[test] @@ -159,7 +159,7 @@ fn old_footnotes_test_8() {Common for people practicing music.
[Reference to footnotes A1, B2 and C3.
Footnote A.
Footnote B.
Footnote C.
see the many articles on QuickCheck.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -48,7 +48,7 @@ fn regression_test_3() {foo§(bar)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -89,7 +89,7 @@ fn regression_test_6() { let expected = r##"https://example.com hello
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -103,7 +103,7 @@ fn regression_test_7() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -130,7 +130,7 @@ fn regression_test_8() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -144,7 +144,7 @@ i8 let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -156,7 +156,7 @@ fn regression_test_10() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -168,7 +168,7 @@ fn regression_test_11() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -181,7 +181,7 @@ fn regression_test_12() {[a]: /url (title))
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -194,7 +194,7 @@ bb
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -205,7 +205,7 @@ foo let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -215,7 +215,7 @@ fn regression_test_15() { let expected = r##"`foo`
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -227,7 +227,7 @@ bar bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -240,7 +240,7 @@ fn regression_test_17() {1) bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -262,7 +262,7 @@ fn regression_test_18() {1)2)3)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -272,7 +272,7 @@ fn regression_test_19() { let expected = r##"[](<<>)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -282,7 +282,7 @@ fn regression_test_20() { let expected = r##"`foo``bar
\foo
YOLO
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -320,7 +320,7 @@ A | B foo | bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -334,7 +334,7 @@ foo|bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -348,7 +348,7 @@ foo|bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -358,7 +358,7 @@ fn regression_test_26() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -368,7 +368,7 @@ fn regression_test_27() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -378,7 +378,7 @@ fn regression_test_28() { let expected = r##"
some text
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -424,7 +424,7 @@ fn regression_test_31() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -439,7 +439,7 @@ x]: f
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -449,7 +449,7 @@ fn regression_test_33() { let expected = r##"[foo]:
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -464,7 +464,7 @@ fn regression_test_34() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -479,7 +479,7 @@ yolo | swagyolo | swag
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -489,7 +489,7 @@ fn regression_test_36() { let expected = r##"a
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -527,7 +527,7 @@ fn regression_test_39() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -537,7 +537,7 @@ fn regression_test_40() { let expected = r##"\|
Paragraph 2
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -560,7 +560,7 @@ fn regression_test_42() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -572,7 +572,7 @@ fn regression_test_43() { let expected = r##"| foo | bar |
|---|---|
| [a](< | url>) |
")
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -599,7 +599,7 @@ fn regression_test_45() {)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -612,7 +612,7 @@ fn regression_test_46() {")
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -622,7 +622,7 @@ fn regression_test_47() { let expected = r##"<http:// >
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -632,7 +632,7 @@ fn regression_test_48() { let expected = r##"<http://>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -651,7 +651,7 @@ fn regression_test_49() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -670,7 +670,7 @@ fn regression_test_50() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -680,7 +680,7 @@ fn regression_test_51() { let expected = r##"*hi_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -690,7 +690,7 @@ fn regression_test_52() { let expected = r##"email: john@example.com_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -704,7 +704,7 @@ bar">link "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -719,7 +719,7 @@ fn regression_test_54() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -735,7 +735,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -753,7 +753,7 @@ fn regression_test_56() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -770,7 +770,7 @@ fn regression_test_57() {[a b] [a > b]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -783,7 +783,7 @@ package`] let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -798,7 +798,7 @@ fn regression_test_59() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -811,7 +811,7 @@ fn regression_test_60() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -827,7 +827,7 @@ the size ofusize and have the same alignment.
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -851,7 +851,7 @@ An unordered list before the footnotes:
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -869,7 +869,7 @@ fn regression_test_63() {
<foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -942,7 +942,7 @@ lo"> "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -953,7 +953,7 @@ fn regression_test_67() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -975,7 +975,7 @@ a 2. a "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -991,7 +991,7 @@ fn regression_test_69() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1010,7 +1010,7 @@ barbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1029,7 +1029,7 @@ fn regression_test_71() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1041,7 +1041,7 @@ fn regression_test_72() { let expected = r##"[]]
foobar
foobar
emphasis strike strong strike emphasis strong
emphasis strike strong strike emphasis strong code
emphasis strike codestrike emphasis strong
emphasis strike codestrike emphasis strong code
strong strike emphasis strike emphasis strong
strong strike emphasis strike emphasis strong code
strong strike codestrike emphasis strong
strong strike codestrike emphasis strong code
b
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1353,7 +1353,7 @@ fn regression_test_89() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1367,7 +1367,7 @@ fn regression_test_90() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1379,7 +1379,7 @@ fn regression_test_91() {"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1451,7 +1451,7 @@ fn regression_test_97() { > not quote "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1463,7 +1463,7 @@ fn regression_test_98() {quote
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1475,7 +1475,7 @@ fn regression_test_99() { >not quote "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1494,7 +1494,7 @@ fn regression_test_100() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1504,7 +1504,7 @@ fn regression_test_101() { let expected = r##"quote
*R]-
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1514,7 +1514,7 @@ fn regression_test_102() { let expected = r##"foobarbaz**
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1528,7 +1528,7 @@ fn regression_test_103() { % "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1542,7 +1542,7 @@ fn regression_test_104() { % "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1552,7 +1552,7 @@ fn regression_test_105() { let expected = r##"<@1>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1566,7 +1566,7 @@ Things let expected = r##"Things
"##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -1581,7 +1581,7 @@ Things let expected = r##"Things
"##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -1595,7 +1595,7 @@ Things let expected = r##"Things
"##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -1619,7 +1619,7 @@ fn regression_test_109() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1634,7 +1634,7 @@ fn regression_test_110() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1644,7 +1644,7 @@ fn regression_test_111() { let expected = r##"j*5=
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1710,7 +1710,7 @@ Table "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1723,7 +1723,7 @@ fn regression_test_113() {[x]: (
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1745,7 +1745,7 @@ an unmatched asterisk. {{ "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1755,7 +1755,7 @@ fn regression_test_115() { let expected = r##"*a.*.a..
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1774,7 +1774,7 @@ _*xx-_-*xx--
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1803,7 +1803,7 @@ fn regression_test_117() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1832,7 +1832,7 @@ fn regression_test_118() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1845,7 +1845,7 @@ fn regression_test_119() {]: https://rust-lang.org
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1878,7 +1878,7 @@ fn regression_test_120() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1921,7 +1921,7 @@ The second hyphen should parse the same way in both samples. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1936,7 +1936,7 @@ https://rust-lang.org "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1949,7 +1949,7 @@ Second try]: https://rust-lang.orgSecond try]: https://rust-lang.org
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1972,7 +1972,7 @@ fn regression_test_124() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1984,7 +1984,7 @@ bar \bar \
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1998,7 +1998,7 @@ fn regression_test_126() {[third try]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2018,7 +2018,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2040,7 +2040,7 @@ fn regression_test_128() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2051,7 +2051,7 @@ fn regression_test_129() { let expected = r##"-
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2068,7 +2068,7 @@ foo) "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2085,7 +2085,7 @@ fn regression_test_131() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2104,7 +2104,7 @@ fn regression_test_132() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2125,7 +2125,7 @@ fn regression_test_133() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2136,7 +2136,7 @@ fn regression_test_134() { let expected = r##"- baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2154,7 +2154,7 @@ GFM footnotes can interrupt link defs if they have three spaces, but not four.GFM footnotes can interrupt link defs if they have three spaces, but not four.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2171,7 +2171,7 @@ Setext heading can interrupt link def if it has three spaces, but not four.Setext heading can interrupt link def if it has three spaces, but not four.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2191,7 +2191,7 @@ List can interrupt the paragraph at the start of a link definition if it startsList can interrupt the paragraph at the start of a link definition if it starts with three spaces, but not four.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2210,7 +2210,7 @@ second]second]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2228,7 +2228,7 @@ second] second "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2245,7 +2245,7 @@ fn regression_test_140() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2262,7 +2262,7 @@ fn regression_test_141() { ">first "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2281,7 +2281,7 @@ fn regression_test_142() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2300,7 +2300,7 @@ fn regression_test_143() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2319,7 +2319,7 @@ fn regression_test_144() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2336,7 +2336,7 @@ fn regression_test_145() { ">first "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2355,7 +2355,7 @@ fn regression_test_146() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2366,7 +2366,7 @@ fn regression_test_147() { let expected = r##"'foo'bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2382,7 +2382,7 @@ fn regression_test_148() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2398,7 +2398,7 @@ a]: https://example.com let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2419,7 +2419,7 @@ fn regression_test_150() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2441,7 +2441,7 @@ baz* "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2463,7 +2463,7 @@ baz` "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2485,7 +2485,7 @@ baz](https://example.com) "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2500,7 +2500,7 @@ part of the title' part of the title">mylink "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2517,7 +2517,7 @@ starts in column three. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2531,7 +2531,7 @@ fn regression_test_156() {This is not in the list at all. It's a paragraph after it.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2543,7 +2543,7 @@ fn regression_test_157() { let expected = r##"\!\"\#\$\%\& \!\"\#\$\%\& \!\"\#\$\%\&
Another paragraph whose spaces must be removed.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2583,7 +2583,7 @@ fn regression_test_160() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2598,7 +2598,7 @@ fn regression_test_161() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2608,7 +2608,7 @@ fn regression_test_162() { let expected = r##"� �
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2618,7 +2618,7 @@ fn regression_test_163() { let expected = r##"�
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2634,7 +2634,7 @@ t_ "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2650,7 +2650,7 @@ N* "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2661,7 +2661,7 @@ fn regression_test_166() { let expected = r##"[link]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2826,7 +2826,7 @@ fn regression_test_177() {[link]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2838,7 +2838,7 @@ fn regression_test_178() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2851,7 +2851,7 @@ fn regression_test_179() {[link]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2863,7 +2863,7 @@ fn regression_test_180() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2876,7 +2876,7 @@ fn regression_test_181() {[link]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2888,7 +2888,7 @@ fn regression_test_182() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2906,7 +2906,7 @@ fn regression_test_183() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2920,7 +2920,7 @@ test2test2
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2936,7 +2936,7 @@ test2 "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2953,7 +2953,7 @@ fn regression_test_186() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2973,7 +2973,7 @@ fn regression_test_187() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2986,7 +2986,7 @@ fn regression_test_188() {<!p>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2998,7 +2998,7 @@ fn regression_test_189() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3014,7 +3014,7 @@ junk "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3026,7 +3026,7 @@ fn regression_test_191() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3037,7 +3037,7 @@ fn regression_test_192() { let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3051,7 +3051,7 @@ fn regression_test_193() {
text ">link
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3069,7 +3069,7 @@ _**
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3084,7 +3084,7 @@ fn regression_test_195() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3097,7 +3097,7 @@ fn regression_test_196() {
bar
"##; - test_markdown_html(original, expected, false, true, false, false, false, false); + test_markdown_html(original, expected, false, true, false, false, false, false, false); } #[test] @@ -3151,7 +3151,7 @@ fn regression_test_200() { let expected = r##"
foobar_raz, not barfoo_raz
> Something is wrong!
"##; - test_markdown_html(original, expected, false, false, false, false, false, true); + test_markdown_html(original, expected, false, false, false, false, false, true, false); } #[test] @@ -3251,7 +3251,7 @@ stuff](https://example.com) "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3300,7 +3300,7 @@ fn regression_test_206() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3313,7 +3313,7 @@ fn regression_test_207() { > "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3323,7 +3323,7 @@ fn regression_test_208() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -3337,7 +3337,7 @@ fn regression_test_209() { "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -3365,7 +3365,7 @@ fn regression_test_210() { "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -3377,5 +3377,5 @@ fn regression_test_211() { let expected = r##":
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/smart_punct.rs b/pulldown-cmark/tests/suite/smart_punct.rs index 97f37c27..7823b476 100644 --- a/pulldown-cmark/tests/suite/smart_punct.rs +++ b/pulldown-cmark/tests/suite/smart_punct.rs @@ -12,7 +12,7 @@ fn smart_punct_test_1() { “‘Shelob’ is my name.” "##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -22,7 +22,7 @@ fn smart_punct_test_2() { let expected = r##"‘A’, ‘B’, and ‘C’ are letters.
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -34,7 +34,7 @@ So is 'pine.' So is ‘pine.’ "##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -44,7 +44,7 @@ fn smart_punct_test_4() { let expected = r##"‘He said, “I want to go.”’
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -54,7 +54,7 @@ fn smart_punct_test_5() { let expected = r##"Were you alive in the 70’s?
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -64,7 +64,7 @@ fn smart_punct_test_6() { let expected = r##"Here is some quoted ‘code’ and a “quoted link”.
’tis the season to be ‘jolly’
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -84,7 +84,7 @@ fn smart_punct_test_8() { let expected = r##"‘We’ll use Jane’s boat and John’s truck,’ Jenna said.
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -97,7 +97,7 @@ fn smart_punct_test_9() {“Second paragraph by same speaker, in fiction.”
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -107,7 +107,7 @@ fn smart_punct_test_10() { let expected = r##"[a]’s b’
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -121,7 +121,7 @@ This isn't either. 5'8" "##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -139,7 +139,7 @@ en – en 2–3 "##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -167,7 +167,7 @@ nine——— thirteen———––. "##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -177,7 +177,7 @@ fn smart_punct_test_14() { let expected = r##"Escaped hyphens: -- ---.
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -187,7 +187,7 @@ fn smart_punct_test_15() { let expected = r##"Ellipses…and…and….
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } #[test] @@ -197,5 +197,5 @@ fn smart_punct_test_16() { let expected = r##"No ellipses...
"##; - test_markdown_html(original, expected, true, false, false, false, false, false); + test_markdown_html(original, expected, true, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/spec.rs b/pulldown-cmark/tests/suite/spec.rs index 1a0488d3..f3c3437a 100644 --- a/pulldown-cmark/tests/suite/spec.rs +++ b/pulldown-cmark/tests/suite/spec.rs @@ -11,7 +11,7 @@ fn spec_test_1() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -22,7 +22,7 @@ fn spec_test_2() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -35,7 +35,7 @@ fn spec_test_3() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -52,7 +52,7 @@ fn spec_test_4() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -70,7 +70,7 @@ fn spec_test_5() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -83,7 +83,7 @@ fn spec_test_6() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -98,7 +98,7 @@ fn spec_test_7() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -111,7 +111,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -133,7 +133,7 @@ fn spec_test_9() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -143,7 +143,7 @@ fn spec_test_10() { let expected = r##"!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -173,7 +173,7 @@ fn spec_test_13() { let expected = r##"\ \A\a\ \3\φ\«
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -199,7 +199,7 @@ fn spec_test_14() { ö not a character entity "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -209,7 +209,7 @@ fn spec_test_15() { let expected = r##"\emphasis
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -221,7 +221,7 @@ bar bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -231,7 +231,7 @@ fn spec_test_17() { let expected = r##"\[\`
# Ӓ Ϡ �
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -344,7 +344,7 @@ fn spec_test_27() { let expected = r##"" ആ ಫ
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -360,7 +360,7 @@ fn spec_test_28() { &ThisIsNotDefined; &hi?; "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -370,7 +370,7 @@ fn spec_test_29() { let expected = r##"©
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -380,7 +380,7 @@ fn spec_test_30() { let expected = r##"&MadeUpEntity;
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -390,7 +390,7 @@ fn spec_test_31() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -400,7 +400,7 @@ fn spec_test_32() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -412,7 +412,7 @@ fn spec_test_33() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -425,7 +425,7 @@ foo "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -435,7 +435,7 @@ fn spec_test_35() { let expected = r##"föö
foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -505,7 +505,7 @@ fn spec_test_41() { let expected = r##"[a](url "tit")
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -519,7 +519,7 @@ fn spec_test_42() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -533,7 +533,7 @@ ___+++
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -553,7 +553,7 @@ fn spec_test_45() { let expected = r##"===
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -567,7 +567,7 @@ __ __ "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -581,7 +581,7 @@ fn spec_test_47() {---a---
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -680,7 +680,7 @@ fn spec_test_56() { let expected = r##"-
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -698,7 +698,7 @@ fn spec_test_57() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -712,7 +712,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -725,7 +725,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -743,7 +743,7 @@ fn spec_test_60() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -759,7 +759,7 @@ fn spec_test_61() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -779,7 +779,7 @@ fn spec_test_62() {####### foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -802,7 +802,7 @@ fn spec_test_64() {#hashtag
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -812,7 +812,7 @@ fn spec_test_65() { let expected = r##"## foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -822,7 +822,7 @@ fn spec_test_66() { let expected = r##"Bar foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -979,7 +979,7 @@ fn spec_test_79() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -994,7 +994,7 @@ Foo *bar*of dashes"/>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1168,7 +1168,7 @@ fn spec_test_92() {Baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1240,7 +1240,7 @@ fn spec_test_97() { let expected = r##"====
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1252,7 +1252,7 @@ fn spec_test_98() {baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1338,7 +1338,7 @@ barbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1354,7 +1354,7 @@ barbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1370,7 +1370,7 @@ bar baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1383,7 +1383,7 @@ fn spec_test_107() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1400,7 +1400,7 @@ fn spec_test_108() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1419,7 +1419,7 @@ fn spec_test_109() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1436,7 +1436,7 @@ fn spec_test_110() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1459,7 +1459,7 @@ chunk3 "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1474,7 +1474,7 @@ fn spec_test_112() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1487,7 +1487,7 @@ fn spec_test_113() { bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1500,7 +1500,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1521,7 +1521,7 @@ Headingfoo
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1688,7 +1688,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1705,7 +1705,7 @@ bbb
bbb
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1720,7 +1720,7 @@ fn spec_test_129() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1731,7 +1731,7 @@ fn spec_test_130() { let expected = r##"
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1746,7 +1746,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1763,7 +1763,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1780,7 +1780,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1795,7 +1795,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1808,7 +1808,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1821,7 +1821,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1835,7 +1835,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1847,7 +1847,7 @@ aaa
aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1861,7 +1861,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1878,7 +1878,7 @@ baz
baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -1896,7 +1896,7 @@ bar
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1953,7 +1953,7 @@ foo
foo
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1966,7 +1966,7 @@ foo
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -1979,7 +1979,7 @@ fn spec_test_147() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -2000,7 +2000,7 @@ _world_.
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -2025,7 +2025,7 @@ okay.
okay.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2039,7 +2039,7 @@ fn spec_test_150() {bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2122,7 +2122,7 @@ fn spec_test_156() { *hi* "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2134,7 +2134,7 @@ foo foo "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2146,7 +2146,7 @@ fn spec_test_158() { *foo* "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2156,7 +2156,7 @@ fn spec_test_159() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2170,7 +2170,7 @@ foo "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2186,7 +2186,7 @@ int x = 33; ``` "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2200,7 +2200,7 @@ fn spec_test_162() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2214,7 +2214,7 @@ fn spec_test_163() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2228,7 +2228,7 @@ fn spec_test_164() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2240,7 +2240,7 @@ fn spec_test_165() { *bar* "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2254,7 +2254,7 @@ fn spec_test_166() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2270,7 +2270,7 @@ fn spec_test_167() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2280,7 +2280,7 @@ fn spec_test_168() { let expected = r##"foo
okay
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2322,7 +2322,7 @@ document.getElementById("demo").innerHTML = "Hello JavaScript!";okay
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2344,7 +2344,7 @@ _bar_ "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2366,7 +2366,7 @@ p {color:blue;}okay
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2382,7 +2382,7 @@ foo foo "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2399,7 +2399,7 @@ foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2415,7 +2415,7 @@ fn spec_test_175() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2427,7 +2427,7 @@ fn spec_test_176() {foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2439,7 +2439,7 @@ fn spec_test_177() {baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2453,7 +2453,7 @@ foo 1. *bar* "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2471,7 +2471,7 @@ barokay
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2491,7 +2491,7 @@ okayokay
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2501,7 +2501,7 @@ fn spec_test_181() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2535,7 +2535,7 @@ function matchwo(a,b)okay
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2549,7 +2549,7 @@ fn spec_test_183() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2563,7 +2563,7 @@ fn spec_test_184() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2579,7 +2579,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2595,7 +2595,7 @@ bar *foo* "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2609,7 +2609,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2625,7 +2625,7 @@ fn spec_test_188() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2639,7 +2639,7 @@ fn spec_test_189() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2665,7 +2665,7 @@ Hi "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2692,7 +2692,7 @@ fn spec_test_191() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2704,7 +2704,7 @@ fn spec_test_192() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2718,7 +2718,7 @@ fn spec_test_193() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2730,7 +2730,7 @@ fn spec_test_194() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2744,7 +2744,7 @@ fn spec_test_195() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2764,7 +2764,7 @@ line2 ">foo[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2793,7 +2793,7 @@ fn spec_test_198() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2806,7 +2806,7 @@ fn spec_test_199() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2818,7 +2818,7 @@ fn spec_test_200() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2831,7 +2831,7 @@ fn spec_test_201() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2843,7 +2843,7 @@ fn spec_test_202() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2855,7 +2855,7 @@ fn spec_test_203() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2868,7 +2868,7 @@ fn spec_test_204() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2880,7 +2880,7 @@ fn spec_test_205() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2892,7 +2892,7 @@ fn spec_test_206() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2901,7 +2901,7 @@ fn spec_test_207() { "##; let expected = r##""##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2914,7 +2914,7 @@ bar let expected = r##"bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2924,7 +2924,7 @@ fn spec_test_209() { let expected = r##"[foo]: /url "title" ok
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2935,7 +2935,7 @@ fn spec_test_210() { let expected = r##""title" ok
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2949,7 +2949,7 @@ fn spec_test_211() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2965,7 +2965,7 @@ fn spec_test_212() {[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2980,7 +2980,7 @@ fn spec_test_213() {[bar]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -2995,7 +2995,7 @@ fn spec_test_214() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3009,7 +3009,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3022,7 +3022,7 @@ fn spec_test_216() { foo "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3041,7 +3041,7 @@ fn spec_test_217() { baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3055,7 +3055,7 @@ fn spec_test_218() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3068,7 +3068,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3085,7 +3085,7 @@ bbb ddd "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3099,7 +3099,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3111,7 +3111,7 @@ fn spec_test_222() { bbb "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3125,7 +3125,7 @@ bbb ccc "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3137,7 +3137,7 @@ bbb bbb "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3150,7 +3150,7 @@ bbbbbb
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3162,7 +3162,7 @@ bbb bbb "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3180,7 +3180,7 @@ aaa
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3353,7 +3353,7 @@ fn spec_test_238() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3364,7 +3364,7 @@ fn spec_test_239() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3377,7 +3377,7 @@ fn spec_test_240() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3391,7 +3391,7 @@ fn spec_test_241() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3408,7 +3408,7 @@ fn spec_test_242() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3422,7 +3422,7 @@ bar
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3437,7 +3437,7 @@ fn spec_test_244() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3451,7 +3451,7 @@ fn spec_test_245() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3469,7 +3469,7 @@ fn spec_test_246() {
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3483,7 +3483,7 @@ baz
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -3498,7 +3498,7 @@ baz
baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3513,7 +3513,7 @@ bazbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3531,7 +3531,7 @@ bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3551,7 +3551,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3569,7 +3569,7 @@ fn spec_test_252() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3590,7 +3590,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3615,7 +3615,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3630,7 +3630,7 @@ fn spec_test_255() {two
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3647,7 +3647,7 @@ fn spec_test_256() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3663,7 +3663,7 @@ fn spec_test_257() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3680,7 +3680,7 @@ fn spec_test_258() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3701,7 +3701,7 @@ fn spec_test_259() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3720,7 +3720,7 @@ fn spec_test_260() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3733,7 +3733,7 @@ fn spec_test_261() {2.two
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3751,7 +3751,7 @@ fn spec_test_262() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3779,7 +3779,7 @@ fn spec_test_263() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3803,7 +3803,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3815,7 +3815,7 @@ fn spec_test_265() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3825,7 +3825,7 @@ fn spec_test_266() { let expected = r##"1234567890. not ok
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3837,7 +3837,7 @@ fn spec_test_267() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3849,7 +3849,7 @@ fn spec_test_268() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3859,7 +3859,7 @@ fn spec_test_269() { let expected = r##"-1. not ok
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3877,7 +3877,7 @@ fn spec_test_270() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3895,7 +3895,7 @@ fn spec_test_271() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3913,7 +3913,7 @@ paragraph "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3935,7 +3935,7 @@ fn spec_test_273() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3957,7 +3957,7 @@ fn spec_test_274() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3970,7 +3970,7 @@ barbar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -3985,7 +3985,7 @@ fn spec_test_276() {bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4002,7 +4002,7 @@ fn spec_test_277() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4029,7 +4029,7 @@ fn spec_test_278() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4042,7 +4042,7 @@ fn spec_test_279() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4057,7 +4057,7 @@ fn spec_test_280() {foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4073,7 +4073,7 @@ fn spec_test_281() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4089,7 +4089,7 @@ fn spec_test_282() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4105,7 +4105,7 @@ fn spec_test_283() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4117,7 +4117,7 @@ fn spec_test_284() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4134,7 +4134,7 @@ foo 1. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4159,7 +4159,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4184,7 +4184,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4209,7 +4209,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4230,7 +4230,7 @@ fn spec_test_289() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4255,7 +4255,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4269,7 +4269,7 @@ with two lines. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4289,7 +4289,7 @@ continued here. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4309,7 +4309,7 @@ continued here. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4336,7 +4336,7 @@ fn spec_test_294() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4354,7 +4354,7 @@ fn spec_test_295() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4371,7 +4371,7 @@ fn spec_test_296() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4387,7 +4387,7 @@ fn spec_test_297() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4403,7 +4403,7 @@ fn spec_test_298() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4423,7 +4423,7 @@ fn spec_test_299() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4443,7 +4443,7 @@ baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4461,7 +4461,7 @@ fn spec_test_301() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4479,7 +4479,7 @@ fn spec_test_302() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4495,7 +4495,7 @@ fn spec_test_303() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4507,7 +4507,7 @@ fn spec_test_304() { 14. The number of doors is 6. "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4521,7 +4521,7 @@ fn spec_test_305() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4546,7 +4546,7 @@ fn spec_test_306() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4574,7 +4574,7 @@ fn spec_test_307() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4598,7 +4598,7 @@ fn spec_test_308() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4627,7 +4627,7 @@ fn spec_test_309() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4651,7 +4651,7 @@ fn spec_test_310() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4675,7 +4675,7 @@ fn spec_test_311() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4695,7 +4695,7 @@ fn spec_test_312() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4718,7 +4718,7 @@ fn spec_test_313() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4741,7 +4741,7 @@ fn spec_test_314() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4762,7 +4762,7 @@ fn spec_test_315() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4787,7 +4787,7 @@ fn spec_test_316() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4811,7 +4811,7 @@ fn spec_test_317() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4836,7 +4836,7 @@ fn spec_test_318() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4860,7 +4860,7 @@ fn spec_test_319() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4880,7 +4880,7 @@ fn spec_test_320() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4904,7 +4904,7 @@ fn spec_test_321() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4916,7 +4916,7 @@ fn spec_test_322() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4933,7 +4933,7 @@ fn spec_test_323() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4953,7 +4953,7 @@ fn spec_test_324() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -4974,7 +4974,7 @@ fn spec_test_325() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5005,7 +5005,7 @@ fn spec_test_326() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5015,7 +5015,7 @@ fn spec_test_327() { let expected = r##"hilo`
foo
foo ` bar
``
``
a
b
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false);
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
#[test]
@@ -5101,7 +5101,7 @@ baz
let expected = r##"foo bar baz
foo
foo bar baz
foo\bar`
foo`bar
foo `` bar
*foo*
[not a link](/foo)
<a href="">`
<https://foo.bar.baz>`
```foo``
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5234,7 +5234,7 @@ fn spec_test_348() { let expected = r##"`foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5244,7 +5244,7 @@ fn spec_test_349() { let expected = r##"`foobar
foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5264,7 +5264,7 @@ fn spec_test_351() { let expected = r##"a * foo bar*
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5274,7 +5274,7 @@ fn spec_test_352() { let expected = r##"a*"foo"*
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5284,7 +5284,7 @@ fn spec_test_353() { let expected = r##"* a *
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5300,7 +5300,7 @@ fn spec_test_354() {*€*charlie.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5310,7 +5310,7 @@ fn spec_test_355() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5320,7 +5320,7 @@ fn spec_test_356() { let expected = r##"5678
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5330,7 +5330,7 @@ fn spec_test_357() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5340,7 +5340,7 @@ fn spec_test_358() { let expected = r##"_ foo bar_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5350,7 +5350,7 @@ fn spec_test_359() { let expected = r##"a_"foo"_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5360,7 +5360,7 @@ fn spec_test_360() { let expected = r##"foo_bar_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5370,7 +5370,7 @@ fn spec_test_361() { let expected = r##"5_6_78
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5380,7 +5380,7 @@ fn spec_test_362() { let expected = r##"пристаням_стремятся_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5390,7 +5390,7 @@ fn spec_test_363() { let expected = r##"aa_"bb"_cc
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5400,7 +5400,7 @@ fn spec_test_364() { let expected = r##"foo-(bar)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5410,7 +5410,7 @@ fn spec_test_365() { let expected = r##"_foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5420,7 +5420,7 @@ fn spec_test_366() { let expected = r##"*foo bar *
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5432,7 +5432,7 @@ fn spec_test_367() { * "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5442,7 +5442,7 @@ fn spec_test_368() { let expected = r##"*(*foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5452,7 +5452,7 @@ fn spec_test_369() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5462,7 +5462,7 @@ fn spec_test_370() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5472,7 +5472,7 @@ fn spec_test_371() { let expected = r##"_foo bar _
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5482,7 +5482,7 @@ fn spec_test_372() { let expected = r##"_(_foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5492,7 +5492,7 @@ fn spec_test_373() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5502,7 +5502,7 @@ fn spec_test_374() { let expected = r##"_foo_bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5512,7 +5512,7 @@ fn spec_test_375() { let expected = r##"_пристаням_стремятся
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5522,7 +5522,7 @@ fn spec_test_376() { let expected = r##"foo_bar_baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5532,7 +5532,7 @@ fn spec_test_377() { let expected = r##"(bar).
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5542,7 +5542,7 @@ fn spec_test_378() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5552,7 +5552,7 @@ fn spec_test_379() { let expected = r##"** foo bar**
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5562,7 +5562,7 @@ fn spec_test_380() { let expected = r##"a**"foo"**
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5572,7 +5572,7 @@ fn spec_test_381() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5582,7 +5582,7 @@ fn spec_test_382() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5592,7 +5592,7 @@ fn spec_test_383() { let expected = r##"__ foo bar__
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5604,7 +5604,7 @@ foo bar__ foo bar__ "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5614,7 +5614,7 @@ fn spec_test_385() { let expected = r##"a__"foo"__
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5624,7 +5624,7 @@ fn spec_test_386() { let expected = r##"foo__bar__
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5634,7 +5634,7 @@ fn spec_test_387() { let expected = r##"5__6__78
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5644,7 +5644,7 @@ fn spec_test_388() { let expected = r##"пристаням__стремятся__
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5654,7 +5654,7 @@ fn spec_test_389() { let expected = r##"foo, bar, baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5664,7 +5664,7 @@ fn spec_test_390() { let expected = r##"foo-(bar)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5674,7 +5674,7 @@ fn spec_test_391() { let expected = r##"**foo bar **
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5684,7 +5684,7 @@ fn spec_test_392() { let expected = r##"**(**foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5694,7 +5694,7 @@ fn spec_test_393() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5706,7 +5706,7 @@ fn spec_test_394() { Asclepias physocarpa) "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5716,7 +5716,7 @@ fn spec_test_395() { let expected = r##"foo "bar" foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5726,7 +5726,7 @@ fn spec_test_396() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5736,7 +5736,7 @@ fn spec_test_397() { let expected = r##"__foo bar __
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5746,7 +5746,7 @@ fn spec_test_398() { let expected = r##"__(__foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5756,7 +5756,7 @@ fn spec_test_399() { let expected = r##"(foo)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5766,7 +5766,7 @@ fn spec_test_400() { let expected = r##"__foo__bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5776,7 +5776,7 @@ fn spec_test_401() { let expected = r##"__пристаням__стремятся
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5786,7 +5786,7 @@ fn spec_test_402() { let expected = r##"foo__bar__baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5796,7 +5796,7 @@ fn spec_test_403() { let expected = r##"(bar).
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5806,7 +5806,7 @@ fn spec_test_404() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5818,7 +5818,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5828,7 +5828,7 @@ fn spec_test_406() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5838,7 +5838,7 @@ fn spec_test_407() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5848,7 +5848,7 @@ fn spec_test_408() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5858,7 +5858,7 @@ fn spec_test_409() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5868,7 +5868,7 @@ fn spec_test_410() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5878,7 +5878,7 @@ fn spec_test_411() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5888,7 +5888,7 @@ fn spec_test_412() { let expected = r##"foo**bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5898,7 +5898,7 @@ fn spec_test_413() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5908,7 +5908,7 @@ fn spec_test_414() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5918,7 +5918,7 @@ fn spec_test_415() { let expected = r##"foobar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5928,7 +5928,7 @@ fn spec_test_416() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5938,7 +5938,7 @@ fn spec_test_417() { let expected = r##"foobar***baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5948,7 +5948,7 @@ fn spec_test_418() { let expected = r##"foo bar baz bim bop
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5958,7 +5958,7 @@ fn spec_test_419() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5968,7 +5968,7 @@ fn spec_test_420() { let expected = r##"** is not an empty emphasis
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5978,7 +5978,7 @@ fn spec_test_421() { let expected = r##"**** is not an empty strong emphasis
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -5988,7 +5988,7 @@ fn spec_test_422() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6000,7 +6000,7 @@ bar** bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6010,7 +6010,7 @@ fn spec_test_424() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6020,7 +6020,7 @@ fn spec_test_425() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6030,7 +6030,7 @@ fn spec_test_426() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6040,7 +6040,7 @@ fn spec_test_427() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6050,7 +6050,7 @@ fn spec_test_428() { let expected = r##"foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6060,7 +6060,7 @@ fn spec_test_429() { let expected = r##"foobarbaz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6070,7 +6070,7 @@ fn spec_test_430() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6080,7 +6080,7 @@ fn spec_test_431() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6092,7 +6092,7 @@ bim* bop** bim bop "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6102,7 +6102,7 @@ fn spec_test_433() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6112,7 +6112,7 @@ fn spec_test_434() { let expected = r##"__ is not an empty emphasis
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6122,7 +6122,7 @@ fn spec_test_435() { let expected = r##"____ is not an empty strong emphasis
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6132,7 +6132,7 @@ fn spec_test_436() { let expected = r##"foo ***
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6142,7 +6142,7 @@ fn spec_test_437() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6152,7 +6152,7 @@ fn spec_test_438() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6162,7 +6162,7 @@ fn spec_test_439() { let expected = r##"foo *****
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6172,7 +6172,7 @@ fn spec_test_440() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6182,7 +6182,7 @@ fn spec_test_441() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6192,7 +6192,7 @@ fn spec_test_442() { let expected = r##"*foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6202,7 +6202,7 @@ fn spec_test_443() { let expected = r##"foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6212,7 +6212,7 @@ fn spec_test_444() { let expected = r##"*foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6222,7 +6222,7 @@ fn spec_test_445() { let expected = r##"***foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6232,7 +6232,7 @@ fn spec_test_446() { let expected = r##"foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6242,7 +6242,7 @@ fn spec_test_447() { let expected = r##"foo***
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6252,7 +6252,7 @@ fn spec_test_448() { let expected = r##"foo ___
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6262,7 +6262,7 @@ fn spec_test_449() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6272,7 +6272,7 @@ fn spec_test_450() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6282,7 +6282,7 @@ fn spec_test_451() { let expected = r##"foo _____
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6292,7 +6292,7 @@ fn spec_test_452() { let expected = r##"foo _
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6302,7 +6302,7 @@ fn spec_test_453() { let expected = r##"foo *
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6312,7 +6312,7 @@ fn spec_test_454() { let expected = r##"_foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6322,7 +6322,7 @@ fn spec_test_455() { let expected = r##"foo_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6332,7 +6332,7 @@ fn spec_test_456() { let expected = r##"_foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6342,7 +6342,7 @@ fn spec_test_457() { let expected = r##"___foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6352,7 +6352,7 @@ fn spec_test_458() { let expected = r##"foo_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6362,7 +6362,7 @@ fn spec_test_459() { let expected = r##"foo___
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6372,7 +6372,7 @@ fn spec_test_460() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6382,7 +6382,7 @@ fn spec_test_461() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6392,7 +6392,7 @@ fn spec_test_462() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6402,7 +6402,7 @@ fn spec_test_463() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6412,7 +6412,7 @@ fn spec_test_464() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6422,7 +6422,7 @@ fn spec_test_465() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6432,7 +6432,7 @@ fn spec_test_466() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6442,7 +6442,7 @@ fn spec_test_467() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6452,7 +6452,7 @@ fn spec_test_468() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6462,7 +6462,7 @@ fn spec_test_469() { let expected = r##"foo _bar baz_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6472,7 +6472,7 @@ fn spec_test_470() { let expected = r##"foo bar *baz bim bam
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6482,7 +6482,7 @@ fn spec_test_471() { let expected = r##"**foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6492,7 +6492,7 @@ fn spec_test_472() { let expected = r##"*foo bar baz
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6502,7 +6502,7 @@ fn spec_test_473() { let expected = r##"*bar*
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6512,7 +6512,7 @@ fn spec_test_474() { let expected = r##"_foo bar_
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6522,7 +6522,7 @@ fn spec_test_475() { let expected = r##"*
a *
a _
[link](/my uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6662,7 +6662,7 @@ fn spec_test_489() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6674,7 +6674,7 @@ bar) bar) "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6686,7 +6686,7 @@ bar>) bar>) "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6696,7 +6696,7 @@ fn spec_test_492() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6706,7 +6706,7 @@ fn spec_test_493() { let expected = r##"[link](<foo>)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6720,7 +6720,7 @@ fn spec_test_494() { [a](c) "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6730,7 +6730,7 @@ fn spec_test_495() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6740,7 +6740,7 @@ fn spec_test_496() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6750,7 +6750,7 @@ fn spec_test_497() { let expected = r##"[link](foo(and(bar))
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6760,7 +6760,7 @@ fn spec_test_498() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6770,7 +6770,7 @@ fn spec_test_499() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6780,7 +6780,7 @@ fn spec_test_500() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6796,7 +6796,7 @@ fn spec_test_501() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6806,7 +6806,7 @@ fn spec_test_502() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6816,7 +6816,7 @@ fn spec_test_503() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6826,7 +6826,7 @@ fn spec_test_504() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6840,7 +6840,7 @@ fn spec_test_505() { link "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6850,7 +6850,7 @@ fn spec_test_506() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6860,7 +6860,7 @@ fn spec_test_507() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6870,7 +6870,7 @@ fn spec_test_508() { let expected = r##"[link](/url "title "and" title")
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6880,7 +6880,7 @@ fn spec_test_509() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6891,7 +6891,7 @@ fn spec_test_510() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6901,7 +6901,7 @@ fn spec_test_511() { let expected = r##"[link] (/uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6911,7 +6911,7 @@ fn spec_test_512() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6921,7 +6921,7 @@ fn spec_test_513() { let expected = r##"[link] bar](/uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6931,7 +6931,7 @@ fn spec_test_514() { let expected = r##"[link bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6941,7 +6941,7 @@ fn spec_test_515() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6951,7 +6951,7 @@ fn spec_test_516() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6961,7 +6961,7 @@ fn spec_test_517() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6971,7 +6971,7 @@ fn spec_test_518() { let expected = r##"[foo bar](/uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6981,7 +6981,7 @@ fn spec_test_519() { let expected = r##"[foo [bar baz](/uri)](/uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -6991,7 +6991,7 @@ fn spec_test_520() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7011,7 +7011,7 @@ fn spec_test_522() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7021,7 +7021,7 @@ fn spec_test_523() { let expected = r##"foo [bar baz]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7031,7 +7031,7 @@ fn spec_test_524() { let expected = r##"[foo
[foo](/uri)
[foohttps://example.com/?search=](uri)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7063,7 +7063,7 @@ fn spec_test_527() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7075,7 +7075,7 @@ fn spec_test_528() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7087,7 +7087,7 @@ fn spec_test_529() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7099,7 +7099,7 @@ fn spec_test_530() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7111,7 +7111,7 @@ fn spec_test_531() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7123,7 +7123,7 @@ fn spec_test_532() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7135,7 +7135,7 @@ fn spec_test_533() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7147,7 +7147,7 @@ fn spec_test_534() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7159,7 +7159,7 @@ fn spec_test_535() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7171,7 +7171,7 @@ fn spec_test_536() { let expected = r##"[foo
[foo][ref]
[foohttps://example.com/?search=][ref]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7207,7 +7207,7 @@ fn spec_test_539() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7219,7 +7219,7 @@ fn spec_test_540() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7232,7 +7232,7 @@ fn spec_test_541() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7244,7 +7244,7 @@ fn spec_test_542() { let expected = r##"[foo] bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7258,7 +7258,7 @@ fn spec_test_543() { bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7272,7 +7272,7 @@ fn spec_test_544() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7284,7 +7284,7 @@ fn spec_test_545() { let expected = r##"[bar][foo!]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7297,7 +7297,7 @@ fn spec_test_546() {[ref[]: /uri
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7310,7 +7310,7 @@ fn spec_test_547() {[ref[bar]]: /uri
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7323,7 +7323,7 @@ fn spec_test_548() {[[[foo]]]: /url
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7335,7 +7335,7 @@ fn spec_test_549() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7347,7 +7347,7 @@ fn spec_test_550() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7360,7 +7360,7 @@ fn spec_test_551() {[]: /uri
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7377,7 +7377,7 @@ fn spec_test_552() { ]: /uri "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7389,7 +7389,7 @@ fn spec_test_553() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7401,7 +7401,7 @@ fn spec_test_554() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7413,7 +7413,7 @@ fn spec_test_555() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7427,7 +7427,7 @@ fn spec_test_556() { [] "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7439,7 +7439,7 @@ fn spec_test_557() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7451,7 +7451,7 @@ fn spec_test_558() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7463,7 +7463,7 @@ fn spec_test_559() { let expected = r##"[foo bar]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7475,7 +7475,7 @@ fn spec_test_560() { let expected = r##"[[bar foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7487,7 +7487,7 @@ fn spec_test_561() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7499,7 +7499,7 @@ fn spec_test_562() { let expected = r##"foo bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7511,7 +7511,7 @@ fn spec_test_563() { let expected = r##"[foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7523,7 +7523,7 @@ fn spec_test_564() { let expected = r##"*foo*
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7536,7 +7536,7 @@ fn spec_test_565() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7548,7 +7548,7 @@ fn spec_test_566() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7560,7 +7560,7 @@ fn spec_test_567() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7572,7 +7572,7 @@ fn spec_test_568() { let expected = r##"foo(not a link)
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7584,7 +7584,7 @@ fn spec_test_569() { let expected = r##"[foo]bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7597,7 +7597,7 @@ fn spec_test_570() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7610,7 +7610,7 @@ fn spec_test_571() { let expected = r##"[foo]bar
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7620,7 +7620,7 @@ fn spec_test_572() { let expected = r##"



My 
[[foo]]: /url "title"
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7839,7 +7839,7 @@ fn spec_test_591() { let expected = r##"![foo]
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7863,7 +7863,7 @@ fn spec_test_593() { let expected = r##"!foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7873,7 +7873,7 @@ fn spec_test_594() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7883,7 +7883,7 @@ fn spec_test_595() { let expected = r##"https://foo.bar.baz/test?q=hello&id=22&boolean
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7893,7 +7893,7 @@ fn spec_test_596() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7903,7 +7903,7 @@ fn spec_test_597() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7913,7 +7913,7 @@ fn spec_test_598() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7923,7 +7923,7 @@ fn spec_test_599() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7933,7 +7933,7 @@ fn spec_test_600() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7943,7 +7943,7 @@ fn spec_test_601() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7953,7 +7953,7 @@ fn spec_test_602() { let expected = r##"<https://foo.bar/baz bim>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7963,7 +7963,7 @@ fn spec_test_603() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7973,7 +7973,7 @@ fn spec_test_604() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7983,7 +7983,7 @@ fn spec_test_605() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -7993,7 +7993,7 @@ fn spec_test_606() { let expected = r##"<foo+@bar.example.com>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8003,7 +8003,7 @@ fn spec_test_607() { let expected = r##"<>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8013,7 +8013,7 @@ fn spec_test_608() { let expected = r##"< https://foo.bar >
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8023,7 +8023,7 @@ fn spec_test_609() { let expected = r##"<m:abc>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8033,7 +8033,7 @@ fn spec_test_610() { let expected = r##"<foo.bar.baz>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8043,7 +8043,7 @@ fn spec_test_611() { let expected = r##"https://example.com
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8053,7 +8053,7 @@ fn spec_test_612() { let expected = r##"foo@bar.example.com
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8063,7 +8063,7 @@ fn spec_test_613() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8073,7 +8073,7 @@ fn spec_test_614() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8085,7 +8085,7 @@ data="foo" > data="foo" > "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8097,7 +8097,7 @@ _boolean zoop:33=zoop:33 /> _boolean zoop:33=zoop:33 /> "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8107,7 +8107,7 @@ fn spec_test_617() { let expected = r##"Foo
<33> <__>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8127,7 +8127,7 @@ fn spec_test_619() { let expected = r##"<a h*#ref="hi">
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8137,7 +8137,7 @@ fn spec_test_620() { let expected = r##"<a href="hi'> <a href=hi'>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8153,7 +8153,7 @@ foo><bar/ > bim!bop /> "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8163,7 +8163,7 @@ fn spec_test_622() { let expected = r##"<a href='bar'title=title>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8173,7 +8173,7 @@ fn spec_test_623() { let expected = r##"</a href="foo">
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8195,7 +8195,7 @@ comment - with hyphens --> comment - with hyphens --> "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8208,7 +8208,7 @@ foo foo -->foo foo -->
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8218,7 +8218,7 @@ fn spec_test_627() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8228,7 +8228,7 @@ fn spec_test_628() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8238,7 +8238,7 @@ fn spec_test_629() { let expected = r##"foo &<]]>
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8248,7 +8248,7 @@ fn spec_test_630() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8258,7 +8258,7 @@ fn spec_test_631() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8268,7 +8268,7 @@ fn spec_test_632() { let expected = r##"<a href=""">
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8280,7 +8280,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8292,7 +8292,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8304,7 +8304,7 @@ baz baz "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8316,7 +8316,7 @@ fn spec_test_636() { bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8328,7 +8328,7 @@ fn spec_test_637() { bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8340,7 +8340,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8352,7 +8352,7 @@ bar* bar "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8363,7 +8363,7 @@ span` let expected = r##"code span
code\ span
foo\
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8418,7 +8418,7 @@ fn spec_test_645() { let expected = r##"foo
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8428,7 +8428,7 @@ fn spec_test_646() { let expected = r##"hello $.;'there
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8482,7 +8482,7 @@ fn spec_test_651() { let expected = r##"Foo χρῆν
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -8492,5 +8492,5 @@ fn spec_test_652() { let expected = r##"Multiple spaces
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/spoiler.rs b/pulldown-cmark/tests/suite/spoiler.rs index f16f4306..40c1418d 100644 --- a/pulldown-cmark/tests/suite/spoiler.rs +++ b/pulldown-cmark/tests/suite/spoiler.rs @@ -20,7 +20,7 @@ Is this bold? "##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, true); } #[test] @@ -41,7 +41,7 @@ Is this bold?is this seperate and bold
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, true); } #[test] @@ -68,7 +68,7 @@ Is this bold? "##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, true); } #[test] @@ -101,7 +101,7 @@ Is this bold?is this seperate and bold
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, true); } #[test] @@ -118,7 +118,7 @@ Is this collapsable?is this seperate and bold
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, true); } #[test] @@ -136,5 +136,5 @@ Is this **bold**? "##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, true); } diff --git a/pulldown-cmark/tests/suite/strikethrough.rs b/pulldown-cmark/tests/suite/strikethrough.rs index 3f2bd93f..4e1457c2 100644 --- a/pulldown-cmark/tests/suite/strikethrough.rs +++ b/pulldown-cmark/tests/suite/strikethrough.rs @@ -10,7 +10,7 @@ fn strikethrough_test_1() { let expected = r##"This is stricken out
This is ~~stricken
Thisisstricken
Thisisstricken
Here I strike out an exclamation point!.
This is stricken out
This is ~stricken
This~is~nothing
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -90,7 +90,7 @@ fn strikethrough_test_9() { let expected = r##"This~is~nothing
Here I fail to strike out an exclamation point~!~.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -110,7 +110,7 @@ fn strikethrough_test_11() { let expected = r##"Here I fail to strike out a tilde ~~~.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -120,7 +120,7 @@ fn strikethrough_test_12() { let expected = r##"Here I fail to match up ~~tildes~.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -130,7 +130,7 @@ fn strikethrough_test_13() { let expected = r##"Here I fail to match up ~tildes~~.
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -140,7 +140,7 @@ fn strikethrough_test_14() { let expected = r##"This ~is stricken.
This ~~is stricken.
This is super This is sub
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, true, false, false, false); } #[test] @@ -20,7 +20,7 @@ fn super_sub_test_2() { let expected = r##"This is stricken out
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, true, false, false, false); } #[test] @@ -30,7 +30,7 @@ fn super_sub_test_3() { let expected = r##"This is ~stricken
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, true, false, false, false); } #[test] @@ -40,7 +40,7 @@ fn super_sub_test_4() { let expected = r##"Thisisnothing
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, true, false, false, false); } #[test] @@ -50,7 +50,7 @@ fn super_sub_test_5() { let expected = r##"This ~~is not stricken.
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, true, false, false, false); } #[test] @@ -60,7 +60,7 @@ fn super_sub_test_6() { let expected = r##"This ~is stricken.~
This ~~is stricken but this is not~~
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, true, false, false, false); } #[test] @@ -83,7 +83,7 @@ y=x^2^a+xb+cy=x2a+xb+c
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, true, false, false, false); } #[test] @@ -96,7 +96,7 @@ fn super_sub_test_9() {^bar^^
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, true, false, false, false); } #[test] @@ -109,5 +109,5 @@ fn super_sub_test_10() {foo__bar*
"##; - test_markdown_html(original, expected, false, false, false, true, false, false); + test_markdown_html(original, expected, false, false, false, true, false, false, false); } diff --git a/pulldown-cmark/tests/suite/table.rs b/pulldown-cmark/tests/suite/table.rs index 3e6eee04..952c3db5 100644 --- a/pulldown-cmark/tests/suite/table.rs +++ b/pulldown-cmark/tests/suite/table.rs @@ -11,7 +11,7 @@ fn table_test_1() { let expected = r##"b
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -316,7 +316,7 @@ fn table_test_14() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -332,7 +332,7 @@ fn table_test_15() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -348,7 +348,7 @@ fn table_test_16() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -398,7 +398,7 @@ fn table_test_17() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -436,7 +436,7 @@ fn table_test_18() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -466,7 +466,7 @@ fn table_test_19() { | Not | Enough | "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -480,7 +480,7 @@ fn table_test_20() {|
"##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -494,7 +494,7 @@ fn table_test_21() { | Table | Body | "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -516,7 +516,7 @@ fn table_test_22() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -542,7 +542,7 @@ fn table_test_23() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -564,7 +564,7 @@ A: Interrupting —? "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -578,7 +578,7 @@ fn table_test_25() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -592,7 +592,7 @@ fn table_test_26() { "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -610,7 +610,7 @@ moo | moo "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } #[test] @@ -628,5 +628,5 @@ moo | moo "##; - test_markdown_html(original, expected, false, false, false, false, false, false); + test_markdown_html(original, expected, false, false, false, false, false, false, false); } diff --git a/pulldown-cmark/tests/suite/wikilinks.rs b/pulldown-cmark/tests/suite/wikilinks.rs index e557d1d3..cf9d0574 100644 --- a/pulldown-cmark/tests/suite/wikilinks.rs +++ b/pulldown-cmark/tests/suite/wikilinks.rs @@ -10,7 +10,7 @@ fn wikilinks_test_1() { let expected = r##"This is a WikiLink.
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -20,7 +20,7 @@ fn wikilinks_test_2() { let expected = r##"This is a Main/WikiLink.
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -32,7 +32,7 @@ fn wikilinks_test_3() { let expected = r##"This is Ambiguous.
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -49,7 +49,7 @@ fn wikilinks_test_4() { "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -59,7 +59,7 @@ fn wikilinks_test_5() { let expected = r##"This is [also Ambiguous](https://example.com/).
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -72,7 +72,7 @@ fn wikilinks_test_6() { "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -82,7 +82,7 @@ fn wikilinks_test_7() { let expected = r##"This is a pothole.
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -92,7 +92,7 @@ fn wikilinks_test_8() { let expected = r##"This is a WikiLink.
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -102,7 +102,7 @@ fn wikilinks_test_9() { let expected = r##"This is a strong pothole.
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -117,7 +117,7 @@ fn wikilinks_test_10() { "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -127,7 +127,7 @@ fn wikilinks_test_11() { let expected = r##"[[WikiLink|Fish]]
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -137,7 +137,7 @@ fn wikilinks_test_12() { let expected = r##"[[WikiLink|cat]]
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -152,7 +152,7 @@ fn wikilinks_test_13() { "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -162,7 +162,7 @@ fn wikilinks_test_14() { let expected = r##"
]] [[]] [[|]] [[|Symbol]] [[
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -182,7 +182,7 @@ fn wikilinks_test_16() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -192,7 +192,7 @@ fn wikilinks_test_17() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -202,7 +202,7 @@ fn wikilinks_test_18() { let expected = r##"[[code]]
emphasis **cross over** here
"##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -222,7 +222,7 @@ fn wikilinks_test_20() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } #[test] @@ -232,5 +232,5 @@ fn wikilinks_test_21() { let expected = r##" "##; - test_markdown_html(original, expected, false, false, false, false, true, false); + test_markdown_html(original, expected, false, false, false, false, true, false, false); } From a764586faec798f947a92497cfcfab64d5896121 Mon Sep 17 00:00:00 2001 From: jim-taylor-businessis this seperate and bold
```````````````````````````````` -```````````````````````````````` example_spoiler +```````````````````````````````` example_container_extensions ::: spoiler Is this expandable? Is this collapsable? > Is this **bold**? @@ -56,7 +56,7 @@ Is this bold? ```````````````````````````````` -```````````````````````````````` example_spoiler +```````````````````````````````` example_container_extensions ::: spoiler Is this expandable? Is this collapsable? > Is this **bold**? @@ -85,7 +85,7 @@ Is this bold?is this seperate and bold
```````````````````````````````` -```````````````````````````````` example_spoiler +```````````````````````````````` example_container_extensions ::: spoiler Is this expandable? Is this collapsable? ::: @@ -98,7 +98,7 @@ Is this collapsable?is this seperate and bold
```````````````````````````````` -```````````````````````````````` example_spoiler +```````````````````````````````` example_container_extensions ::: spoiler Is this expandable? Is this collapsable? @@ -111,3 +111,30 @@ Is this **bold**?Is this bold?
```````````````````````````````` + +```````````````````````````````` example_container_extensions +:::spoiler Is this expandable? +Is this collapsable? + +Is this **bold**? +::: +. +Is this collapsable?
+Is this bold?
+Is this collapsable?
+Is this bold?
+"),
}
}
- Tag::SpoilerBlock(summary) => {
+ Tag::ContainerBlock(Example, _) => {
+ if !self.end_newline {
+ self.write_newline()?;
+ }
+ // if summary.is_empty() {
+ self.write("")
+ // } else {
+ // self.write("")
+ // }
+ }
+ Tag::ContainerBlock(Spoiler, summary) => {
if !self.end_newline {
self.write_newline()?;
}
@@ -446,9 +461,12 @@ where
TagEnd::CodeBlock => {
self.write("\n")?;
}
- TagEnd::SpoilerBlock => {
+ TagEnd::ContainerBlock(Spoiler) => {
self.write("\n")?;
}
+ TagEnd::ContainerBlock(Example) => {
+ self.write("\n")?;
+ }
TagEnd::List(true) => {
self.write("\n")?;
}
diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs
index 56d7ec0c..170d3fa5 100644
--- a/pulldown-cmark/src/lib.rs
+++ b/pulldown-cmark/src/lib.rs
@@ -158,6 +158,14 @@ pub enum BlockQuoteKind {
Caution,
}
+/// ContainerBlock kind (Spoiler only).
+#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
+#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
+pub enum ContainerKind {
+ Spoiler,
+ Example,
+}
+
/// Metadata block kind.
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
@@ -200,7 +208,7 @@ pub enum Tag<'a> {
BlockQuote(Option),
/// A code block.
CodeBlock(CodeBlockKind<'a>),
- SpoilerBlock(CowStr<'a>),
+ ContainerBlock(ContainerKind, CowStr<'a>),
/// An HTML block.
///
@@ -313,7 +321,7 @@ impl<'a> Tag<'a> {
Tag::Heading { level, .. } => TagEnd::Heading(*level),
Tag::BlockQuote(kind) => TagEnd::BlockQuote(*kind),
Tag::CodeBlock(_) => TagEnd::CodeBlock,
- Tag::SpoilerBlock(_) => TagEnd::SpoilerBlock,
+ Tag::ContainerBlock(kind, _) => TagEnd::ContainerBlock(*kind),
Tag::HtmlBlock => TagEnd::HtmlBlock,
Tag::List(number) => TagEnd::List(number.is_some()),
Tag::Item => TagEnd::Item,
@@ -355,7 +363,7 @@ impl<'a> Tag<'a> {
},
Tag::BlockQuote(k) => Tag::BlockQuote(k),
Tag::CodeBlock(kb) => Tag::CodeBlock(kb.into_static()),
- Tag::SpoilerBlock(s) => Tag::SpoilerBlock(s.into_static()),
+ Tag::ContainerBlock(k, s) => Tag::ContainerBlock(k, s.into_static()),
Tag::HtmlBlock => Tag::HtmlBlock,
Tag::List(v) => Tag::List(v),
Tag::Item => Tag::Item,
@@ -408,7 +416,7 @@ pub enum TagEnd {
BlockQuote(Option),
CodeBlock,
- SpoilerBlock,
+ ContainerBlock(ContainerKind),
HtmlBlock,
@@ -757,8 +765,8 @@ bitflags::bitflags! {
const ENABLE_SUBSCRIPT = 1 << 14;
/// Obsidian-style Wikilinks.
const ENABLE_WIKILINKS = 1 << 15;
- /// Colon-style Spoilers.
- const ENABLE_SPOILER = 1 << 16;
+ /// Colon-delimited Container Extension Blocks.
+ const ENABLE_CONTAINER_EXTENSIONS = 1 << 16;
}
}
diff --git a/pulldown-cmark/src/main.rs b/pulldown-cmark/src/main.rs
index f59d1e85..5eb2557f 100644
--- a/pulldown-cmark/src/main.rs
+++ b/pulldown-cmark/src/main.rs
@@ -109,7 +109,11 @@ pub fn main() -> std::io::Result<()> {
"enable Commonmark-HS-Extensions compatible definition lists",
);
opts.optflag("W", "enable-wikilinks", "enable wikilinks");
- opts.optflag("s", "enable-spoiler", "enable spoiler");
+ opts.optflag(
+ "C",
+ "enable-container-extensions",
+ "enable container extensions",
+ );
let matches = match opts.parse(&args[1..]) {
Ok(m) => m,
@@ -166,8 +170,8 @@ pub fn main() -> std::io::Result<()> {
if matches.opt_present("enable-wikilinks") {
opts.insert(Options::ENABLE_WIKILINKS);
}
- if matches.opt_present("enable-spoiler") {
- opts.insert(Options::ENABLE_SPOILER);
+ if matches.opt_present("enable-container-extensions") {
+ opts.insert(Options::ENABLE_CONTAINER_EXTENSIONS);
}
let mut input = String::new();
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index ee0d4513..9f42c525 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -40,8 +40,8 @@ use crate::{
scanners::*,
strings::CowStr,
tree::{Tree, TreeIndex},
- Alignment, BlockQuoteKind, CodeBlockKind, Event, HeadingLevel, LinkType, MetadataBlockKind,
- Options, Tag, TagEnd,
+ Alignment, BlockQuoteKind, CodeBlockKind, ContainerKind, Event, HeadingLevel, LinkType,
+ MetadataBlockKind, Options, Tag, TagEnd,
};
// Allowing arbitrary depth nested parentheses inside link destinations
@@ -114,7 +114,7 @@ pub(crate) enum ItemBody {
IndentCodeBlock,
HtmlBlock,
BlockQuote(Option),
- Spoiler(CowIndex),
+ Container(ContainerKind, CowIndex),
List(bool, u8, u64), // is_tight, list character, list start index
ListItem(usize), // indent level
FootnoteDefinition(CowIndex),
@@ -1452,8 +1452,8 @@ pub(crate) fn scan_containers(
let mut i = 0;
for &node_ix in tree.walk_spine() {
match tree[node_ix].item.body {
- ItemBody::Spoiler(..) => {
- if line_start.scan_closing_spoiler_fence() {
+ ItemBody::Container(..) => {
+ if line_start.scan_closing_container_extensions_fence() {
break;
}
}
@@ -2250,7 +2250,7 @@ fn body_to_tag_end(body: &ItemBody) -> TagEnd {
ItemBody::Image(..) => TagEnd::Image,
ItemBody::Heading(level, _) => TagEnd::Heading(level),
ItemBody::IndentCodeBlock | ItemBody::FencedCodeBlock(..) => TagEnd::CodeBlock,
- ItemBody::Spoiler(_) => TagEnd::SpoilerBlock,
+ ItemBody::Container(kind, _) => TagEnd::ContainerBlock(kind),
ItemBody::BlockQuote(kind) => TagEnd::BlockQuote(kind),
ItemBody::HtmlBlock => TagEnd::HtmlBlock,
ItemBody::List(_, c, _) => {
@@ -2331,7 +2331,7 @@ fn item_to_event<'a>(item: Item, text: &'a str, allocs: &mut Allocations<'a>) ->
Tag::CodeBlock(CodeBlockKind::Fenced(allocs.take_cow(cow_ix)))
}
ItemBody::IndentCodeBlock => Tag::CodeBlock(CodeBlockKind::Indented),
- ItemBody::Spoiler(cow_ix) => Tag::SpoilerBlock(allocs.take_cow(cow_ix)),
+ ItemBody::Container(kind, cow_ix) => Tag::ContainerBlock(kind, allocs.take_cow(cow_ix)),
ItemBody::BlockQuote(kind) => Tag::BlockQuote(kind),
ItemBody::List(_, c, listitem_start) => {
if c == b'.' || c == b')' {
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index 480360ec..8c5eddb2 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -269,19 +269,19 @@ impl<'a> LineStart<'a> {
}
}
- pub(crate) fn scan_spoiler_fence(&mut self) -> bool {
+ pub(crate) fn scan_container_extensions_fence(&mut self) -> bool {
if self.scan_case_insensitive(b":::") {
- if self.scan_case_insensitive(b" spoiler ") {
- true
- } else {
- false
- }
+ // if self.scan_case_insensitive(b" spoiler ") {
+ true
+ // } else {
+ // false
+ // }
} else {
false
}
}
- pub(crate) fn scan_closing_spoiler_fence(&mut self) -> bool {
+ pub(crate) fn scan_closing_container_extensions_fence(&mut self) -> bool {
if self.scan_case_insensitive(b":::") {
true
} else {
@@ -455,7 +455,7 @@ fn is_ascii_alpha(c: u8) -> bool {
c.is_ascii_alphabetic()
}
-fn is_ascii_alphanumeric(c: u8) -> bool {
+pub(crate) fn is_ascii_alphanumeric(c: u8) -> bool {
matches!(c, b'0'..=b'9' | b'a'..=b'z' | b'A'..=b'Z')
}
@@ -765,7 +765,7 @@ pub(crate) fn scan_code_fence(data: &[u8]) -> Option<(usize, u8)> {
/// Scan closing spoiler fence.
///
/// Returns number of bytes scanned and the char that is repeated to make the spoiler fence.
-pub(crate) fn scan_closing_spoiler_fence(data: &[u8]) -> Option<(usize, u8)> {
+pub(crate) fn scan_closing_container_extensions_fence(data: &[u8]) -> Option<(usize, u8)> {
let c = *data.first()?;
if !(c == b':') {
return None;
diff --git a/pulldown-cmark/tests/lib.rs b/pulldown-cmark/tests/lib.rs
index a5ddab47..28db823b 100644
--- a/pulldown-cmark/tests/lib.rs
+++ b/pulldown-cmark/tests/lib.rs
@@ -15,7 +15,7 @@ pub fn test_markdown_html(
subscript: bool,
wikilinks: bool,
deflists: bool,
- spoiler: bool,
+ container_extensions: bool,
) {
let mut s = String::new();
@@ -48,8 +48,8 @@ pub fn test_markdown_html(
if deflists {
opts.insert(Options::ENABLE_DEFINITION_LIST);
}
- if spoiler {
- opts.insert(Options::ENABLE_SPOILER);
+ if container_extensions {
+ opts.insert(Options::ENABLE_CONTAINER_EXTENSIONS);
}
let p = Parser::new_ext(input, opts);
diff --git a/pulldown-cmark/tests/suite/spoiler.rs b/pulldown-cmark/tests/suite/container_extensions.rs
similarity index 76%
rename from pulldown-cmark/tests/suite/spoiler.rs
rename to pulldown-cmark/tests/suite/container_extensions.rs
index 40c1418d..58d4d70a 100644
--- a/pulldown-cmark/tests/suite/spoiler.rs
+++ b/pulldown-cmark/tests/suite/container_extensions.rs
@@ -4,7 +4,7 @@
use super::test_markdown_html;
#[test]
-fn spoiler_test_1() {
+fn container_extensions_test_1() {
let original = r##"> Is this **bold**?
> Is this **bold**?
> ::: spoiler Is this expandable?
@@ -24,7 +24,7 @@ Is this bold?
}
#[test]
-fn spoiler_test_2() {
+fn container_extensions_test_2() {
let original = r##"::: spoiler Is this expandable?
Is this collapsable?
> Is this **bold**?
@@ -45,7 +45,7 @@ Is this bold?
}
#[test]
-fn spoiler_test_3() {
+fn container_extensions_test_3() {
let original = r##"::: spoiler Is this expandable?
Is this collapsable?
> Is this **bold**?
@@ -72,7 +72,7 @@ Is this bold?
}
#[test]
-fn spoiler_test_4() {
+fn container_extensions_test_4() {
let original = r##"::: spoiler Is this expandable?
Is this collapsable?
> Is this **bold**?
@@ -105,7 +105,7 @@ Is this bold?
}
#[test]
-fn spoiler_test_5() {
+fn container_extensions_test_5() {
let original = r##"::: spoiler Is this expandable?
Is this collapsable?
:::
@@ -122,7 +122,7 @@ Is this collapsable?
}
#[test]
-fn spoiler_test_6() {
+fn container_extensions_test_6() {
let original = r##"::: spoiler Is this expandable?
Is this collapsable?
@@ -138,3 +138,38 @@ Is this **bold**?
test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
+
+#[test]
+fn container_extensions_test_7() {
+ let original = r##":::spoiler Is this expandable?
+Is this collapsable?
+
+Is this **bold**?
+:::
+"##;
+ let expected = r##"
+Is this expandable?
+Is this collapsable?
+Is this bold?
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_8() {
+ let original = r##"::: example Is this expandable?
+Is this collapsable?
+
+Is this **bold**?
+:::
+"##;
+ let expected = r##"
+Is this collapsable?
+Is this bold?
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
diff --git a/pulldown-cmark/tests/suite/mod.rs b/pulldown-cmark/tests/suite/mod.rs
index 4e44cdb4..b6f01c44 100644
--- a/pulldown-cmark/tests/suite/mod.rs
+++ b/pulldown-cmark/tests/suite/mod.rs
@@ -4,6 +4,7 @@
pub use super::test_markdown_html;
mod blockquotes_tags;
+mod container_extensions;
mod definition_lists;
mod footnotes;
mod gfm_strikethrough;
@@ -16,7 +17,6 @@ mod old_footnotes;
mod regression;
mod smart_punct;
mod spec;
-mod spoiler;
mod strikethrough;
mod super_sub;
mod table;
From 267cce307573257bbe19dd85a6e29a35be35a9ce Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Wed, 2 Jul 2025 18:50:11 +0100
Subject: [PATCH 138/180] tidy
---
pulldown-cmark/specs/container_extensions.txt | 2 +-
pulldown-cmark/src/firstpass.rs | 8 ++------
pulldown-cmark/src/html.rs | 6 ------
pulldown-cmark/tests/suite/container_extensions.rs | 2 +-
4 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/pulldown-cmark/specs/container_extensions.txt b/pulldown-cmark/specs/container_extensions.txt
index 96a9c75d..79a75ff2 100644
--- a/pulldown-cmark/specs/container_extensions.txt
+++ b/pulldown-cmark/specs/container_extensions.txt
@@ -127,7 +127,7 @@ Is this **bold**?
````````````````````````````````
```````````````````````````````` example_container_extensions
-::: example Is this expandable?
+::: example
Is this collapsable?
Is this **bold**?
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 8e7ac8e6..29c99990 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -271,16 +271,12 @@ impl<'a, 'b> FirstPass<'a, 'b> {
{
let mut kind_start = start_ix + line_start.bytes_scanned();
kind_start += scan_whitespace_no_nl(&bytes[kind_start..]);
-
let kind_end = scan_while(&bytes[kind_start..], is_ascii_alphanumeric);
- // line_end - scan_rev_while(&bytes[summary_start..line_end], is_ascii_whitespace);
- //
let kind = unescape(
&self.text[kind_start..(kind_start + kind_end)],
self.tree.is_in_table(),
);
- // let mut summary_start = start_ix + line_start.bytes_scanned();
let mut summary_start = kind_start + kind_end;
summary_start += scan_whitespace_no_nl(&bytes[summary_start..]);
let line_end = summary_start + scan_nextline(&bytes[summary_start..]);
@@ -295,13 +291,13 @@ impl<'a, 'b> FirstPass<'a, 'b> {
if kind.eq_ignore_ascii_case("spoiler") {
self.tree.append(Item {
start: container_start,
- end: 0, // will get set later
+ end: 0,
body: ItemBody::Container(Spoiler, cow_ix),
});
} else if kind.eq_ignore_ascii_case("example") {
self.tree.append(Item {
start: container_start,
- end: 0, // will get set later
+ end: 0,
body: ItemBody::Container(Example, cow_ix),
});
}
diff --git a/pulldown-cmark/src/html.rs b/pulldown-cmark/src/html.rs
index a8f6b828..e269b0c1 100644
--- a/pulldown-cmark/src/html.rs
+++ b/pulldown-cmark/src/html.rs
@@ -283,13 +283,7 @@ where
if !self.end_newline {
self.write_newline()?;
}
- // if summary.is_empty() {
self.write("")
- // } else {
- // self.write("")
- // }
}
Tag::ContainerBlock(Spoiler, summary) => {
if !self.end_newline {
diff --git a/pulldown-cmark/tests/suite/container_extensions.rs b/pulldown-cmark/tests/suite/container_extensions.rs
index 58d4d70a..3d97cb26 100644
--- a/pulldown-cmark/tests/suite/container_extensions.rs
+++ b/pulldown-cmark/tests/suite/container_extensions.rs
@@ -159,7 +159,7 @@ Is this **bold**?
#[test]
fn container_extensions_test_8() {
- let original = r##"::: example Is this expandable?
+ let original = r##"::: example
Is this collapsable?
Is this **bold**?
From 72352b22d19966afdbd10be296f84d686b9de5dd Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Thu, 3 Jul 2025 11:10:42 +0100
Subject: [PATCH 139/180] further tidy
---
pulldown-cmark/src/scanners.rs | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index 8c5eddb2..5a821387 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -271,11 +271,7 @@ impl<'a> LineStart<'a> {
pub(crate) fn scan_container_extensions_fence(&mut self) -> bool {
if self.scan_case_insensitive(b":::") {
- // if self.scan_case_insensitive(b" spoiler ") {
true
- // } else {
- // false
- // }
} else {
false
}
@@ -762,9 +758,9 @@ pub(crate) fn scan_code_fence(data: &[u8]) -> Option<(usize, u8)> {
}
}
-/// Scan closing spoiler fence.
+/// Scan closing container extension fence.
///
-/// Returns number of bytes scanned and the char that is repeated to make the spoiler fence.
+/// Returns number of bytes scanned and the char that is repeated to make the container extension fence.
pub(crate) fn scan_closing_container_extensions_fence(data: &[u8]) -> Option<(usize, u8)> {
let c = *data.first()?;
if !(c == b':') {
From 4751f42c6aab0463c0d1a22b25a45558e24c2a86 Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Sat, 5 Jul 2025 14:38:43 +0100
Subject: [PATCH 140/180] add default container rendering
---
pulldown-cmark/src/firstpass.rs | 9 +++++----
pulldown-cmark/src/html.rs | 8 +++++---
pulldown-cmark/src/lib.rs | 2 +-
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 29c99990..48892d0a 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -286,19 +286,20 @@ impl<'a, 'b> FirstPass<'a, 'b> {
&self.text[summary_start..summary_end],
self.tree.is_in_table(),
);
- let cow_ix = self.allocs.allocate_cow(summary);
+ let summary_cow_ix = self.allocs.allocate_cow(summary);
if kind.eq_ignore_ascii_case("spoiler") {
self.tree.append(Item {
start: container_start,
end: 0,
- body: ItemBody::Container(Spoiler, cow_ix),
+ body: ItemBody::Container(Spoiler, summary_cow_ix),
});
- } else if kind.eq_ignore_ascii_case("example") {
+ } else {
+ let kind_cow_ix = self.allocs.allocate_cow(kind);
self.tree.append(Item {
start: container_start,
end: 0,
- body: ItemBody::Container(Example, cow_ix),
+ body: ItemBody::Container(Default, kind_cow_ix),
});
}
self.tree.push();
diff --git a/pulldown-cmark/src/html.rs b/pulldown-cmark/src/html.rs
index e269b0c1..9355bb8b 100644
--- a/pulldown-cmark/src/html.rs
+++ b/pulldown-cmark/src/html.rs
@@ -279,11 +279,13 @@ where
CodeBlockKind::Indented => self.write(""),
}
}
- Tag::ContainerBlock(Example, _) => {
+ Tag::ContainerBlock(Default, kind) => {
if !self.end_newline {
self.write_newline()?;
}
- self.write("")
+ self.write("")
}
Tag::ContainerBlock(Spoiler, summary) => {
if !self.end_newline {
@@ -458,7 +460,7 @@ where
TagEnd::ContainerBlock(Spoiler) => {
self.write("\n")?;
}
- TagEnd::ContainerBlock(Example) => {
+ TagEnd::ContainerBlock(Default) => {
self.write("\n")?;
}
TagEnd::List(true) => {
diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs
index 170d3fa5..390b3f13 100644
--- a/pulldown-cmark/src/lib.rs
+++ b/pulldown-cmark/src/lib.rs
@@ -162,8 +162,8 @@ pub enum BlockQuoteKind {
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum ContainerKind {
+ Default,
Spoiler,
- Example,
}
/// Metadata block kind.
From 3e11f667e46b99dc5568b99deba1b35a1c376019 Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Thu, 31 Jul 2025 15:35:22 +0100
Subject: [PATCH 141/180] long container fences
---
pulldown-cmark/specs/container_extensions.txt | 27 ++++++++++++++
pulldown-cmark/src/firstpass.rs | 19 +++++++---
pulldown-cmark/src/parse.rs | 10 +++---
pulldown-cmark/src/scanners.rs | 11 +++---
.../tests/suite/container_extensions.rs | 35 +++++++++++++++++++
5 files changed, 87 insertions(+), 15 deletions(-)
diff --git a/pulldown-cmark/specs/container_extensions.txt b/pulldown-cmark/specs/container_extensions.txt
index 79a75ff2..b7146e14 100644
--- a/pulldown-cmark/specs/container_extensions.txt
+++ b/pulldown-cmark/specs/container_extensions.txt
@@ -138,3 +138,30 @@ Is this **bold**?
Is this bold?
````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+:::: example
+Is this collapsable?
+
+Is this **bold**?
+::::
+.
+
+Is this collapsable?
+Is this bold?
+
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+:::::spoiler Is this expandable?
+Is this collapsable?
+
+Is this **bold**?
+:::::
+.
+
+Is this expandable?
+Is this collapsable?
+Is this bold?
+
+````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 48892d0a..1f6c84ab 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -15,8 +15,7 @@ use crate::{
scanners::*,
strings::CowStr,
tree::{Tree, TreeIndex},
- ContainerKind::*,
- HeadingLevel, MetadataBlockKind, Options,
+ ContainerKind, HeadingLevel, MetadataBlockKind, Options,
};
/// Runs the first pass, which resolves the block structure of the document,
@@ -269,7 +268,9 @@ impl<'a, 'b> FirstPass<'a, 'b> {
} else if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS)
&& line_start.scan_container_extensions_fence()
{
- let mut kind_start = start_ix + line_start.bytes_scanned();
+ let fence_length = scan_ch_repeat(&bytes[start_ix..], b':');
+
+ let mut kind_start = start_ix + fence_length;
kind_start += scan_whitespace_no_nl(&bytes[kind_start..]);
let kind_end = scan_while(&bytes[kind_start..], is_ascii_alphanumeric);
let kind = unescape(
@@ -292,14 +293,22 @@ impl<'a, 'b> FirstPass<'a, 'b> {
self.tree.append(Item {
start: container_start,
end: 0,
- body: ItemBody::Container(Spoiler, summary_cow_ix),
+ body: ItemBody::Container(
+ fence_length,
+ ContainerKind::Spoiler,
+ summary_cow_ix,
+ ),
});
} else {
let kind_cow_ix = self.allocs.allocate_cow(kind);
self.tree.append(Item {
start: container_start,
end: 0,
- body: ItemBody::Container(Default, kind_cow_ix),
+ body: ItemBody::Container(
+ fence_length,
+ ContainerKind::Default,
+ kind_cow_ix,
+ ),
});
}
self.tree.push();
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 05ff9625..35fa53a9 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -114,7 +114,7 @@ pub(crate) enum ItemBody {
IndentCodeBlock,
HtmlBlock,
BlockQuote(Option),
- Container(ContainerKind, CowIndex),
+ Container(usize, ContainerKind, CowIndex),
List(bool, u8, u64), // is_tight, list character, list start index
ListItem(usize), // indent level
FootnoteDefinition(CowIndex),
@@ -1471,8 +1471,8 @@ pub(crate) fn scan_containers(
let mut i = 0;
for &node_ix in tree.walk_spine() {
match tree[node_ix].item.body {
- ItemBody::Container(..) => {
- if line_start.scan_closing_container_extensions_fence() {
+ ItemBody::Container(length, ..) => {
+ if line_start.scan_closing_container_extensions_fence(length) {
break;
}
}
@@ -2300,7 +2300,7 @@ fn body_to_tag_end(body: &ItemBody) -> TagEnd {
ItemBody::Image(..) => TagEnd::Image,
ItemBody::Heading(level, _) => TagEnd::Heading(level),
ItemBody::IndentCodeBlock | ItemBody::FencedCodeBlock(..) => TagEnd::CodeBlock,
- ItemBody::Container(kind, _) => TagEnd::ContainerBlock(kind),
+ ItemBody::Container(_, kind, _) => TagEnd::ContainerBlock(kind),
ItemBody::BlockQuote(kind) => TagEnd::BlockQuote(kind),
ItemBody::HtmlBlock => TagEnd::HtmlBlock,
ItemBody::List(_, c, _) => {
@@ -2381,7 +2381,7 @@ fn item_to_event<'a>(item: Item, text: &'a str, allocs: &mut Allocations<'a>) ->
Tag::CodeBlock(CodeBlockKind::Fenced(allocs.take_cow(cow_ix)))
}
ItemBody::IndentCodeBlock => Tag::CodeBlock(CodeBlockKind::Indented),
- ItemBody::Container(kind, cow_ix) => Tag::ContainerBlock(kind, allocs.take_cow(cow_ix)),
+ ItemBody::Container(_, kind, cow_ix) => Tag::ContainerBlock(kind, allocs.take_cow(cow_ix)),
ItemBody::BlockQuote(kind) => Tag::BlockQuote(kind),
ItemBody::List(_, c, listitem_start) => {
if c == b'.' || c == b')' {
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index 5a821387..2fc001e6 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -277,12 +277,13 @@ impl<'a> LineStart<'a> {
}
}
- pub(crate) fn scan_closing_container_extensions_fence(&mut self) -> bool {
- if self.scan_case_insensitive(b":::") {
- true
- } else {
- false
+ pub(crate) fn scan_closing_container_extensions_fence(&mut self, length: usize) -> bool {
+ for _ in 0..length {
+ if !self.scan_ch(b':') {
+ return false;
+ }
}
+ true
}
/// Scan a definition marker.
diff --git a/pulldown-cmark/tests/suite/container_extensions.rs b/pulldown-cmark/tests/suite/container_extensions.rs
index 3d97cb26..cf8722c3 100644
--- a/pulldown-cmark/tests/suite/container_extensions.rs
+++ b/pulldown-cmark/tests/suite/container_extensions.rs
@@ -173,3 +173,38 @@ Is this **bold**?
test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
+
+#[test]
+fn container_extensions_test_9() {
+ let original = r##":::: example
+Is this collapsable?
+
+Is this **bold**?
+::::
+"##;
+ let expected = r##"
+Is this collapsable?
+Is this bold?
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_10() {
+ let original = r##":::::spoiler Is this expandable?
+Is this collapsable?
+
+Is this **bold**?
+:::::
+"##;
+ let expected = r##"
+Is this expandable?
+Is this collapsable?
+Is this bold?
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
From 7e614c8f331b3b59e960adbeb9fcaf46ad6935be Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Fri, 1 Aug 2025 19:21:35 +0100
Subject: [PATCH 142/180] commonmark-hs compatibility
---
pulldown-cmark/specs/container_extensions.txt | 42 ++++++++
pulldown-cmark/src/firstpass.rs | 88 ++++++++-------
pulldown-cmark/src/scanners.rs | 9 +-
.../tests/suite/container_extensions.rs | 100 ++++++++++++++++--
4 files changed, 180 insertions(+), 59 deletions(-)
diff --git a/pulldown-cmark/specs/container_extensions.txt b/pulldown-cmark/specs/container_extensions.txt
index b7146e14..e8ab0583 100644
--- a/pulldown-cmark/specs/container_extensions.txt
+++ b/pulldown-cmark/specs/container_extensions.txt
@@ -165,3 +165,45 @@ Is this **bold**?
Is this bold?
````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+:::
+
+content
+
+:::
+.
+:::
+content
+:::
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+::: block
+
+content
+
+::: end
+.
+
+content
+
+
+
+
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+ ::: block
+:::
+
+::: block
+ :::
+.
+
+
+
+
+
+
+````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 1f6c84ab..402be6c4 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -266,53 +266,59 @@ impl<'a, 'b> FirstPass<'a, 'b> {
}
}
} else if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS)
- && line_start.scan_container_extensions_fence()
+ && scan_ch_repeat(&bytes[(start_ix + line_start.bytes_scanned())..], b':') > 2
{
- let fence_length = scan_ch_repeat(&bytes[start_ix..], b':');
+ let fence_length =
+ //3 +
+ scan_ch_repeat(&bytes[(start_ix + line_start.bytes_scanned())..], b':');
- let mut kind_start = start_ix + fence_length;
+ let mut kind_start = start_ix + line_start.bytes_scanned() + fence_length; // - 3;
kind_start += scan_whitespace_no_nl(&bytes[kind_start..]);
- let kind_end = scan_while(&bytes[kind_start..], is_ascii_alphanumeric);
- let kind = unescape(
- &self.text[kind_start..(kind_start + kind_end)],
- self.tree.is_in_table(),
- );
+ let kind_length = scan_while(&bytes[kind_start..], is_ascii_alphanumeric);
+ if kind_length == 0 {
+ break;
+ } else {
+ let kind = unescape(
+ &self.text[kind_start..(kind_start + kind_length)],
+ self.tree.is_in_table(),
+ );
- let mut summary_start = kind_start + kind_end;
- summary_start += scan_whitespace_no_nl(&bytes[summary_start..]);
- let line_end = summary_start + scan_nextline(&bytes[summary_start..]);
- let summary_end =
- line_end - scan_rev_while(&bytes[summary_start..line_end], is_ascii_whitespace);
- let summary = unescape(
- &self.text[summary_start..summary_end],
- self.tree.is_in_table(),
- );
- let summary_cow_ix = self.allocs.allocate_cow(summary);
+ let mut summary_start = kind_start + kind_length;
+ summary_start += scan_whitespace_no_nl(&bytes[summary_start..]);
+ let line_end = summary_start + scan_nextline(&bytes[summary_start..]);
+ let summary_end = line_end
+ - scan_rev_while(&bytes[summary_start..line_end], is_ascii_whitespace);
+ let summary = unescape(
+ &self.text[summary_start..summary_end],
+ self.tree.is_in_table(),
+ );
+ let summary_cow_ix = self.allocs.allocate_cow(summary);
- if kind.eq_ignore_ascii_case("spoiler") {
- self.tree.append(Item {
- start: container_start,
- end: 0,
- body: ItemBody::Container(
- fence_length,
- ContainerKind::Spoiler,
- summary_cow_ix,
- ),
- });
- } else {
- let kind_cow_ix = self.allocs.allocate_cow(kind);
- self.tree.append(Item {
- start: container_start,
- end: 0,
- body: ItemBody::Container(
- fence_length,
- ContainerKind::Default,
- kind_cow_ix,
- ),
- });
+ if kind.eq_ignore_ascii_case("spoiler") {
+ self.tree.append(Item {
+ start: container_start,
+ end: 0,
+ body: ItemBody::Container(
+ fence_length,
+ ContainerKind::Spoiler,
+ summary_cow_ix,
+ ),
+ });
+ } else {
+ let kind_cow_ix = self.allocs.allocate_cow(kind);
+ self.tree.append(Item {
+ start: container_start,
+ end: 0,
+ body: ItemBody::Container(
+ fence_length,
+ ContainerKind::Default,
+ kind_cow_ix,
+ ),
+ });
+ }
+ self.tree.push();
+ return summary_end + 1;
}
- self.tree.push();
- return summary_end + 1;
} else {
line_start = save;
break;
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index 2fc001e6..2fa8e229 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -269,15 +269,8 @@ impl<'a> LineStart<'a> {
}
}
- pub(crate) fn scan_container_extensions_fence(&mut self) -> bool {
- if self.scan_case_insensitive(b":::") {
- true
- } else {
- false
- }
- }
-
pub(crate) fn scan_closing_container_extensions_fence(&mut self, length: usize) -> bool {
+ self.scan_all_space();
for _ in 0..length {
if !self.scan_ch(b':') {
return false;
diff --git a/pulldown-cmark/tests/suite/container_extensions.rs b/pulldown-cmark/tests/suite/container_extensions.rs
index cf8722c3..d172da2d 100644
--- a/pulldown-cmark/tests/suite/container_extensions.rs
+++ b/pulldown-cmark/tests/suite/container_extensions.rs
@@ -20,7 +20,9 @@ Is this bold?
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
#[test]
@@ -41,7 +43,9 @@ Is this bold?
is this seperate and bold
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
#[test]
@@ -68,7 +72,9 @@ Is this bold?
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
#[test]
@@ -101,7 +107,9 @@ Is this bold?
is this seperate and bold
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
#[test]
@@ -118,7 +126,9 @@ Is this collapsable?
is this seperate and bold
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
#[test]
@@ -136,7 +146,9 @@ Is this **bold**?
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
#[test]
@@ -154,7 +166,9 @@ Is this **bold**?
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
#[test]
@@ -171,7 +185,9 @@ Is this **bold**?
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
#[test]
@@ -188,7 +204,9 @@ Is this **bold**?
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
#[test]
@@ -206,5 +224,67 @@ Is this **bold**?
"##;
- test_markdown_html(original, expected, false, false, false, false, false, false, true);
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
+}
+
+#[test]
+fn container_extensions_test_11() {
+ let original = r##":::
+
+content
+
+:::
+"##;
+ let expected = r##":::
+content
+:::
+"##;
+
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
+}
+
+#[test]
+fn container_extensions_test_12() {
+ let original = r##"::: block
+
+content
+
+::: end
+"##;
+ let expected = r##"
+content
+
+
+
+
+"##;
+
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
+}
+
+#[test]
+fn container_extensions_test_13() {
+ let original = r##" ::: block
+:::
+
+::: block
+ :::
+"##;
+ let expected = r##"
+
+
+
+
+
+"##;
+
+ test_markdown_html(
+ original, expected, false, false, false, false, false, false, true,
+ );
}
From 7439f9ffb82265c4e4519b4a5aa2cb6699ac6d5e Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Fri, 1 Aug 2025 19:33:06 +0100
Subject: [PATCH 143/180] fix tests
---
pulldown-cmark/specs/container_extensions.txt | 14 +---
.../tests/suite/container_extensions.rs | 66 +++++--------------
2 files changed, 17 insertions(+), 63 deletions(-)
diff --git a/pulldown-cmark/specs/container_extensions.txt b/pulldown-cmark/specs/container_extensions.txt
index e8ab0583..d2c2bb42 100644
--- a/pulldown-cmark/specs/container_extensions.txt
+++ b/pulldown-cmark/specs/container_extensions.txt
@@ -185,12 +185,7 @@ content
::: end
.
-
-content
-
-
-
-
+content
end
````````````````````````````````
```````````````````````````````` example_container_extensions
@@ -200,10 +195,5 @@ content
::: block
:::
.
-
-
-
-
-
-
+
````````````````````````````````
diff --git a/pulldown-cmark/tests/suite/container_extensions.rs b/pulldown-cmark/tests/suite/container_extensions.rs
index d172da2d..daeb4816 100644
--- a/pulldown-cmark/tests/suite/container_extensions.rs
+++ b/pulldown-cmark/tests/suite/container_extensions.rs
@@ -20,9 +20,7 @@ Is this bold?
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -43,9 +41,7 @@ Is this bold?
is this seperate and bold
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -72,9 +68,7 @@ Is this bold?
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -107,9 +101,7 @@ Is this bold?
is this seperate and bold
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -126,9 +118,7 @@ Is this collapsable?
is this seperate and bold
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -146,9 +136,7 @@ Is this **bold**?
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -166,9 +154,7 @@ Is this **bold**?
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -185,9 +171,7 @@ Is this **bold**?
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -204,9 +188,7 @@ Is this **bold**?
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -224,9 +206,7 @@ Is this **bold**?
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -242,9 +222,7 @@ content
:::
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -255,17 +233,10 @@ content
::: end
"##;
- let expected = r##"
-content
-
-
-
-
+ let expected = r##"content
end
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
#[test]
@@ -276,15 +247,8 @@ fn container_extensions_test_13() {
::: block
:::
"##;
- let expected = r##"
-
-
-
-
-
+ let expected = r##"
"##;
- test_markdown_html(
- original, expected, false, false, false, false, false, false, true,
- );
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
From d5a7b0c051a7207fcf1594b345b0d628723a7a0f Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Fri, 1 Aug 2025 19:40:19 +0100
Subject: [PATCH 144/180] fix node_size body_size
---
pulldown-cmark/src/parse.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 35fa53a9..501ddf48 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -2438,14 +2438,14 @@ mod test {
#[cfg(target_pointer_width = "64")]
fn node_size() {
let node_size = core::mem::size_of::>();
- assert_eq!(48, node_size);
+ assert_eq!(56, node_size);
}
#[test]
#[cfg(target_pointer_width = "64")]
fn body_size() {
let body_size = core::mem::size_of::();
- assert_eq!(16, body_size);
+ assert_eq!(24, body_size);
}
#[test]
From 18e4ae1c84ffa3121518e63a0cc7e1f666110f04 Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Thu, 7 Aug 2025 14:30:58 +0100
Subject: [PATCH 145/180] commonmark-hs bug fixes
---
pulldown-cmark/specs/container_extensions.txt | 67 +++++++++++++-
pulldown-cmark/src/firstpass.rs | 6 +-
pulldown-cmark/src/parse.rs | 90 +++++++++++--------
pulldown-cmark/src/scanners.rs | 51 +++++------
.../tests/suite/container_extensions.rs | 87 +++++++++++++++++-
5 files changed, 233 insertions(+), 68 deletions(-)
diff --git a/pulldown-cmark/specs/container_extensions.txt b/pulldown-cmark/specs/container_extensions.txt
index d2c2bb42..98fb9610 100644
--- a/pulldown-cmark/specs/container_extensions.txt
+++ b/pulldown-cmark/specs/container_extensions.txt
@@ -185,7 +185,11 @@ content
::: end
.
-content
end
+
+content
+
+
+
````````````````````````````````
```````````````````````````````` example_container_extensions
@@ -195,5 +199,64 @@ content
::: block
:::
.
-
+
+
+
+
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+::: a
+::: b
+
+:::
+:::
+.
+
+
+
+
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+:::
+Hi
+:::
+.
+:::
+Hi
+:::
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+::::: foo
+Hi
+:::
+::::::
+.
+
+Hi
+:::
+
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+> ::: foo
+> Hi
+.
+
+
+Hi
+
+
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+::: c_d
+Hi
+:::
+.
+
+Hi
+
````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 402be6c4..521d1a16 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -274,7 +274,9 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let mut kind_start = start_ix + line_start.bytes_scanned() + fence_length; // - 3;
kind_start += scan_whitespace_no_nl(&bytes[kind_start..]);
- let kind_length = scan_while(&bytes[kind_start..], is_ascii_alphanumeric);
+ let kind_length = scan_while(&bytes[kind_start..], |c| {
+ is_ascii_alphanumeric(c) || c == b'_' || c == b'-' || c == b':' || c == b'.'
+ });
if kind_length == 0 {
break;
} else {
@@ -2187,7 +2189,7 @@ fn scan_paragraph_interrupt_no_table(
|| scan_hrule(bytes).is_ok()
|| scan_atx_heading(bytes).is_some()
|| scan_code_fence(bytes).is_some()
- || scan_closing_container_extensions_fence(bytes).is_some()
+ || scan_interrupting_container_extensions_fence(bytes)
|| scan_blockquote_start(bytes).is_some()
|| scan_listitem(bytes).map_or(false, |(ix, delim, index, _)| {
! current_container ||
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 501ddf48..977aa099 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -1468,49 +1468,69 @@ pub(crate) fn scan_containers(
line_start: &mut LineStart<'_>,
options: Options,
) -> usize {
- let mut i = 0;
- for &node_ix in tree.walk_spine() {
- match tree[node_ix].item.body {
- ItemBody::Container(length, ..) => {
- if line_start.scan_closing_container_extensions_fence(length) {
- break;
- }
- }
- ItemBody::BlockQuote(..) => {
- let save = line_start.clone();
- let _ = line_start.scan_space(3);
- if !line_start.scan_blockquote_marker() {
- *line_start = save;
- break;
- }
- }
- ItemBody::ListItem(indent) => {
- let save = line_start.clone();
- if !line_start.scan_space(indent) && !line_start.is_at_eol() {
- *line_start = save;
- break;
+ if tree.spine_len() > 0 {
+ let mut i = tree.spine_len();
+ for &node_ix in tree.walk_spine().rev() {
+ match tree[node_ix].item.body {
+ ItemBody::Container(length, ..) => {
+ if line_start.scan_closing_container_extensions_fence(length) {
+ break;
+ }
}
+ _ => (),
}
- ItemBody::DefinitionListDefinition(indent) => {
- let save = line_start.clone();
- if !line_start.scan_space(indent) && !line_start.is_at_eol() {
- *line_start = save;
- break;
+ i = i - 1;
+ }
+ if i > 0 {
+ i - 1
+ } else {
+ let mut i = 0;
+ for &node_ix in tree.walk_spine() {
+ match tree[node_ix].item.body {
+ ItemBody::BlockQuote(..) => {
+ let save = line_start.clone();
+ let _ = line_start.scan_space(3);
+ if !line_start.scan_blockquote_marker() {
+ *line_start = save;
+ break;
+ }
+ }
+ ItemBody::ListItem(indent) => {
+ let save = line_start.clone();
+ if !line_start.scan_space(indent) && !line_start.is_at_eol() {
+ *line_start = save;
+ break;
+ }
+ }
+ ItemBody::DefinitionListDefinition(indent) => {
+ let save = line_start.clone();
+ if !line_start.scan_space(indent) && !line_start.is_at_eol() {
+ *line_start = save;
+ break;
+ }
+ }
+ ItemBody::FootnoteDefinition(..) if options.has_gfm_footnotes() => {
+ let save = line_start.clone();
+ if !line_start.scan_space(4) && !line_start.is_at_eol() {
+ *line_start = save;
+ break;
+ }
+ }
+ _ => (),
}
+ i = i + 1;
}
- ItemBody::FootnoteDefinition(..) if options.has_gfm_footnotes() => {
- let save = line_start.clone();
- if !line_start.scan_space(4) && !line_start.is_at_eol() {
- *line_start = save;
- break;
- }
+ if i < tree.spine_len() {
+ i
+ } else {
+ tree.spine_len()
}
- _ => (),
}
- i += 1;
+ } else {
+ 0
}
- i
}
+
pub(crate) fn skip_container_prefixes(tree: &Tree- , bytes: &[u8], options: Options) -> usize {
let mut line_start = LineStart::new(bytes);
let _ = scan_containers(tree, &mut line_start, options);
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index 2fa8e229..39b9be61 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -270,13 +270,19 @@ impl<'a> LineStart<'a> {
}
pub(crate) fn scan_closing_container_extensions_fence(&mut self, length: usize) -> bool {
- self.scan_all_space();
- for _ in 0..length {
- if !self.scan_ch(b':') {
- return false;
- }
+ let nl_ix = scan_nextline(&self.bytes[self.ix..]);
+ let eol_length = scan_rev_while(&self.bytes[self.ix..nl_ix], |c| {
+ c == b'\n' || c == b'\r' || c == b' '
+ });
+ let fence_length =
+ scan_rev_while(&self.bytes[self.ix..(nl_ix - eol_length)], |c| c == b':');
+
+ if fence_length >= length {
+ self.ix = self.ix + (nl_ix - eol_length);
+ true
+ } else {
+ false
}
- true
}
/// Scan a definition marker.
@@ -517,7 +523,9 @@ pub(crate) fn scan_blank_line(bytes: &[u8]) -> Option
{
}
pub(crate) fn scan_nextline(bytes: &[u8]) -> usize {
- memchr(b'\n', bytes).map_or(bytes.len(), |x| x + 1)
+ memchr(b'\n', bytes).map_or(memchr(b'\r', bytes).map_or(bytes.len(), |x| x + 1), |x| {
+ x + 1
+ })
}
// return: end byte for closing code fence, or None
@@ -752,27 +760,16 @@ pub(crate) fn scan_code_fence(data: &[u8]) -> Option<(usize, u8)> {
}
}
-/// Scan closing container extension fence.
-///
-/// Returns number of bytes scanned and the char that is repeated to make the container extension fence.
-pub(crate) fn scan_closing_container_extensions_fence(data: &[u8]) -> Option<(usize, u8)> {
- let c = *data.first()?;
- if !(c == b':') {
- return None;
- }
- let i = 1 + scan_ch_repeat(&data[1..], c);
- if i >= 3 {
- if c == b':' {
- let suffix = &data[i..];
- let next_line = i + scan_nextline(suffix);
- // FIXME: make sure this is correct
- if suffix[..(next_line - i)].iter().any(|&b| b == b':') {
- return None;
- }
- }
- Some((i, c))
+pub(crate) fn scan_interrupting_container_extensions_fence(data: &[u8]) -> bool {
+ let fence_length = scan_ch_repeat(data, b':');
+ let kind_start = fence_length + scan_whitespace_no_nl(&data[fence_length..]);
+ let kind_length = scan_while(&data[kind_start..], |c| {
+ is_ascii_alphanumeric(c) || c == b'_' || c == b'-' || c == b':' || c == b'.'
+ });
+ if fence_length > 2 && kind_length > 0 {
+ true
} else {
- None
+ false
}
}
diff --git a/pulldown-cmark/tests/suite/container_extensions.rs b/pulldown-cmark/tests/suite/container_extensions.rs
index daeb4816..a76428b2 100644
--- a/pulldown-cmark/tests/suite/container_extensions.rs
+++ b/pulldown-cmark/tests/suite/container_extensions.rs
@@ -233,7 +233,11 @@ content
::: end
"##;
- let expected = r##"content
end
+ let expected = r##"
+content
+
+
+
"##;
test_markdown_html(original, expected, false, false, false, false, false, false, true);
@@ -247,7 +251,86 @@ fn container_extensions_test_13() {
::: block
:::
"##;
- let expected = r##"
+ let expected = r##"
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_14() {
+ let original = r##"::: a
+::: b
+
+:::
+:::
+"##;
+ let expected = r##"
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_15() {
+ let original = r##":::
+Hi
+:::
+"##;
+ let expected = r##":::
+Hi
+:::
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_16() {
+ let original = r##"::::: foo
+Hi
+:::
+::::::
+"##;
+ let expected = r##"
+Hi
+:::
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_17() {
+ let original = r##"> ::: foo
+> Hi
+"##;
+ let expected = r##"
+
+Hi
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_18() {
+ let original = r##"::: c_d
+Hi
+:::
+"##;
+ let expected = r##"
+Hi
+
"##;
test_markdown_html(original, expected, false, false, false, false, false, false, true);
From 9af5e84ab5e17e7d58418cd2514578a1ee0a7aef Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Thu, 7 Aug 2025 14:46:56 +0100
Subject: [PATCH 146/180] tidy
---
pulldown-cmark/src/firstpass.rs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 521d1a16..ffe32d45 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -269,10 +269,9 @@ impl<'a, 'b> FirstPass<'a, 'b> {
&& scan_ch_repeat(&bytes[(start_ix + line_start.bytes_scanned())..], b':') > 2
{
let fence_length =
- //3 +
scan_ch_repeat(&bytes[(start_ix + line_start.bytes_scanned())..], b':');
- let mut kind_start = start_ix + line_start.bytes_scanned() + fence_length; // - 3;
+ let mut kind_start = start_ix + line_start.bytes_scanned() + fence_length;
kind_start += scan_whitespace_no_nl(&bytes[kind_start..]);
let kind_length = scan_while(&bytes[kind_start..], |c| {
is_ascii_alphanumeric(c) || c == b'_' || c == b'-' || c == b':' || c == b'.'
From 674ae5f0662ec9819156b0db19b9df30d4591611 Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Thu, 7 Aug 2025 14:55:45 +0100
Subject: [PATCH 147/180] couple more tests
---
pulldown-cmark/specs/container_extensions.txt | 26 ++++++++++++
.../tests/suite/container_extensions.rs | 40 +++++++++++++++++--
2 files changed, 63 insertions(+), 3 deletions(-)
diff --git a/pulldown-cmark/specs/container_extensions.txt b/pulldown-cmark/specs/container_extensions.txt
index 98fb9610..461623e6 100644
--- a/pulldown-cmark/specs/container_extensions.txt
+++ b/pulldown-cmark/specs/container_extensions.txt
@@ -218,6 +218,32 @@ content
````````````````````````````````
+```````````````````````````````` example_container_extensions
+:::: a
+::: b
+
+:::
+::::
+.
+
+
+
+
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+::: a
+:::: b
+
+::::
+:::
+.
+
+
+
+
+````````````````````````````````
+
```````````````````````````````` example_container_extensions
:::
Hi
diff --git a/pulldown-cmark/tests/suite/container_extensions.rs b/pulldown-cmark/tests/suite/container_extensions.rs
index a76428b2..c26b0d5c 100644
--- a/pulldown-cmark/tests/suite/container_extensions.rs
+++ b/pulldown-cmark/tests/suite/container_extensions.rs
@@ -279,6 +279,40 @@ fn container_extensions_test_14() {
#[test]
fn container_extensions_test_15() {
+ let original = r##":::: a
+::: b
+
+:::
+::::
+"##;
+ let expected = r##"
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_16() {
+ let original = r##"::: a
+:::: b
+
+::::
+:::
+"##;
+ let expected = r##"
+
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_17() {
let original = r##":::
Hi
:::
@@ -292,7 +326,7 @@ Hi
}
#[test]
-fn container_extensions_test_16() {
+fn container_extensions_test_18() {
let original = r##"::::: foo
Hi
:::
@@ -308,7 +342,7 @@ Hi
}
#[test]
-fn container_extensions_test_17() {
+fn container_extensions_test_19() {
let original = r##"> ::: foo
> Hi
"##;
@@ -323,7 +357,7 @@ fn container_extensions_test_17() {
}
#[test]
-fn container_extensions_test_18() {
+fn container_extensions_test_20() {
let original = r##"::: c_d
Hi
:::
From 57d309571380b32d91a545b2b8db01fb255b363e Mon Sep 17 00:00:00 2001
From: rhysd
Date: Sun, 10 Aug 2025 22:41:33 +0900
Subject: [PATCH 148/180] Move benchmark assets to `bench/third_party/`
to reduce the number of licenses in the pulldown-cmark package so that
users can reduce their audit cost.
---
bench/benches/html_rendering.rs | 2 +-
bench/benches/markdown-it.rs | 2 +-
{pulldown-cmark => bench}/third_party/markdown-it/LICENSE | 0
{pulldown-cmark => bench}/third_party/markdown-it/README.md | 0
.../third_party/markdown-it/block-bq-flat.md | 0
.../third_party/markdown-it/block-bq-nested.md | 0
{pulldown-cmark => bench}/third_party/markdown-it/block-code.md | 0
.../third_party/markdown-it/block-fences.md | 0
.../third_party/markdown-it/block-heading.md | 0
{pulldown-cmark => bench}/third_party/markdown-it/block-hr.md | 0
{pulldown-cmark => bench}/third_party/markdown-it/block-html.md | 0
.../third_party/markdown-it/block-lheading.md | 0
.../third_party/markdown-it/block-list-flat.md | 0
.../third_party/markdown-it/block-list-nested.md | 0
.../third_party/markdown-it/block-ref-flat.md | 0
.../third_party/markdown-it/block-ref-nested.md | 0
.../third_party/markdown-it/inline-autolink.md | 0
.../third_party/markdown-it/inline-backticks.md | 0
.../third_party/markdown-it/inline-em-flat.md | 0
.../third_party/markdown-it/inline-em-nested.md | 0
.../third_party/markdown-it/inline-em-worst.md | 0
.../third_party/markdown-it/inline-entity.md | 0
.../third_party/markdown-it/inline-escape.md | 0
.../third_party/markdown-it/inline-html.md | 0
.../third_party/markdown-it/inline-links-flat.md | 0
.../third_party/markdown-it/inline-links-nested.md | 0
.../third_party/markdown-it/inline-newlines.md | 0
{pulldown-cmark => bench}/third_party/markdown-it/lorem1.md | 0
{pulldown-cmark => bench}/third_party/markdown-it/rawtabs.md | 0
{pulldown-cmark => bench}/third_party/xi-editor/LICENSE | 0
{pulldown-cmark => bench}/third_party/xi-editor/crdt.md | 0
31 files changed, 2 insertions(+), 2 deletions(-)
rename {pulldown-cmark => bench}/third_party/markdown-it/LICENSE (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/README.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-bq-flat.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-bq-nested.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-code.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-fences.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-heading.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-hr.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-html.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-lheading.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-list-flat.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-list-nested.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-ref-flat.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/block-ref-nested.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-autolink.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-backticks.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-em-flat.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-em-nested.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-em-worst.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-entity.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-escape.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-html.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-links-flat.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-links-nested.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/inline-newlines.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/lorem1.md (100%)
rename {pulldown-cmark => bench}/third_party/markdown-it/rawtabs.md (100%)
rename {pulldown-cmark => bench}/third_party/xi-editor/LICENSE (100%)
rename {pulldown-cmark => bench}/third_party/xi-editor/crdt.md (100%)
diff --git a/bench/benches/html_rendering.rs b/bench/benches/html_rendering.rs
index 5f047050..788866eb 100644
--- a/bench/benches/html_rendering.rs
+++ b/bench/benches/html_rendering.rs
@@ -2,7 +2,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
use pulldown_cmark::{html, Options, Parser};
use std::str::from_utf8;
-static CRDT_BYTES: &[u8] = include_bytes!("../../pulldown-cmark/third_party/xi-editor/crdt.md");
+static CRDT_BYTES: &[u8] = include_bytes!("../third_party/xi-editor/crdt.md");
fn criterion_benchmark(c: &mut Criterion) {
let mut full_opts = Options::empty();
diff --git a/bench/benches/markdown-it.rs b/bench/benches/markdown-it.rs
index 4599af8e..69cbc2a7 100644
--- a/bench/benches/markdown-it.rs
+++ b/bench/benches/markdown-it.rs
@@ -3,7 +3,7 @@ use pulldown_cmark::{html, Parser};
use std::fs::{read_dir, read_to_string};
pub fn markdown_it_samples(c: &mut Criterion) {
- let folder = read_dir("../pulldown-cmark/third_party/markdown-it").unwrap();
+ let folder = read_dir("./third_party/markdown-it").unwrap();
for entry in folder {
let entry = entry.unwrap();
diff --git a/pulldown-cmark/third_party/markdown-it/LICENSE b/bench/third_party/markdown-it/LICENSE
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/LICENSE
rename to bench/third_party/markdown-it/LICENSE
diff --git a/pulldown-cmark/third_party/markdown-it/README.md b/bench/third_party/markdown-it/README.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/README.md
rename to bench/third_party/markdown-it/README.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-bq-flat.md b/bench/third_party/markdown-it/block-bq-flat.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-bq-flat.md
rename to bench/third_party/markdown-it/block-bq-flat.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-bq-nested.md b/bench/third_party/markdown-it/block-bq-nested.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-bq-nested.md
rename to bench/third_party/markdown-it/block-bq-nested.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-code.md b/bench/third_party/markdown-it/block-code.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-code.md
rename to bench/third_party/markdown-it/block-code.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-fences.md b/bench/third_party/markdown-it/block-fences.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-fences.md
rename to bench/third_party/markdown-it/block-fences.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-heading.md b/bench/third_party/markdown-it/block-heading.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-heading.md
rename to bench/third_party/markdown-it/block-heading.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-hr.md b/bench/third_party/markdown-it/block-hr.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-hr.md
rename to bench/third_party/markdown-it/block-hr.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-html.md b/bench/third_party/markdown-it/block-html.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-html.md
rename to bench/third_party/markdown-it/block-html.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-lheading.md b/bench/third_party/markdown-it/block-lheading.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-lheading.md
rename to bench/third_party/markdown-it/block-lheading.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-list-flat.md b/bench/third_party/markdown-it/block-list-flat.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-list-flat.md
rename to bench/third_party/markdown-it/block-list-flat.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-list-nested.md b/bench/third_party/markdown-it/block-list-nested.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-list-nested.md
rename to bench/third_party/markdown-it/block-list-nested.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-ref-flat.md b/bench/third_party/markdown-it/block-ref-flat.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-ref-flat.md
rename to bench/third_party/markdown-it/block-ref-flat.md
diff --git a/pulldown-cmark/third_party/markdown-it/block-ref-nested.md b/bench/third_party/markdown-it/block-ref-nested.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/block-ref-nested.md
rename to bench/third_party/markdown-it/block-ref-nested.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-autolink.md b/bench/third_party/markdown-it/inline-autolink.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-autolink.md
rename to bench/third_party/markdown-it/inline-autolink.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-backticks.md b/bench/third_party/markdown-it/inline-backticks.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-backticks.md
rename to bench/third_party/markdown-it/inline-backticks.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-em-flat.md b/bench/third_party/markdown-it/inline-em-flat.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-em-flat.md
rename to bench/third_party/markdown-it/inline-em-flat.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-em-nested.md b/bench/third_party/markdown-it/inline-em-nested.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-em-nested.md
rename to bench/third_party/markdown-it/inline-em-nested.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-em-worst.md b/bench/third_party/markdown-it/inline-em-worst.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-em-worst.md
rename to bench/third_party/markdown-it/inline-em-worst.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-entity.md b/bench/third_party/markdown-it/inline-entity.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-entity.md
rename to bench/third_party/markdown-it/inline-entity.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-escape.md b/bench/third_party/markdown-it/inline-escape.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-escape.md
rename to bench/third_party/markdown-it/inline-escape.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-html.md b/bench/third_party/markdown-it/inline-html.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-html.md
rename to bench/third_party/markdown-it/inline-html.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-links-flat.md b/bench/third_party/markdown-it/inline-links-flat.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-links-flat.md
rename to bench/third_party/markdown-it/inline-links-flat.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-links-nested.md b/bench/third_party/markdown-it/inline-links-nested.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-links-nested.md
rename to bench/third_party/markdown-it/inline-links-nested.md
diff --git a/pulldown-cmark/third_party/markdown-it/inline-newlines.md b/bench/third_party/markdown-it/inline-newlines.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/inline-newlines.md
rename to bench/third_party/markdown-it/inline-newlines.md
diff --git a/pulldown-cmark/third_party/markdown-it/lorem1.md b/bench/third_party/markdown-it/lorem1.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/lorem1.md
rename to bench/third_party/markdown-it/lorem1.md
diff --git a/pulldown-cmark/third_party/markdown-it/rawtabs.md b/bench/third_party/markdown-it/rawtabs.md
similarity index 100%
rename from pulldown-cmark/third_party/markdown-it/rawtabs.md
rename to bench/third_party/markdown-it/rawtabs.md
diff --git a/pulldown-cmark/third_party/xi-editor/LICENSE b/bench/third_party/xi-editor/LICENSE
similarity index 100%
rename from pulldown-cmark/third_party/xi-editor/LICENSE
rename to bench/third_party/xi-editor/LICENSE
diff --git a/pulldown-cmark/third_party/xi-editor/crdt.md b/bench/third_party/xi-editor/crdt.md
similarity index 100%
rename from pulldown-cmark/third_party/xi-editor/crdt.md
rename to bench/third_party/xi-editor/crdt.md
From fdcc28c7b6b961fa59535d45b3e42cbdb9bd8c4d Mon Sep 17 00:00:00 2001
From: Roope Salmi
Date: Sat, 12 Jul 2025 21:35:11 +0300
Subject: [PATCH 149/180] Rename BrokenLinkCallback -> ParserCallbacks
---
pulldown-cmark/src/lib.rs | 4 +-
pulldown-cmark/src/parse.rs | 87 ++++++++++++++++---------------------
2 files changed, 38 insertions(+), 53 deletions(-)
diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs
index 558ad5d3..c8cd0367 100644
--- a/pulldown-cmark/src/lib.rs
+++ b/pulldown-cmark/src/lib.rs
@@ -113,9 +113,7 @@ mod tree;
use core::fmt::Display;
pub use crate::{
- parse::{
- BrokenLink, BrokenLinkCallback, DefaultBrokenLinkCallback, OffsetIter, Parser, RefDefs,
- },
+ parse::{BrokenLink, DefaultParserCallbacks, OffsetIter, Parser, ParserCallbacks, RefDefs},
strings::{CowStr, InlineStr},
utils::*,
};
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 0de8c7c9..7eed0ff1 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -190,8 +190,8 @@ pub struct BrokenLink<'a> {
}
/// Markdown event iterator.
-pub struct Parser<'input, F = DefaultBrokenLinkCallback> {
- broken_link_callback: Option,
+pub struct Parser<'input, CB = DefaultParserCallbacks> {
+ callbacks: Option,
inner: ParserInner<'input>,
}
@@ -230,16 +230,13 @@ struct ParserInner<'input> {
math_delims: MathDelims,
}
-impl<'input, F> core::fmt::Debug for Parser<'input, F> {
+impl<'input, CB> core::fmt::Debug for Parser<'input, CB> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
// Only print the fields that have public types.
f.debug_struct("Parser")
.field("text", &self.inner.text)
.field("options", &self.inner.options)
- .field(
- "broken_link_callback",
- &self.broken_link_callback.as_ref().map(|_| ..),
- )
+ .field("callbacks", &self.callbacks.as_ref().map(|_| ..))
.finish()
}
}
@@ -257,7 +254,7 @@ impl<'a> BrokenLink<'a> {
}
}
-impl<'input> Parser<'input, DefaultBrokenLinkCallback> {
+impl<'input> Parser<'input, DefaultParserCallbacks> {
/// Creates a new event iterator for a markdown string without any options enabled.
pub fn new(text: &'input str) -> Self {
Self::new_ext(text, Options::empty())
@@ -269,7 +266,7 @@ impl<'input> Parser<'input, DefaultBrokenLinkCallback> {
}
}
-impl<'input, F: BrokenLinkCallback<'input>> Parser<'input, F> {
+impl<'input, F: ParserCallbacks<'input>> Parser<'input, F> {
/// In case the parser encounters any potential links that have a broken
/// reference (e.g `[foo]` when there is no `[foo]: ` entry at the bottom)
/// the provided callback will be called with the reference name,
@@ -287,7 +284,7 @@ impl<'input, F: BrokenLinkCallback<'input>> Parser<'input, F> {
let wikilink_stack = Default::default();
let html_scan_guard = Default::default();
Parser {
- broken_link_callback,
+ callbacks: broken_link_callback,
inner: ParserInner {
text,
@@ -329,7 +326,7 @@ impl<'input> ParserInner<'input> {
///
/// The URL and title are found in the [`RefDefs`] map.
/// If they're not there, and a callback was provided by the user,
- /// the [`broken_link_callback`] will be invoked and given the opportunity
+ /// `handle_broken_link` will be invoked and given the opportunity
/// to provide a fallback.
///
/// The link type (that's "link" or "image") depends on the usage site, and
@@ -339,13 +336,12 @@ impl<'input> ParserInner<'input> {
///
/// [mapped to an unknown type]: crate::LinkType::to_unknown
/// [`link_ref_expansion_limit`]: Self::link_ref_expansion_limit
- /// [`broken_link_callback`]: Self::broken_link_callback
fn fetch_link_type_url_title(
&mut self,
link_label: CowStr<'input>,
span: Range,
link_type: LinkType,
- broken_link_callback: &mut Option<&mut dyn BrokenLinkCallback<'input>>,
+ callbacks: &mut Option<&mut dyn ParserCallbacks<'input>>,
) -> Option<(LinkType, CowStr<'input>, CowStr<'input>)> {
if self.link_ref_expansion_limit == 0 {
return None;
@@ -366,7 +362,7 @@ impl<'input> ParserInner<'input> {
(link_type, url, title)
})
.or_else(|| {
- match broken_link_callback {
+ match callbacks {
Some(callback) => {
// Construct a BrokenLink struct, which will be passed to the callback
let broken_link = BrokenLink {
@@ -399,11 +395,8 @@ impl<'input> ParserInner<'input> {
/// inline markup passes are run on the remainder of the chain.
///
/// Note: there's some potential for optimization here, but that's future work.
- fn handle_inline(
- &mut self,
- broken_link_callback: &mut Option<&mut dyn BrokenLinkCallback<'input>>,
- ) {
- self.handle_inline_pass1(broken_link_callback);
+ fn handle_inline(&mut self, callbacks: &mut Option<&mut dyn ParserCallbacks<'input>>) {
+ self.handle_inline_pass1(callbacks);
self.handle_emphasis_and_hard_break();
}
@@ -412,10 +405,7 @@ impl<'input> ParserInner<'input> {
/// This function handles both inline HTML and code spans, because they have
/// the same precedence. It also handles links, even though they have lower
/// precedence, because the URL of links must not be processed.
- fn handle_inline_pass1(
- &mut self,
- broken_link_callback: &mut Option<&mut dyn BrokenLinkCallback<'input>>,
- ) {
+ fn handle_inline_pass1(&mut self, callbacks: &mut Option<&mut dyn ParserCallbacks<'input>>) {
let mut cur = self.tree.cur();
let mut prev = None;
@@ -841,7 +831,7 @@ impl<'input> ParserInner<'input> {
link_label,
(self.tree[tos.node].item.start)..end,
link_type,
- broken_link_callback,
+ callbacks,
)
{
let link_ix =
@@ -2139,18 +2129,15 @@ pub(crate) struct HtmlScanGuard {
pub comment: usize,
}
-/// Trait for broken link callbacks.
-///
-/// See [Parser::new_with_broken_link_callback].
-/// Automatically implemented for closures with the appropriate signature.
-pub trait BrokenLinkCallback<'input> {
+/// Trait to customize [`Parser`] behavior with callbacks.
+pub trait ParserCallbacks<'input> {
fn handle_broken_link(
&mut self,
link: BrokenLink<'input>,
) -> Option<(CowStr<'input>, CowStr<'input>)>;
}
-impl<'input, T> BrokenLinkCallback<'input> for T
+impl<'input, T> ParserCallbacks<'input> for T
where
T: FnMut(BrokenLink<'input>) -> Option<(CowStr<'input>, CowStr<'input>)>,
{
@@ -2162,7 +2149,7 @@ where
}
}
-impl<'input> BrokenLinkCallback<'input> for Box> {
+impl<'input> ParserCallbacks<'input> for Box> {
fn handle_broken_link(
&mut self,
link: BrokenLink<'input>,
@@ -2173,9 +2160,9 @@ impl<'input> BrokenLinkCallback<'input> for Box>
/// Broken link callback that does nothing.
#[derive(Debug)]
-pub struct DefaultBrokenLinkCallback;
+pub struct DefaultParserCallbacks;
-impl<'input> BrokenLinkCallback<'input> for DefaultBrokenLinkCallback {
+impl<'input> ParserCallbacks<'input> for DefaultParserCallbacks {
fn handle_broken_link(
&mut self,
_link: BrokenLink<'input>,
@@ -2192,52 +2179,52 @@ impl<'input> BrokenLinkCallback<'input> for DefaultBrokenLinkCallback {
/// Constructed from a `Parser` using its
/// [`into_offset_iter`](struct.Parser.html#method.into_offset_iter) method.
#[derive(Debug)]
-pub struct OffsetIter<'a, F = DefaultBrokenLinkCallback> {
- parser: Parser<'a, F>,
+pub struct OffsetIter<'a, CB = DefaultParserCallbacks> {
+ parser: Parser<'a, CB>,
}
-impl<'a, F: BrokenLinkCallback<'a>> OffsetIter<'a, F> {
+impl<'a, CB: ParserCallbacks<'a>> OffsetIter<'a, CB> {
/// Returns a reference to the internal reference definition tracker.
pub fn reference_definitions(&self) -> &RefDefs<'_> {
self.parser.reference_definitions()
}
}
-impl<'a, F: BrokenLinkCallback<'a>> Iterator for OffsetIter<'a, F> {
+impl<'a, CB: ParserCallbacks<'a>> Iterator for OffsetIter<'a, CB> {
type Item = (Event<'a>, Range);
fn next(&mut self) -> Option {
- let broken_link_callback = self
+ let callbacks = self
.parser
- .broken_link_callback
+ .callbacks
.as_mut()
- .map(|f| f as &mut dyn BrokenLinkCallback<'a>);
+ .map(|f| f as &mut dyn ParserCallbacks<'a>);
- self.parser.inner.next_event_range(broken_link_callback)
+ self.parser.inner.next_event_range(callbacks)
}
}
-impl<'a, F: BrokenLinkCallback<'a>> Iterator for Parser<'a, F> {
+impl<'a, CB: ParserCallbacks<'a>> Iterator for Parser<'a, CB> {
type Item = Event<'a>;
fn next(&mut self) -> Option> {
- let broken_link_callback = self
- .broken_link_callback
+ let callback = self
+ .callbacks
.as_mut()
- .map(|f| f as &mut dyn BrokenLinkCallback<'a>);
+ .map(|f| f as &mut dyn ParserCallbacks<'a>);
self.inner
- .next_event_range(broken_link_callback)
+ .next_event_range(callback)
.map(|(event, _range)| event)
}
}
-impl<'a, F: BrokenLinkCallback<'a>> FusedIterator for Parser<'a, F> {}
+impl<'a, CB: ParserCallbacks<'a>> FusedIterator for Parser<'a, CB> {}
impl<'input> ParserInner<'input> {
fn next_event_range(
&mut self,
- mut broken_link_callback: Option<&mut dyn BrokenLinkCallback<'input>>,
+ mut callbacks: Option<&mut dyn ParserCallbacks<'input>>,
) -> Option<(Event<'input>, Range)> {
match self.tree.cur() {
None => {
@@ -2245,7 +2232,7 @@ impl<'input> ParserInner<'input> {
let ix = if matches!(self.tree[ix].item.body, ItemBody::TightParagraph) {
// tight paragraphs emit nothing
self.tree.next_sibling(ix);
- return self.next_event_range(broken_link_callback);
+ return self.next_event_range(callbacks);
} else {
ix
};
@@ -2264,7 +2251,7 @@ impl<'input> ParserInner<'input> {
cur_ix
};
if self.tree[cur_ix].item.body.is_maybe_inline() {
- self.handle_inline(&mut broken_link_callback);
+ self.handle_inline(&mut callbacks);
}
let node = self.tree[cur_ix];
From 29fcbc9549044770c6c3d52610198be8f1e1634e Mon Sep 17 00:00:00 2001
From: Roope Salmi
Date: Sun, 13 Jul 2025 01:55:28 +0300
Subject: [PATCH 150/180] Default implementation in ParserCallbacks
---
pulldown-cmark/src/parse.rs | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 7eed0ff1..184060ac 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -2133,8 +2133,10 @@ pub(crate) struct HtmlScanGuard {
pub trait ParserCallbacks<'input> {
fn handle_broken_link(
&mut self,
- link: BrokenLink<'input>,
- ) -> Option<(CowStr<'input>, CowStr<'input>)>;
+ #[allow(unused_variables)] link: BrokenLink<'input>,
+ ) -> Option<(CowStr<'input>, CowStr<'input>)> {
+ None
+ }
}
impl<'input, T> ParserCallbacks<'input> for T
@@ -2162,14 +2164,7 @@ impl<'input> ParserCallbacks<'input> for Box> {
#[derive(Debug)]
pub struct DefaultParserCallbacks;
-impl<'input> ParserCallbacks<'input> for DefaultParserCallbacks {
- fn handle_broken_link(
- &mut self,
- _link: BrokenLink<'input>,
- ) -> Option<(CowStr<'input>, CowStr<'input>)> {
- None
- }
-}
+impl<'input> ParserCallbacks<'input> for DefaultParserCallbacks {}
/// Markdown event and source range iterator.
///
From 2d934efe393ad7ca15dcd6bf43204ee8f96277c1 Mon Sep 17 00:00:00 2001
From: Roope Salmi
Date: Sun, 13 Jul 2025 03:00:08 +0300
Subject: [PATCH 151/180] Add Parser::new_with_callbacks
Remove blanket impl of ParserCallbacks for closures. Replaced with a
wrapper type BrokenLinkCallback to support the old API.
---
pulldown-cmark/src/parse.rs | 49 +++++++++++++++++++++++--------------
1 file changed, 31 insertions(+), 18 deletions(-)
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 184060ac..d9d757a7 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -262,21 +262,12 @@ impl<'input> Parser<'input, DefaultParserCallbacks> {
/// Creates a new event iterator for a markdown string with given options.
pub fn new_ext(text: &'input str, options: Options) -> Self {
- Self::new_with_broken_link_callback(text, options, None)
+ Self::new_with_callbacks(text, options, None)
}
}
-impl<'input, F: ParserCallbacks<'input>> Parser<'input, F> {
- /// In case the parser encounters any potential links that have a broken
- /// reference (e.g `[foo]` when there is no `[foo]: ` entry at the bottom)
- /// the provided callback will be called with the reference name,
- /// and the returned pair will be used as the link URL and title if it is not
- /// `None`.
- pub fn new_with_broken_link_callback(
- text: &'input str,
- options: Options,
- broken_link_callback: Option,
- ) -> Self {
+impl<'input, CB: ParserCallbacks<'input>> Parser<'input, CB> {
+ pub fn new_with_callbacks(text: &'input str, options: Options, callbacks: Option) -> Self {
let (mut tree, allocs) = run_first_pass(text, options);
tree.reset();
let inline_stack = Default::default();
@@ -284,7 +275,7 @@ impl<'input, F: ParserCallbacks<'input>> Parser<'input, F> {
let wikilink_stack = Default::default();
let html_scan_guard = Default::default();
Parser {
- callbacks: broken_link_callback,
+ callbacks,
inner: ParserInner {
text,
@@ -312,11 +303,29 @@ impl<'input, F: ParserCallbacks<'input>> Parser<'input, F> {
/// Consumes the event iterator and produces an iterator that produces
/// `(Event, Range)` pairs, where the `Range` value maps to the corresponding
/// range in the markdown source.
- pub fn into_offset_iter(self) -> OffsetIter<'input, F> {
+ pub fn into_offset_iter(self) -> OffsetIter<'input, CB> {
OffsetIter { parser: self }
}
}
+impl<'input, F> Parser<'input, BrokenLinkCallback>
+where
+ BrokenLinkCallback: ParserCallbacks<'input>,
+{
+ /// In case the parser encounters any potential links that have a broken
+ /// reference (e.g `[foo]` when there is no `[foo]: ` entry at the bottom)
+ /// the provided callback will be called with the reference name,
+ /// and the returned pair will be used as the link URL and title if it is not
+ /// `None`.
+ pub fn new_with_broken_link_callback(
+ text: &'input str,
+ options: Options,
+ broken_link_callback: Option,
+ ) -> Self {
+ Self::new_with_callbacks(text, options, broken_link_callback.map(BrokenLinkCallback))
+ }
+}
+
impl<'input> ParserInner<'input> {
/// Use a link label to fetch a type, url, and title.
///
@@ -2139,15 +2148,19 @@ pub trait ParserCallbacks<'input> {
}
}
-impl<'input, T> ParserCallbacks<'input> for T
+/// TODO: doc
+#[allow(missing_debug_implementations)]
+pub struct BrokenLinkCallback(F);
+
+impl<'input, F> ParserCallbacks<'input> for BrokenLinkCallback
where
- T: FnMut(BrokenLink<'input>) -> Option<(CowStr<'input>, CowStr<'input>)>,
+ F: FnMut(BrokenLink<'input>) -> Option<(CowStr<'input>, CowStr<'input>)>,
{
fn handle_broken_link(
&mut self,
link: BrokenLink<'input>,
) -> Option<(CowStr<'input>, CowStr<'input>)> {
- self(link)
+ self.0(link)
}
}
@@ -2161,7 +2174,7 @@ impl<'input> ParserCallbacks<'input> for Box> {
}
/// Broken link callback that does nothing.
-#[derive(Debug)]
+#[allow(missing_debug_implementations)]
pub struct DefaultParserCallbacks;
impl<'input> ParserCallbacks<'input> for DefaultParserCallbacks {}
From 296137f32591e1b68fe01499a1e53b8d934d467a Mon Sep 17 00:00:00 2001
From: Roope Salmi
Date: Sun, 13 Jul 2025 23:01:44 +0300
Subject: [PATCH 152/180] Document
---
pulldown-cmark/src/lib.rs | 5 +++-
pulldown-cmark/src/parse.rs | 56 +++++++++++++++++++++++++++++++------
2 files changed, 52 insertions(+), 9 deletions(-)
diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs
index c8cd0367..22aec463 100644
--- a/pulldown-cmark/src/lib.rs
+++ b/pulldown-cmark/src/lib.rs
@@ -113,7 +113,10 @@ mod tree;
use core::fmt::Display;
pub use crate::{
- parse::{BrokenLink, DefaultParserCallbacks, OffsetIter, Parser, ParserCallbacks, RefDefs},
+ parse::{
+ BrokenLink, BrokenLinkCallback, DefaultParserCallbacks, OffsetIter, Parser,
+ ParserCallbacks, RefDefs,
+ },
strings::{CowStr, InlineStr},
utils::*,
};
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index d9d757a7..e5508548 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -267,6 +267,30 @@ impl<'input> Parser<'input, DefaultParserCallbacks> {
}
impl<'input, CB: ParserCallbacks<'input>> Parser<'input, CB> {
+ /// Creates a new event iterator for markdown text with given options and optionally, callbacks.
+ ///
+ /// ```
+ /// # use pulldown_cmark::{BrokenLink, CowStr, Event, Options, Parser, ParserCallbacks, Tag};
+ /// struct CustomCallbacks;
+ /// impl<'input> ParserCallbacks<'input> for CustomCallbacks {
+ /// fn handle_broken_link(
+ /// &mut self,
+ /// link: BrokenLink<'input>,
+ /// ) -> Option<(CowStr<'input>, CowStr<'input>)> {
+ /// Some(("https://target".into(), link.reference))
+ /// }
+ /// }
+ ///
+ /// let mut parser =
+ /// Parser::new_with_callbacks("[broken]", Options::empty(), Some(CustomCallbacks));
+ ///
+ /// assert!(matches!(
+ /// parser.nth(1),
+ /// Some(Event::Start(Tag::Link { .. }))
+ /// ));
+ /// ```
+ ///
+ /// See the [`ParserCallbacks`] trait for a list of callbacks that can be overridden.
pub fn new_with_callbacks(text: &'input str, options: Options, callbacks: Option) -> Self {
let (mut tree, allocs) = run_first_pass(text, options);
tree.reset();
@@ -308,20 +332,23 @@ impl<'input, CB: ParserCallbacks<'input>> Parser<'input, CB> {
}
}
-impl<'input, F> Parser<'input, BrokenLinkCallback>
-where
- BrokenLinkCallback: ParserCallbacks<'input>,
-{
+impl<'input, F> Parser<'input, BrokenLinkCallback> {
/// In case the parser encounters any potential links that have a broken
/// reference (e.g `[foo]` when there is no `[foo]: ` entry at the bottom)
/// the provided callback will be called with the reference name,
/// and the returned pair will be used as the link URL and title if it is not
/// `None`.
+ ///
+ /// This constructor is provided for backwards compatibility.
+ /// This and other callbacks can also be customized with [`Parser::new_with_callbacks`].
pub fn new_with_broken_link_callback(
text: &'input str,
options: Options,
broken_link_callback: Option,
- ) -> Self {
+ ) -> Self
+ where
+ F: FnMut(BrokenLink<'input>) -> Option<(CowStr<'input>, CowStr<'input>)>,
+ {
Self::new_with_callbacks(text, options, broken_link_callback.map(BrokenLinkCallback))
}
}
@@ -2138,8 +2165,17 @@ pub(crate) struct HtmlScanGuard {
pub comment: usize,
}
-/// Trait to customize [`Parser`] behavior with callbacks.
+/// Trait to customize [`Parser`] behavior with callbacks. See [`Parser::new_with_callbacks`].
+///
+/// All methods have a default implementation, so you can choose which ones to override.
pub trait ParserCallbacks<'input> {
+ /// Potentially provide a custom definition for a broken link.
+ ///
+ /// In case the parser encounters any potential links that have a broken
+ /// reference (e.g `[foo]` when there is no `[foo]: ` entry at the bottom)
+ /// this callback will be called with information about the reference,
+ /// and the returned pair will be used as the link URL and title if it is not
+ /// `None`.
fn handle_broken_link(
&mut self,
#[allow(unused_variables)] link: BrokenLink<'input>,
@@ -2148,7 +2184,9 @@ pub trait ParserCallbacks<'input> {
}
}
-/// TODO: doc
+/// Wrapper to implement [`ParserCallbacks::handle_broken_link`] with a closure.
+///
+/// Used internally by [`Parser::new_with_broken_link_callback`].
#[allow(missing_debug_implementations)]
pub struct BrokenLinkCallback(F);
@@ -2173,7 +2211,9 @@ impl<'input> ParserCallbacks<'input> for Box> {
}
}
-/// Broken link callback that does nothing.
+/// [Parser] callbacks that do nothing.
+///
+/// Used when no custom callbacks are provided.
#[allow(missing_debug_implementations)]
pub struct DefaultParserCallbacks;
From 9c7b81ae2444fedca55eac5b2324fce46818ace0 Mon Sep 17 00:00:00 2001
From: Roope Salmi
Date: Wed, 10 Sep 2025 18:42:54 +0300
Subject: [PATCH 153/180] callbacks field without Option
No measurable performance impact in a quick benchmark:
https://github.com/pulldown-cmark/pulldown-cmark/pull/1049#discussion_r2312434599
---
pulldown-cmark/src/parse.rs | 70 +++++++++++++++----------------------
1 file changed, 28 insertions(+), 42 deletions(-)
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index e5508548..3fcfeb47 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -191,7 +191,7 @@ pub struct BrokenLink<'a> {
/// Markdown event iterator.
pub struct Parser<'input, CB = DefaultParserCallbacks> {
- callbacks: Option,
+ callbacks: CB,
inner: ParserInner<'input>,
}
@@ -236,7 +236,7 @@ impl<'input, CB> core::fmt::Debug for Parser<'input, CB> {
f.debug_struct("Parser")
.field("text", &self.inner.text)
.field("options", &self.inner.options)
- .field("callbacks", &self.callbacks.as_ref().map(|_| ..))
+ .field("callbacks", &..)
.finish()
}
}
@@ -262,12 +262,12 @@ impl<'input> Parser<'input, DefaultParserCallbacks> {
/// Creates a new event iterator for a markdown string with given options.
pub fn new_ext(text: &'input str, options: Options) -> Self {
- Self::new_with_callbacks(text, options, None)
+ Self::new_with_callbacks(text, options, DefaultParserCallbacks)
}
}
impl<'input, CB: ParserCallbacks<'input>> Parser<'input, CB> {
- /// Creates a new event iterator for markdown text with given options and optionally, callbacks.
+ /// Creates a new event iterator for markdown text with given options and callbacks.
///
/// ```
/// # use pulldown_cmark::{BrokenLink, CowStr, Event, Options, Parser, ParserCallbacks, Tag};
@@ -282,7 +282,7 @@ impl<'input, CB: ParserCallbacks<'input>> Parser<'input, CB> {
/// }
///
/// let mut parser =
- /// Parser::new_with_callbacks("[broken]", Options::empty(), Some(CustomCallbacks));
+ /// Parser::new_with_callbacks("[broken]", Options::empty(), CustomCallbacks);
///
/// assert!(matches!(
/// parser.nth(1),
@@ -291,7 +291,7 @@ impl<'input, CB: ParserCallbacks<'input>> Parser<'input, CB> {
/// ```
///
/// See the [`ParserCallbacks`] trait for a list of callbacks that can be overridden.
- pub fn new_with_callbacks(text: &'input str, options: Options, callbacks: Option) -> Self {
+ pub fn new_with_callbacks(text: &'input str, options: Options, callbacks: CB) -> Self {
let (mut tree, allocs) = run_first_pass(text, options);
tree.reset();
let inline_stack = Default::default();
@@ -349,7 +349,7 @@ impl<'input, F> Parser<'input, BrokenLinkCallback> {
where
F: FnMut(BrokenLink<'input>) -> Option<(CowStr<'input>, CowStr<'input>)>,
{
- Self::new_with_callbacks(text, options, broken_link_callback.map(BrokenLinkCallback))
+ Self::new_with_callbacks(text, options, BrokenLinkCallback(broken_link_callback))
}
}
@@ -377,7 +377,7 @@ impl<'input> ParserInner<'input> {
link_label: CowStr<'input>,
span: Range,
link_type: LinkType,
- callbacks: &mut Option<&mut dyn ParserCallbacks<'input>>,
+ callbacks: &mut dyn ParserCallbacks<'input>,
) -> Option<(LinkType, CowStr<'input>, CowStr<'input>)> {
if self.link_ref_expansion_limit == 0 {
return None;
@@ -398,21 +398,16 @@ impl<'input> ParserInner<'input> {
(link_type, url, title)
})
.or_else(|| {
- match callbacks {
- Some(callback) => {
- // Construct a BrokenLink struct, which will be passed to the callback
- let broken_link = BrokenLink {
- span,
- link_type,
- reference: link_label,
- };
+ // Construct a BrokenLink struct, which will be passed to the callback
+ let broken_link = BrokenLink {
+ span,
+ link_type,
+ reference: link_label,
+ };
- callback
- .handle_broken_link(broken_link)
- .map(|(url, title)| (link_type.to_unknown(), url, title))
- }
- None => None,
- }
+ callbacks
+ .handle_broken_link(broken_link)
+ .map(|(url, title)| (link_type.to_unknown(), url, title))
})?;
// Limit expansion from link references.
@@ -431,7 +426,7 @@ impl<'input> ParserInner<'input> {
/// inline markup passes are run on the remainder of the chain.
///
/// Note: there's some potential for optimization here, but that's future work.
- fn handle_inline(&mut self, callbacks: &mut Option<&mut dyn ParserCallbacks<'input>>) {
+ fn handle_inline(&mut self, callbacks: &mut dyn ParserCallbacks<'input>) {
self.handle_inline_pass1(callbacks);
self.handle_emphasis_and_hard_break();
}
@@ -441,7 +436,7 @@ impl<'input> ParserInner<'input> {
/// This function handles both inline HTML and code spans, because they have
/// the same precedence. It also handles links, even though they have lower
/// precedence, because the URL of links must not be processed.
- fn handle_inline_pass1(&mut self, callbacks: &mut Option<&mut dyn ParserCallbacks<'input>>) {
+ fn handle_inline_pass1(&mut self, callbacks: &mut dyn ParserCallbacks<'input>) {
let mut cur = self.tree.cur();
let mut prev = None;
@@ -2188,7 +2183,7 @@ pub trait ParserCallbacks<'input> {
///
/// Used internally by [`Parser::new_with_broken_link_callback`].
#[allow(missing_debug_implementations)]
-pub struct BrokenLinkCallback(F);
+pub struct BrokenLinkCallback(Option);
impl<'input, F> ParserCallbacks<'input> for BrokenLinkCallback
where
@@ -2198,7 +2193,7 @@ where
&mut self,
link: BrokenLink<'input>,
) -> Option<(CowStr<'input>, CowStr<'input>)> {
- self.0(link)
+ self.0.as_mut().and_then(|cb| cb(link))
}
}
@@ -2227,7 +2222,7 @@ impl<'input> ParserCallbacks<'input> for DefaultParserCallbacks {}
/// Constructed from a `Parser` using its
/// [`into_offset_iter`](struct.Parser.html#method.into_offset_iter) method.
#[derive(Debug)]
-pub struct OffsetIter<'a, CB = DefaultParserCallbacks> {
+pub struct OffsetIter<'a, CB> {
parser: Parser<'a, CB>,
}
@@ -2242,13 +2237,9 @@ impl<'a, CB: ParserCallbacks<'a>> Iterator for OffsetIter<'a, CB> {
type Item = (Event<'a>, Range);
fn next(&mut self) -> Option {
- let callbacks = self
- .parser
- .callbacks
- .as_mut()
- .map(|f| f as &mut dyn ParserCallbacks<'a>);
-
- self.parser.inner.next_event_range(callbacks)
+ self.parser
+ .inner
+ .next_event_range(&mut self.parser.callbacks)
}
}
@@ -2256,13 +2247,8 @@ impl<'a, CB: ParserCallbacks<'a>> Iterator for Parser<'a, CB> {
type Item = Event<'a>;
fn next(&mut self) -> Option> {
- let callback = self
- .callbacks
- .as_mut()
- .map(|f| f as &mut dyn ParserCallbacks<'a>);
-
self.inner
- .next_event_range(callback)
+ .next_event_range(&mut self.callbacks)
.map(|(event, _range)| event)
}
}
@@ -2272,7 +2258,7 @@ impl<'a, CB: ParserCallbacks<'a>> FusedIterator for Parser<'a, CB> {}
impl<'input> ParserInner<'input> {
fn next_event_range(
&mut self,
- mut callbacks: Option<&mut dyn ParserCallbacks<'input>>,
+ callbacks: &mut dyn ParserCallbacks<'input>,
) -> Option<(Event<'input>, Range)> {
match self.tree.cur() {
None => {
@@ -2299,7 +2285,7 @@ impl<'input> ParserInner<'input> {
cur_ix
};
if self.tree[cur_ix].item.body.is_maybe_inline() {
- self.handle_inline(&mut callbacks);
+ self.handle_inline(callbacks);
}
let node = self.tree[cur_ix];
From 722646f53bf89b2a67d18d0db713f7529ecc0618 Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Sat, 11 Oct 2025 10:47:44 +0100
Subject: [PATCH 154/180] bug fix and container limit
---
pulldown-cmark/specs/container_extensions.txt | 34 ++++
pulldown-cmark/src/firstpass.rs | 175 +++++++++++++-----
pulldown-cmark/src/parse.rs | 94 ++++------
pulldown-cmark/src/scanners.rs | 8 +-
.../tests/suite/container_extensions.rs | 41 ++++
5 files changed, 244 insertions(+), 108 deletions(-)
diff --git a/pulldown-cmark/specs/container_extensions.txt b/pulldown-cmark/specs/container_extensions.txt
index 461623e6..27d9732f 100644
--- a/pulldown-cmark/specs/container_extensions.txt
+++ b/pulldown-cmark/specs/container_extensions.txt
@@ -286,3 +286,37 @@ Hi
Hi
````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+::: container
+> shouldn't close, right?
+> :::
+> x
+:::
+.
+
+
+shouldn't close, right?
+:::
+x
+
+
+````````````````````````````````
+
+
+```````````````````````````````` example_container_extensions
+::: container
+> shouldn't close, right?
+> :::
+> x
+
+:::
+.
+
+
+shouldn't close, right?
+:::
+x
+
+
+````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index ffe32d45..0815fd62 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -2,7 +2,7 @@
//! are in a linear chain with potential inline markup identified.
use alloc::{string::String, vec::Vec};
-use core::{cmp::max, ops::Range};
+use core::{cmp::max, ops::Range, u8};
use unicase::UniCase;
@@ -35,6 +35,7 @@ pub(crate) fn run_first_pass(text: &str, options: Options) -> (Tree- , Alloc
lookup_table,
brace_context_next: 0,
brace_context_stack: Vec::new(),
+ container_depth: 0,
};
first_pass.run()
}
@@ -59,6 +60,7 @@ struct FirstPass<'a, 'b> {
allocs: Allocations<'a>,
options: Options,
lookup_table: &'b LookupTable,
+ container_depth: u8,
/// Math environment brace nesting.
brace_context_stack: Vec
,
brace_context_next: usize,
@@ -133,6 +135,9 @@ impl<'a, 'b> FirstPass<'a, 'b> {
end: after_marker_index, // will get updated later if item not empty
body: ItemBody::ListItem(indent),
});
+ if self.container_depth < u8::MAX {
+ self.container_depth = self.container_depth + 1;
+ }
self.tree.push();
if let Some(n) = scan_blank_line(&bytes[after_marker_index..]) {
self.begin_list_item = Some(after_marker_index + n);
@@ -221,6 +226,9 @@ impl<'a, 'b> FirstPass<'a, 'b> {
self.last_line_blank = false;
}
}
+ if self.container_depth < u8::MAX {
+ self.container_depth = self.container_depth + 1;
+ }
self.tree.push();
if let Some(n) = scan_blank_line(&bytes[after_marker_index..]) {
self.begin_list_item = Some(after_marker_index + n);
@@ -238,6 +246,9 @@ impl<'a, 'b> FirstPass<'a, 'b> {
end: 0, // will get set later
body: ItemBody::BlockQuote(kind),
});
+ if self.container_depth < u8::MAX {
+ self.container_depth = self.container_depth + 1;
+ }
self.tree.push();
if kind.is_some() {
// blockquote tag leaves us at the end of the line
@@ -271,54 +282,62 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let fence_length =
scan_ch_repeat(&bytes[(start_ix + line_start.bytes_scanned())..], b':');
- let mut kind_start = start_ix + line_start.bytes_scanned() + fence_length;
- kind_start += scan_whitespace_no_nl(&bytes[kind_start..]);
- let kind_length = scan_while(&bytes[kind_start..], |c| {
- is_ascii_alphanumeric(c) || c == b'_' || c == b'-' || c == b':' || c == b'.'
- });
- if kind_length == 0 {
+ if fence_length > u8::MAX as usize || self.container_depth == u8::MAX {
break;
} else {
- let kind = unescape(
- &self.text[kind_start..(kind_start + kind_length)],
- self.tree.is_in_table(),
- );
-
- let mut summary_start = kind_start + kind_length;
- summary_start += scan_whitespace_no_nl(&bytes[summary_start..]);
- let line_end = summary_start + scan_nextline(&bytes[summary_start..]);
- let summary_end = line_end
- - scan_rev_while(&bytes[summary_start..line_end], is_ascii_whitespace);
- let summary = unescape(
- &self.text[summary_start..summary_end],
- self.tree.is_in_table(),
- );
- let summary_cow_ix = self.allocs.allocate_cow(summary);
-
- if kind.eq_ignore_ascii_case("spoiler") {
- self.tree.append(Item {
- start: container_start,
- end: 0,
- body: ItemBody::Container(
- fence_length,
- ContainerKind::Spoiler,
- summary_cow_ix,
- ),
- });
+ let mut kind_start = start_ix + line_start.bytes_scanned() + fence_length;
+ kind_start += scan_whitespace_no_nl(&bytes[kind_start..]);
+ let kind_length = scan_while(&bytes[kind_start..], |c| {
+ is_ascii_alphanumeric(c) || c == b'_' || c == b'-' || c == b':' || c == b'.'
+ });
+ if kind_length == 0 {
+ break;
} else {
- let kind_cow_ix = self.allocs.allocate_cow(kind);
- self.tree.append(Item {
- start: container_start,
- end: 0,
- body: ItemBody::Container(
- fence_length,
- ContainerKind::Default,
- kind_cow_ix,
- ),
- });
+ let kind = unescape(
+ &self.text[kind_start..(kind_start + kind_length)],
+ self.tree.is_in_table(),
+ );
+
+ let mut summary_start = kind_start + kind_length;
+ summary_start += scan_whitespace_no_nl(&bytes[summary_start..]);
+ let line_end = summary_start + scan_nextline(&bytes[summary_start..]);
+ let summary_end = line_end
+ - scan_rev_while(&bytes[summary_start..line_end], is_ascii_whitespace);
+ let summary = unescape(
+ &self.text[summary_start..summary_end],
+ self.tree.is_in_table(),
+ );
+ let summary_cow_ix = self.allocs.allocate_cow(summary);
+ if kind.eq_ignore_ascii_case("spoiler") {
+ self.tree.append(Item {
+ start: container_start,
+ end: 0,
+ body: ItemBody::Container(
+ self.container_depth,
+ fence_length as u8,
+ ContainerKind::Spoiler,
+ summary_cow_ix,
+ ),
+ });
+ } else {
+ let kind_cow_ix = self.allocs.allocate_cow(kind);
+ self.tree.append(Item {
+ start: container_start,
+ end: 0,
+ body: ItemBody::Container(
+ self.container_depth,
+ fence_length as u8,
+ ContainerKind::Default,
+ kind_cow_ix,
+ ),
+ });
+ }
+ self.tree.push();
+ if self.container_depth < u8::MAX {
+ self.container_depth = self.container_depth + 1;
+ }
+ return summary_end + 1;
}
- self.tree.push();
- return summary_end + 1;
}
} else {
line_start = save;
@@ -326,6 +345,30 @@ impl<'a, 'b> FirstPass<'a, 'b> {
}
}
+ if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS) && self.container_depth > 0 {
+ let mut i = self.tree.spine_len();
+ for &node_ix in self.tree.walk_spine().rev() {
+ match self.tree[node_ix].item.body {
+ ItemBody::Container(depth, length, ..) => {
+ if depth == (self.container_depth - 1) {
+ if line_start.scan_closing_container_extensions_fence(length) {
+ break;
+ }
+ }
+ }
+ _ => (),
+ }
+ i = i - 1;
+ }
+
+ if i > 0 {
+ for _ in i..=self.tree.spine_len() {
+ self.pop(start_ix);
+ }
+ }
+ }
+
+
let ix = start_ix + line_start.bytes_scanned();
if let Some(n) = scan_blank_line(&bytes[ix..]) {
@@ -670,6 +713,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let bytes = self.text.as_bytes();
let mut ix = start_ix;
loop {
+
let scan_mode = if self.options.contains(Options::ENABLE_TABLES) && ix == start_ix {
TableParseMode::Scan
} else {
@@ -702,6 +746,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let mut line_start = LineStart::new(&bytes[ix..]);
let tree_position = scan_containers(&self.tree, &mut line_start, self.options);
let current_container = tree_position == self.tree.spine_len();
+
let trailing_backslash_pos = match brk {
Some(Item {
start,
@@ -734,6 +779,11 @@ impl<'a, 'b> FirstPass<'a, 'b> {
}
break;
}
+ if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS) && !current_container {
+ if line_start.scan_closing_container_extensions_fence(3) {
+ break;
+ }
+ }
}
line_start.scan_all_space();
if line_start.is_at_eol() {
@@ -742,10 +792,33 @@ impl<'a, 'b> FirstPass<'a, 'b> {
}
break;
}
+
+ if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS) && self.container_depth > 0 {
+ let mut i = self.tree.spine_len();
+ for &node_ix in self.tree.walk_spine().rev() {
+ match self.tree[node_ix].item.body {
+ ItemBody::Container(depth, length, ..) => {
+ if depth == (self.container_depth - 1) {
+ if line_start.scan_closing_container_extensions_fence(length) {
+ break;
+ }
+ }
+ }
+ _ => (),
+ }
+ i = i - 1;
+ }
+
+ if i > 0 {
+ break;
+ }
+ }
+
ix = next_ix + line_start.bytes_scanned();
if let Some(item) = brk {
self.tree.append(item);
}
+
}
self.pop(ix);
@@ -1562,6 +1635,15 @@ impl<'a, 'b> FirstPass<'a, 'b> {
fn pop(&mut self, ix: usize) {
let cur_ix = self.tree.pop().unwrap();
self.tree[cur_ix].item.end = ix;
+
+ match self.tree[cur_ix].item.body {
+ ItemBody::Container(..) | ItemBody::BlockQuote(..) | ItemBody::ListItem(..) | ItemBody::DefinitionListDefinition(..) | ItemBody::FootnoteDefinition(..) => {
+ self.container_depth = self.container_depth - 1;
+ }
+ _ => {
+ }
+ }
+
if let ItemBody::DefinitionList(_) = self.tree[cur_ix].item.body {
fixup_end_of_definition_list(&mut self.tree, cur_ix);
self.begin_list_item = None;
@@ -1790,6 +1872,9 @@ impl<'a, 'b> FirstPass<'a, 'b> {
// TODO: check whether the label here is strictly necessary
body: ItemBody::FootnoteDefinition(self.allocs.allocate_cow(label)),
});
+ if self.container_depth < u8::MAX {
+ self.container_depth = self.container_depth + 1;
+ }
self.tree.push();
Some(i)
}
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 977aa099..29729fc3 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -114,7 +114,7 @@ pub(crate) enum ItemBody {
IndentCodeBlock,
HtmlBlock,
BlockQuote(Option),
- Container(usize, ContainerKind, CowIndex),
+ Container(u8, u8, ContainerKind, CowIndex),
List(bool, u8, u64), // is_tight, list character, list start index
ListItem(usize), // indent level
FootnoteDefinition(CowIndex),
@@ -1468,67 +1468,43 @@ pub(crate) fn scan_containers(
line_start: &mut LineStart<'_>,
options: Options,
) -> usize {
- if tree.spine_len() > 0 {
- let mut i = tree.spine_len();
- for &node_ix in tree.walk_spine().rev() {
- match tree[node_ix].item.body {
- ItemBody::Container(length, ..) => {
- if line_start.scan_closing_container_extensions_fence(length) {
- break;
- }
+ let mut i = 0;
+ for &node_ix in tree.walk_spine() {
+ match tree[node_ix].item.body {
+ ItemBody::BlockQuote(..) => {
+ let save = line_start.clone();
+ let _ = line_start.scan_space(3);
+ if !line_start.scan_blockquote_marker() {
+ *line_start = save;
+ break;
}
- _ => (),
}
- i = i - 1;
- }
- if i > 0 {
- i - 1
- } else {
- let mut i = 0;
- for &node_ix in tree.walk_spine() {
- match tree[node_ix].item.body {
- ItemBody::BlockQuote(..) => {
- let save = line_start.clone();
- let _ = line_start.scan_space(3);
- if !line_start.scan_blockquote_marker() {
- *line_start = save;
- break;
- }
- }
- ItemBody::ListItem(indent) => {
- let save = line_start.clone();
- if !line_start.scan_space(indent) && !line_start.is_at_eol() {
- *line_start = save;
- break;
- }
- }
- ItemBody::DefinitionListDefinition(indent) => {
- let save = line_start.clone();
- if !line_start.scan_space(indent) && !line_start.is_at_eol() {
- *line_start = save;
- break;
- }
- }
- ItemBody::FootnoteDefinition(..) if options.has_gfm_footnotes() => {
- let save = line_start.clone();
- if !line_start.scan_space(4) && !line_start.is_at_eol() {
- *line_start = save;
- break;
- }
- }
- _ => (),
+ ItemBody::ListItem(indent) => {
+ let save = line_start.clone();
+ if !line_start.scan_space(indent) && !line_start.is_at_eol() {
+ *line_start = save;
+ break;
}
- i = i + 1;
}
- if i < tree.spine_len() {
- i
- } else {
- tree.spine_len()
+ ItemBody::DefinitionListDefinition(indent) => {
+ let save = line_start.clone();
+ if !line_start.scan_space(indent) && !line_start.is_at_eol() {
+ *line_start = save;
+ break;
+ }
+ }
+ ItemBody::FootnoteDefinition(..) if options.has_gfm_footnotes() => {
+ let save = line_start.clone();
+ if !line_start.scan_space(4) && !line_start.is_at_eol() {
+ *line_start = save;
+ break;
+ }
}
+ _ => (),
}
- } else {
- 0
+ i += 1;
}
+ i
}
pub(crate) fn skip_container_prefixes(tree: &Tree- , bytes: &[u8], options: Options) -> usize {
@@ -2320,7 +2296,7 @@ fn body_to_tag_end(body: &ItemBody) -> TagEnd {
ItemBody::Image(..) => TagEnd::Image,
ItemBody::Heading(level, _) => TagEnd::Heading(level),
ItemBody::IndentCodeBlock | ItemBody::FencedCodeBlock(..) => TagEnd::CodeBlock,
- ItemBody::Container(_, kind, _) => TagEnd::ContainerBlock(kind),
+ ItemBody::Container(_, _, kind, _) => TagEnd::ContainerBlock(kind),
ItemBody::BlockQuote(kind) => TagEnd::BlockQuote(kind),
ItemBody::HtmlBlock => TagEnd::HtmlBlock,
ItemBody::List(_, c, _) => {
@@ -2401,7 +2377,7 @@ fn item_to_event<'a>(item: Item, text: &'a str, allocs: &mut Allocations<'a>) ->
Tag::CodeBlock(CodeBlockKind::Fenced(allocs.take_cow(cow_ix)))
}
ItemBody::IndentCodeBlock => Tag::CodeBlock(CodeBlockKind::Indented),
- ItemBody::Container(_, kind, cow_ix) => Tag::ContainerBlock(kind, allocs.take_cow(cow_ix)),
+ ItemBody::Container(_, _, kind, cow_ix) => Tag::ContainerBlock(kind, allocs.take_cow(cow_ix)),
ItemBody::BlockQuote(kind) => Tag::BlockQuote(kind),
ItemBody::List(_, c, listitem_start) => {
if c == b'.' || c == b')' {
@@ -2458,14 +2434,14 @@ mod test {
#[cfg(target_pointer_width = "64")]
fn node_size() {
let node_size = core::mem::size_of::
>();
- assert_eq!(56, node_size);
+ assert_eq!(48, node_size);
}
#[test]
#[cfg(target_pointer_width = "64")]
fn body_size() {
let body_size = core::mem::size_of::();
- assert_eq!(24, body_size);
+ assert_eq!(16, body_size);
}
#[test]
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index 39b9be61..4f31332c 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -269,15 +269,15 @@ impl<'a> LineStart<'a> {
}
}
- pub(crate) fn scan_closing_container_extensions_fence(&mut self, length: usize) -> bool {
+ pub(crate) fn scan_closing_container_extensions_fence(&mut self, length: u8) -> bool {
let nl_ix = scan_nextline(&self.bytes[self.ix..]);
- let eol_length = scan_rev_while(&self.bytes[self.ix..nl_ix], |c| {
+ let eol_length = scan_rev_while(&self.bytes[self.ix..(self.ix + nl_ix)], |c| {
c == b'\n' || c == b'\r' || c == b' '
});
let fence_length =
- scan_rev_while(&self.bytes[self.ix..(nl_ix - eol_length)], |c| c == b':');
+ scan_rev_while(&self.bytes[self.ix..(self.ix + nl_ix - eol_length)], |c| c == b':');
- if fence_length >= length {
+ if fence_length >= length as usize {
self.ix = self.ix + (nl_ix - eol_length);
true
} else {
diff --git a/pulldown-cmark/tests/suite/container_extensions.rs b/pulldown-cmark/tests/suite/container_extensions.rs
index c26b0d5c..d7bf9ddc 100644
--- a/pulldown-cmark/tests/suite/container_extensions.rs
+++ b/pulldown-cmark/tests/suite/container_extensions.rs
@@ -369,3 +369,44 @@ Hi
test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
+
+#[test]
+fn container_extensions_test_21() {
+ let original = r##"::: container
+> shouldn't close, right?
+> :::
+> x
+:::
+"##;
+ let expected = r##"
+
+shouldn't close, right?
+:::
+x
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_22() {
+ let original = r##"::: container
+> shouldn't close, right?
+> :::
+> x
+
+:::
+"##;
+ let expected = r##"
+
+shouldn't close, right?
+:::
+x
+
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
From 9f0dba66dd591c4cd3233be61f9709d0cdfc31a2 Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Sat, 11 Oct 2025 10:54:16 +0100
Subject: [PATCH 155/180] fmt
---
pulldown-cmark/src/firstpass.rs | 23 +++++++++++++----------
pulldown-cmark/src/parse.rs | 4 +++-
pulldown-cmark/src/scanners.rs | 4 +++-
3 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 0815fd62..9c896b9f 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -368,7 +368,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
}
}
-
let ix = start_ix + line_start.bytes_scanned();
if let Some(n) = scan_blank_line(&bytes[ix..]) {
@@ -713,7 +712,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let bytes = self.text.as_bytes();
let mut ix = start_ix;
loop {
-
let scan_mode = if self.options.contains(Options::ENABLE_TABLES) && ix == start_ix {
TableParseMode::Scan
} else {
@@ -779,7 +777,8 @@ impl<'a, 'b> FirstPass<'a, 'b> {
}
break;
}
- if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS) && !current_container {
+ if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS) && !current_container
+ {
if line_start.scan_closing_container_extensions_fence(3) {
break;
}
@@ -793,7 +792,9 @@ impl<'a, 'b> FirstPass<'a, 'b> {
break;
}
- if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS) && self.container_depth > 0 {
+ if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS)
+ && self.container_depth > 0
+ {
let mut i = self.tree.spine_len();
for &node_ix in self.tree.walk_spine().rev() {
match self.tree[node_ix].item.body {
@@ -818,7 +819,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
if let Some(item) = brk {
self.tree.append(item);
}
-
}
self.pop(ix);
@@ -1637,11 +1637,14 @@ impl<'a, 'b> FirstPass<'a, 'b> {
self.tree[cur_ix].item.end = ix;
match self.tree[cur_ix].item.body {
- ItemBody::Container(..) | ItemBody::BlockQuote(..) | ItemBody::ListItem(..) | ItemBody::DefinitionListDefinition(..) | ItemBody::FootnoteDefinition(..) => {
- self.container_depth = self.container_depth - 1;
- }
- _ => {
- }
+ ItemBody::Container(..)
+ | ItemBody::BlockQuote(..)
+ | ItemBody::ListItem(..)
+ | ItemBody::DefinitionListDefinition(..)
+ | ItemBody::FootnoteDefinition(..) => {
+ self.container_depth = self.container_depth - 1;
+ }
+ _ => {}
}
if let ItemBody::DefinitionList(_) = self.tree[cur_ix].item.body {
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 29729fc3..0b7554a2 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -2377,7 +2377,9 @@ fn item_to_event<'a>(item: Item, text: &'a str, allocs: &mut Allocations<'a>) ->
Tag::CodeBlock(CodeBlockKind::Fenced(allocs.take_cow(cow_ix)))
}
ItemBody::IndentCodeBlock => Tag::CodeBlock(CodeBlockKind::Indented),
- ItemBody::Container(_, _, kind, cow_ix) => Tag::ContainerBlock(kind, allocs.take_cow(cow_ix)),
+ ItemBody::Container(_, _, kind, cow_ix) => {
+ Tag::ContainerBlock(kind, allocs.take_cow(cow_ix))
+ }
ItemBody::BlockQuote(kind) => Tag::BlockQuote(kind),
ItemBody::List(_, c, listitem_start) => {
if c == b'.' || c == b')' {
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index 4f31332c..8e8d226d 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -275,7 +275,9 @@ impl<'a> LineStart<'a> {
c == b'\n' || c == b'\r' || c == b' '
});
let fence_length =
- scan_rev_while(&self.bytes[self.ix..(self.ix + nl_ix - eol_length)], |c| c == b':');
+ scan_rev_while(&self.bytes[self.ix..(self.ix + nl_ix - eol_length)], |c| {
+ c == b':'
+ });
if fence_length >= length as usize {
self.ix = self.ix + (nl_ix - eol_length);
From 8bc44c8140353994560d1adda0ebc39c46ce9484 Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Fri, 17 Oct 2025 11:30:08 +0100
Subject: [PATCH 156/180] revert to spine_len nesting logic
Co-authored-by: Roope Salmi
---
pulldown-cmark/src/firstpass.rs | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 9c896b9f..6f8afcbe 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -345,29 +345,28 @@ impl<'a, 'b> FirstPass<'a, 'b> {
}
}
- if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS) && self.container_depth > 0 {
- let mut i = self.tree.spine_len();
- for &node_ix in self.tree.walk_spine().rev() {
+ if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS) {
+ let mut pop_count = None;
+ for (i, &node_ix) in self.tree.walk_spine().rev().enumerate() {
match self.tree[node_ix].item.body {
- ItemBody::Container(depth, length, ..) => {
- if depth == (self.container_depth - 1) {
- if line_start.scan_closing_container_extensions_fence(length) {
- break;
- }
+ ItemBody::Container(_, length, ..) => {
+ if line_start.scan_closing_container_extensions_fence(length) {
+ pop_count = Some(i + 1);
+ break;
}
}
- _ => (),
+ _ => {
+ break;
+ }
}
- i = i - 1;
}
- if i > 0 {
- for _ in i..=self.tree.spine_len() {
+ if let Some(c) = pop_count {
+ for _ in 0..c {
self.pop(start_ix);
}
}
}
-
let ix = start_ix + line_start.bytes_scanned();
if let Some(n) = scan_blank_line(&bytes[ix..]) {
From 1c4ecfdac15b0b975bf81e3f6dc8b952c15258d9 Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Fri, 17 Oct 2025 11:32:19 +0100
Subject: [PATCH 157/180] revert to spine_len nesting logic
Co-authored-by: Roope Salmi
---
pulldown-cmark/src/firstpass.rs | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 6f8afcbe..5050be84 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -791,25 +791,23 @@ impl<'a, 'b> FirstPass<'a, 'b> {
break;
}
- if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS)
- && self.container_depth > 0
- {
- let mut i = self.tree.spine_len();
- for &node_ix in self.tree.walk_spine().rev() {
+ if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS) {
+ let mut closes = false;
+ for &node_ix in self.tree.walk_spine().rev().skip(1) {
match self.tree[node_ix].item.body {
- ItemBody::Container(depth, length, ..) => {
- if depth == (self.container_depth - 1) {
- if line_start.scan_closing_container_extensions_fence(length) {
- break;
- }
+ ItemBody::Container(_, length, ..) => {
+ if line_start.scan_closing_container_extensions_fence(length) {
+ closes = true;
+ break;
}
}
- _ => (),
+ _ => {
+ break;
+ }
}
- i = i - 1;
}
- if i > 0 {
+ if closes {
break;
}
}
From 0af4b482ec47071a01ce1339afc6f9a581344b4e Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Fri, 17 Oct 2025 11:37:35 +0100
Subject: [PATCH 158/180] revert to spine_len nesting logic
Co-authored-by: Roope Salmi
---
pulldown-cmark/src/firstpass.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 5050be84..eb4f47bf 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -282,7 +282,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let fence_length =
scan_ch_repeat(&bytes[(start_ix + line_start.bytes_scanned())..], b':');
- if fence_length > u8::MAX as usize || self.container_depth == u8::MAX {
+ if fence_length > u8::MAX as usize || self.tree.spine_len() > CONTAINER_BLOCK_NEST_LIMIT {
break;
} else {
let mut kind_start = start_ix + line_start.bytes_scanned() + fence_length;
From 71efd41e7c22f1e8e7934131abc270b6b74ebc23 Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Mon, 20 Oct 2025 11:07:29 +0100
Subject: [PATCH 159/180] maximum fence length and fence close tests
---
pulldown-cmark/specs/container_extensions.txt | 31 ++++++++++-
pulldown-cmark/src/firstpass.rs | 53 +++++--------------
pulldown-cmark/src/parse.rs | 12 ++---
pulldown-cmark/src/scanners.rs | 25 ++++-----
pulldown-cmark/tests/html.rs | 1 +
.../tests/suite/container_extensions.rs | 42 +++++++++++++++
6 files changed, 105 insertions(+), 59 deletions(-)
diff --git a/pulldown-cmark/specs/container_extensions.txt b/pulldown-cmark/specs/container_extensions.txt
index 27d9732f..078b985b 100644
--- a/pulldown-cmark/specs/container_extensions.txt
+++ b/pulldown-cmark/specs/container_extensions.txt
@@ -303,7 +303,6 @@ x
````````````````````````````````
-
```````````````````````````````` example_container_extensions
::: container
> shouldn't close, right?
@@ -320,3 +319,33 @@ x
````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+::: a
+:::: b
+::::: c
+::::
+x
+.
+
+
+
+
+
+x
+
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+::: a
+content :::
+.
+content :::
+````````````````````````````````
+
+```````````````````````````````` example_container_extensions
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: a
+content :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+.
+content :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 5050be84..0b024d19 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -35,7 +35,6 @@ pub(crate) fn run_first_pass(text: &str, options: Options) -> (Tree- , Alloc
lookup_table,
brace_context_next: 0,
brace_context_stack: Vec::new(),
- container_depth: 0,
};
first_pass.run()
}
@@ -60,7 +59,6 @@ struct FirstPass<'a, 'b> {
allocs: Allocations<'a>,
options: Options,
lookup_table: &'b LookupTable,
- container_depth: u8,
/// Math environment brace nesting.
brace_context_stack: Vec
,
brace_context_next: usize,
@@ -135,9 +133,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
end: after_marker_index, // will get updated later if item not empty
body: ItemBody::ListItem(indent),
});
- if self.container_depth < u8::MAX {
- self.container_depth = self.container_depth + 1;
- }
self.tree.push();
if let Some(n) = scan_blank_line(&bytes[after_marker_index..]) {
self.begin_list_item = Some(after_marker_index + n);
@@ -226,9 +221,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
self.last_line_blank = false;
}
}
- if self.container_depth < u8::MAX {
- self.container_depth = self.container_depth + 1;
- }
self.tree.push();
if let Some(n) = scan_blank_line(&bytes[after_marker_index..]) {
self.begin_list_item = Some(after_marker_index + n);
@@ -246,9 +238,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
end: 0, // will get set later
body: ItemBody::BlockQuote(kind),
});
- if self.container_depth < u8::MAX {
- self.container_depth = self.container_depth + 1;
- }
self.tree.push();
if kind.is_some() {
// blockquote tag leaves us at the end of the line
@@ -279,13 +268,20 @@ impl<'a, 'b> FirstPass<'a, 'b> {
} else if self.options.contains(Options::ENABLE_CONTAINER_EXTENSIONS)
&& scan_ch_repeat(&bytes[(start_ix + line_start.bytes_scanned())..], b':') > 2
{
- let fence_length =
- scan_ch_repeat(&bytes[(start_ix + line_start.bytes_scanned())..], b':');
-
- if fence_length > u8::MAX as usize || self.container_depth == u8::MAX {
+ let fence_length = scan_while_max(
+ &bytes[(start_ix + line_start.bytes_scanned())..],
+ |c| c == b':',
+ u8::MAX as usize,
+ );
+ if fence_length > u8::MAX as usize || self.tree.spine_len() > u8::MAX as usize {
break;
} else {
- let mut kind_start = start_ix + line_start.bytes_scanned() + fence_length;
+ let excess_colons = scan_while(
+ &bytes[(start_ix + line_start.bytes_scanned() + fence_length)..],
+ |c| c == b':',
+ );
+ let mut kind_start =
+ start_ix + line_start.bytes_scanned() + fence_length + excess_colons;
kind_start += scan_whitespace_no_nl(&bytes[kind_start..]);
let kind_length = scan_while(&bytes[kind_start..], |c| {
is_ascii_alphanumeric(c) || c == b'_' || c == b'-' || c == b':' || c == b'.'
@@ -297,7 +293,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
&self.text[kind_start..(kind_start + kind_length)],
self.tree.is_in_table(),
);
-
let mut summary_start = kind_start + kind_length;
summary_start += scan_whitespace_no_nl(&bytes[summary_start..]);
let line_end = summary_start + scan_nextline(&bytes[summary_start..]);
@@ -313,7 +308,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
start: container_start,
end: 0,
body: ItemBody::Container(
- self.container_depth,
fence_length as u8,
ContainerKind::Spoiler,
summary_cow_ix,
@@ -325,7 +319,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
start: container_start,
end: 0,
body: ItemBody::Container(
- self.container_depth,
fence_length as u8,
ContainerKind::Default,
kind_cow_ix,
@@ -333,9 +326,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
});
}
self.tree.push();
- if self.container_depth < u8::MAX {
- self.container_depth = self.container_depth + 1;
- }
return summary_end + 1;
}
}
@@ -349,7 +339,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let mut pop_count = None;
for (i, &node_ix) in self.tree.walk_spine().rev().enumerate() {
match self.tree[node_ix].item.body {
- ItemBody::Container(_, length, ..) => {
+ ItemBody::Container(length, ..) => {
if line_start.scan_closing_container_extensions_fence(length) {
pop_count = Some(i + 1);
break;
@@ -795,7 +785,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let mut closes = false;
for &node_ix in self.tree.walk_spine().rev().skip(1) {
match self.tree[node_ix].item.body {
- ItemBody::Container(_, length, ..) => {
+ ItemBody::Container(length, ..) => {
if line_start.scan_closing_container_extensions_fence(length) {
closes = true;
break;
@@ -1632,18 +1622,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
fn pop(&mut self, ix: usize) {
let cur_ix = self.tree.pop().unwrap();
self.tree[cur_ix].item.end = ix;
-
- match self.tree[cur_ix].item.body {
- ItemBody::Container(..)
- | ItemBody::BlockQuote(..)
- | ItemBody::ListItem(..)
- | ItemBody::DefinitionListDefinition(..)
- | ItemBody::FootnoteDefinition(..) => {
- self.container_depth = self.container_depth - 1;
- }
- _ => {}
- }
-
if let ItemBody::DefinitionList(_) = self.tree[cur_ix].item.body {
fixup_end_of_definition_list(&mut self.tree, cur_ix);
self.begin_list_item = None;
@@ -1872,9 +1850,6 @@ impl<'a, 'b> FirstPass<'a, 'b> {
// TODO: check whether the label here is strictly necessary
body: ItemBody::FootnoteDefinition(self.allocs.allocate_cow(label)),
});
- if self.container_depth < u8::MAX {
- self.container_depth = self.container_depth + 1;
- }
self.tree.push();
Some(i)
}
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 0b7554a2..637cde70 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -114,9 +114,9 @@ pub(crate) enum ItemBody {
IndentCodeBlock,
HtmlBlock,
BlockQuote(Option),
- Container(u8, u8, ContainerKind, CowIndex),
- List(bool, u8, u64), // is_tight, list character, list start index
- ListItem(usize), // indent level
+ Container(u8, ContainerKind, CowIndex), // (fence length, specific renderer, descriptor used in renderer)
+ List(bool, u8, u64), // is_tight, list character, list start index
+ ListItem(usize), // indent level
FootnoteDefinition(CowIndex),
MetadataBlock(MetadataBlockKind),
@@ -2296,7 +2296,7 @@ fn body_to_tag_end(body: &ItemBody) -> TagEnd {
ItemBody::Image(..) => TagEnd::Image,
ItemBody::Heading(level, _) => TagEnd::Heading(level),
ItemBody::IndentCodeBlock | ItemBody::FencedCodeBlock(..) => TagEnd::CodeBlock,
- ItemBody::Container(_, _, kind, _) => TagEnd::ContainerBlock(kind),
+ ItemBody::Container(_, kind, _) => TagEnd::ContainerBlock(kind),
ItemBody::BlockQuote(kind) => TagEnd::BlockQuote(kind),
ItemBody::HtmlBlock => TagEnd::HtmlBlock,
ItemBody::List(_, c, _) => {
@@ -2377,9 +2377,7 @@ fn item_to_event<'a>(item: Item, text: &'a str, allocs: &mut Allocations<'a>) ->
Tag::CodeBlock(CodeBlockKind::Fenced(allocs.take_cow(cow_ix)))
}
ItemBody::IndentCodeBlock => Tag::CodeBlock(CodeBlockKind::Indented),
- ItemBody::Container(_, _, kind, cow_ix) => {
- Tag::ContainerBlock(kind, allocs.take_cow(cow_ix))
- }
+ ItemBody::Container(_, kind, cow_ix) => Tag::ContainerBlock(kind, allocs.take_cow(cow_ix)),
ItemBody::BlockQuote(kind) => Tag::BlockQuote(kind),
ItemBody::List(_, c, listitem_start) => {
if c == b'.' || c == b')' {
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index 8e8d226d..691ce799 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -270,17 +270,10 @@ impl<'a> LineStart<'a> {
}
pub(crate) fn scan_closing_container_extensions_fence(&mut self, length: u8) -> bool {
- let nl_ix = scan_nextline(&self.bytes[self.ix..]);
- let eol_length = scan_rev_while(&self.bytes[self.ix..(self.ix + nl_ix)], |c| {
- c == b'\n' || c == b'\r' || c == b' '
- });
- let fence_length =
- scan_rev_while(&self.bytes[self.ix..(self.ix + nl_ix - eol_length)], |c| {
- c == b':'
- });
+ let fence_length = scan_while_max(&self.bytes[self.ix..], |c| c == b':', u8::MAX as usize);
if fence_length >= length as usize {
- self.ix = self.ix + (nl_ix - eol_length);
+ self.ix = self.ix + fence_length;
true
} else {
false
@@ -488,6 +481,16 @@ where
data.iter().take_while(|&&c| f(c)).count()
}
+pub(crate) fn scan_while_max(data: &[u8], mut f: F, m: usize) -> usize
+where
+ F: FnMut(u8) -> bool,
+{
+ data.iter()
+ .enumerate()
+ .take_while(|(i, c)| *i < m && f(**c))
+ .count()
+}
+
pub(crate) fn scan_rev_while(data: &[u8], mut f: F) -> usize
where
F: FnMut(u8) -> bool,
@@ -525,9 +528,7 @@ pub(crate) fn scan_blank_line(bytes: &[u8]) -> Option {
}
pub(crate) fn scan_nextline(bytes: &[u8]) -> usize {
- memchr(b'\n', bytes).map_or(memchr(b'\r', bytes).map_or(bytes.len(), |x| x + 1), |x| {
- x + 1
- })
+ memchr(b'\n', bytes).map_or(bytes.len(), |x| x + 1)
}
// return: end byte for closing code fence, or None
diff --git a/pulldown-cmark/tests/html.rs b/pulldown-cmark/tests/html.rs
index e8c3bc61..b453d76d 100644
--- a/pulldown-cmark/tests/html.rs
+++ b/pulldown-cmark/tests/html.rs
@@ -346,6 +346,7 @@ fn issue_819() {
// Trailing newline doesn't matter. Just the actual HTML.
assert_eq!(expected, s.trim_end_matches('\n'));
}
+
for orig in original {
let mut s = String::new();
let mut opts = Options::empty();
diff --git a/pulldown-cmark/tests/suite/container_extensions.rs b/pulldown-cmark/tests/suite/container_extensions.rs
index d7bf9ddc..4457352a 100644
--- a/pulldown-cmark/tests/suite/container_extensions.rs
+++ b/pulldown-cmark/tests/suite/container_extensions.rs
@@ -410,3 +410,45 @@ x
test_markdown_html(original, expected, false, false, false, false, false, false, true);
}
+
+#[test]
+fn container_extensions_test_23() {
+ let original = r##"::: a
+:::: b
+::::: c
+::::
+x
+"##;
+ let expected = r##"
+
+
+
+
+x
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_24() {
+ let original = r##"::: a
+content :::
+"##;
+ let expected = r##"content :::
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
+
+#[test]
+fn container_extensions_test_25() {
+ let original = r##":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: a
+content :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+"##;
+ let expected = r##"content :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, true);
+}
From b3771d683d4f7a5fce6b2028639bc274a3d0e51c Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Mon, 20 Oct 2025 11:19:45 +0100
Subject: [PATCH 160/180] remove unnecessary test
---
pulldown-cmark/src/firstpass.rs | 2 +-
pulldown-cmark/src/scanners.rs | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 0b024d19..f8046fe2 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -273,7 +273,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
|c| c == b':',
u8::MAX as usize,
);
- if fence_length > u8::MAX as usize || self.tree.spine_len() > u8::MAX as usize {
+ if self.tree.spine_len() > u8::MAX as usize {
break;
} else {
let excess_colons = scan_while(
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index 691ce799..d83c7299 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -271,7 +271,6 @@ impl<'a> LineStart<'a> {
pub(crate) fn scan_closing_container_extensions_fence(&mut self, length: u8) -> bool {
let fence_length = scan_while_max(&self.bytes[self.ix..], |c| c == b':', u8::MAX as usize);
-
if fence_length >= length as usize {
self.ix = self.ix + fence_length;
true
From b209351a5bfaa4a807b19a5b7bf978520863cfff Mon Sep 17 00:00:00 2001
From: jim-taylor-business
Date: Tue, 21 Oct 2025 08:52:30 +0100
Subject: [PATCH 161/180] only extract summary when spoiler
Co-authored-by: Michael Howell
---
pulldown-cmark/src/firstpass.rs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index f8046fe2..ad7db448 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -298,12 +298,12 @@ impl<'a, 'b> FirstPass<'a, 'b> {
let line_end = summary_start + scan_nextline(&bytes[summary_start..]);
let summary_end = line_end
- scan_rev_while(&bytes[summary_start..line_end], is_ascii_whitespace);
- let summary = unescape(
- &self.text[summary_start..summary_end],
- self.tree.is_in_table(),
- );
- let summary_cow_ix = self.allocs.allocate_cow(summary);
if kind.eq_ignore_ascii_case("spoiler") {
+ let summary = unescape(
+ &self.text[summary_start..summary_end],
+ self.tree.is_in_table(),
+ );
+ let summary_cow_ix = self.allocs.allocate_cow(summary);
self.tree.append(Item {
start: container_start,
end: 0,
From 0825d2633299ba5be0d484b7fd89f721b0183805 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 5 Feb 2026 18:38:49 +0000
Subject: [PATCH 162/180] Bump time from 0.3.37 to 0.3.47
Bumps [time](https://github.com/time-rs/time) from 0.3.37 to 0.3.47.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/compare/v0.3.37...v0.3.47)
---
updated-dependencies:
- dependency-name: time
dependency-version: 0.3.47
dependency-type: indirect
...
Signed-off-by: dependabot[bot]
---
Cargo.lock | 40 +++++++++++++++++++++++++---------------
1 file changed, 25 insertions(+), 15 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 5b055b0f..9f73ad2a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -371,9 +371,9 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
[[package]]
name = "deranged"
-version = "0.3.11"
+version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
+checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587"
dependencies = [
"powerfmt",
]
@@ -1332,9 +1332,9 @@ dependencies = [
[[package]]
name = "num-conv"
-version = "0.1.0"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
+checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050"
[[package]]
name = "num-integer"
@@ -1678,18 +1678,28 @@ dependencies = [
[[package]]
name = "serde"
-version = "1.0.217"
+version = "1.0.228"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
+dependencies = [
+ "serde_core",
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_core"
+version = "1.0.228"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70"
+checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.217"
+version = "1.0.228"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0"
+checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
dependencies = [
"proc-macro2",
"quote",
@@ -1795,9 +1805,9 @@ dependencies = [
[[package]]
name = "time"
-version = "0.3.37"
+version = "0.3.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35e7868883861bd0e56d9ac6efcaaca0d6d5d82a2a7ec8209ff492c07cf37b21"
+checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c"
dependencies = [
"deranged",
"itoa",
@@ -1805,22 +1815,22 @@ dependencies = [
"num-conv",
"num_threads",
"powerfmt",
- "serde",
+ "serde_core",
"time-core",
"time-macros",
]
[[package]]
name = "time-core"
-version = "0.1.2"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
+checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca"
[[package]]
name = "time-macros"
-version = "0.2.19"
+version = "0.2.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2834e6017e3e5e4b9834939793b282bc03b37a3336245fa820e35e233e2a85de"
+checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215"
dependencies = [
"num-conv",
"time-core",
From fc8fe713f58d7f4495038b48fe76c1f101fb3af1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mart=C3=ADn=20Pozo?=
Date: Mon, 23 Feb 2026 09:04:54 +0100
Subject: [PATCH 163/180] chore: cargo update and bump version of
pulldown-cmark
---
Cargo.lock | 574 +++++++++++++++++++++-----------------
pulldown-cmark/Cargo.toml | 2 +-
2 files changed, 322 insertions(+), 254 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 9f73ad2a..731f2f71 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,15 +4,15 @@ version = 3
[[package]]
name = "adler2"
-version = "2.0.0"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
[[package]]
name = "aho-corasick"
-version = "1.1.3"
+version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
+checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
dependencies = [
"memchr",
]
@@ -31,9 +31,9 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
[[package]]
name = "anstream"
-version = "0.6.18"
+version = "0.6.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
+checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
dependencies = [
"anstyle",
"anstyle-parse",
@@ -46,59 +46,59 @@ dependencies = [
[[package]]
name = "anstyle"
-version = "1.0.10"
+version = "1.0.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
+checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
[[package]]
name = "anstyle-parse"
-version = "0.2.6"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
+checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
dependencies = [
"utf8parse",
]
[[package]]
name = "anstyle-query"
-version = "1.1.2"
+version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
+checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
name = "anstyle-wincon"
-version = "3.0.7"
+version = "3.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e"
+checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
dependencies = [
"anstyle",
- "once_cell",
- "windows-sys 0.59.0",
+ "once_cell_polyfill",
+ "windows-sys 0.61.2",
]
[[package]]
name = "anyhow"
-version = "1.0.95"
+version = "1.0.102"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"
+checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
[[package]]
name = "arbitrary"
-version = "1.4.1"
+version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223"
+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
dependencies = [
"derive_arbitrary",
]
[[package]]
name = "autocfg"
-version = "1.4.0"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
+checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "bincode"
@@ -132,27 +132,21 @@ dependencies = [
[[package]]
name = "bitflags"
-version = "2.8.0"
+version = "2.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36"
+checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af"
[[package]]
name = "bumpalo"
-version = "3.17.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf"
-
-[[package]]
-name = "byteorder"
-version = "1.5.0"
+version = "3.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"
[[package]]
name = "calendrical_calculations"
-version = "0.1.2"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f27ca2b6e2f7d75f43e001ded6f25e79b80bded5abbe764cbdf78c25a3051f4b"
+checksum = "e97f73e95d668625c9b28a3072e6326773785a0cf807de9f3d632778438f3d38"
dependencies = [
"core_maths",
"displaydoc",
@@ -166,10 +160,11 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cc"
-version = "1.2.13"
+version = "1.2.56"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7777341816418c02e033934a09f20dc0ccaf65a5201ef8a450ae0105a573fda"
+checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2"
dependencies = [
+ "find-msvc-tools",
"jobserver",
"libc",
"shlex",
@@ -186,9 +181,9 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "1.0.0"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "ciborium"
@@ -230,9 +225,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.5.29"
+version = "4.5.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8acebd8ad879283633b343856142139f2da2317c96b05b4dd6181c61e2480184"
+checksum = "2797f34da339ce31042b27d23607e051786132987f595b02ba4f6a6dffb7030a"
dependencies = [
"clap_builder",
"clap_derive",
@@ -240,9 +235,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.5.29"
+version = "4.5.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6ba32cbda51c7e1dfd49acc1457ba1a7dec5b64fe360e828acb13ca8dc9c2f9"
+checksum = "24a241312cea5059b13574bb9b3861cabf758b879c15190b37b6d6fd63ab6876"
dependencies = [
"anstream",
"anstyle",
@@ -252,9 +247,9 @@ dependencies = [
[[package]]
name = "clap_derive"
-version = "4.5.28"
+version = "4.5.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bf4ced95c6f4a675af3da73304b9ac4ed991640c36374e4b46795c49e17cf1ed"
+checksum = "a92793da1a46a5f2a02a6f4c46c6496b28c43638adea8306fcb0caa1634f24e5"
dependencies = [
"heck",
"proc-macro2",
@@ -264,15 +259,15 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.7.4"
+version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
+checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831"
[[package]]
name = "colorchoice"
-version = "1.0.3"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
+checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
[[package]]
name = "colored"
@@ -295,9 +290,9 @@ dependencies = [
[[package]]
name = "crc32fast"
-version = "1.4.2"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3"
+checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
dependencies = [
"cfg-if",
]
@@ -365,24 +360,24 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
[[package]]
name = "crunchy"
-version = "0.2.3"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
+checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
[[package]]
name = "deranged"
-version = "0.5.5"
+version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587"
+checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
dependencies = [
"powerfmt",
]
[[package]]
name = "derive_arbitrary"
-version = "1.4.1"
+version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800"
+checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"
dependencies = [
"proc-macro2",
"quote",
@@ -409,9 +404,9 @@ dependencies = [
[[package]]
name = "diplomat-runtime"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29f9efe348e178ba77b6035bc6629138486f8b461654e7ac7ad8afaa61bd4d98"
+checksum = "53bfcc833b58615b593a6e5c46771cb36b1cfce94899c60823810939fe8ca9d9"
dependencies = [
"log",
]
@@ -464,9 +459,9 @@ dependencies = [
[[package]]
name = "either"
-version = "1.13.0"
+version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
+checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "encoding_c"
@@ -503,26 +498,31 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
[[package]]
name = "errno"
-version = "0.3.10"
+version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
name = "filetime"
-version = "0.2.25"
+version = "0.2.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586"
+checksum = "f98844151eee8917efc50bd9e8318cb963ae8b297431495d3f758616ea5c57db"
dependencies = [
"cfg-if",
"libc",
"libredox",
- "windows-sys 0.59.0",
]
+[[package]]
+name = "find-msvc-tools"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
+
[[package]]
name = "fixed_decimal"
version = "0.5.6"
@@ -537,9 +537,9 @@ dependencies = [
[[package]]
name = "flate2"
-version = "1.0.35"
+version = "1.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c"
+checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
dependencies = [
"crc32fast",
"miniz_oxide",
@@ -547,44 +547,57 @@ dependencies = [
[[package]]
name = "foldhash"
-version = "0.1.4"
+version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f"
+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
[[package]]
name = "getopts"
-version = "0.2.21"
+version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5"
+checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df"
dependencies = [
"unicode-width",
]
[[package]]
name = "getrandom"
-version = "0.2.15"
+version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
dependencies = [
"cfg-if",
"libc",
"wasi",
]
+[[package]]
+name = "getrandom"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi",
+ "wasip2",
+]
+
[[package]]
name = "glob"
-version = "0.3.2"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
+checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
[[package]]
name = "half"
-version = "2.4.1"
+version = "2.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6dd08c532ae367adf81c312a4580bc67f1d0fe8bc9c460520283f4c0ff277888"
+checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
dependencies = [
"cfg-if",
"crunchy",
+ "zerocopy",
]
[[package]]
@@ -595,9 +608,9 @@ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
[[package]]
name = "hashbrown"
-version = "0.15.2"
+version = "0.15.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
dependencies = [
"allocator-api2",
"equivalent",
@@ -612,23 +625,17 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "hermit-abi"
-version = "0.3.9"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
-
-[[package]]
-name = "hermit-abi"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc"
+checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
[[package]]
name = "home"
-version = "0.5.11"
+version = "0.5.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf"
+checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -650,9 +657,9 @@ dependencies = [
[[package]]
name = "icu_calendar_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e009b7f0151ee6fb28c40b1283594397e0b7183820793e9ace3dcd13db126d0"
+checksum = "820499e77e852162190608b4f444e7b4552619150eafc39a9e39333d9efae9e1"
[[package]]
name = "icu_capi"
@@ -705,9 +712,9 @@ dependencies = [
[[package]]
name = "icu_casemap_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4d57966d5ab748f74513be4046867f9a20e801e2775d41f91d04a0f560b61f08"
+checksum = "02bd9f6276270c85a5cd54611adbbf94e993ec464a2a86a452a6c565b7ded5d9"
[[package]]
name = "icu_collator"
@@ -730,9 +737,9 @@ dependencies = [
[[package]]
name = "icu_collator_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ee3f88741364b7d6269cce6827a3e6a8a2cf408a78f766c9224ab479d5e4ae5"
+checksum = "7b353986d77d28991eca4dea5ef2b8982f639342ae19ca81edc44f048bc38ebb"
[[package]]
name = "icu_collections"
@@ -771,9 +778,9 @@ dependencies = [
[[package]]
name = "icu_datetime_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2ba7e7f7a01269b9afb0a39eff4f8676f693b55f509b3120e43a0350a9f88bea"
+checksum = "bef5f04076123cab1b7a926a7083db27fe0d7a0e575adb984854aae3f3a6507d"
[[package]]
name = "icu_decimal"
@@ -791,9 +798,9 @@ dependencies = [
[[package]]
name = "icu_decimal_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8d424c994071c6f5644f999925fc868c85fec82295326e75ad5017bc94b41523"
+checksum = "67c95dd97f5ccf6d837a9c115496ec7d36646fa86ca18e7f1412115b4c820ae2"
[[package]]
name = "icu_experimental"
@@ -827,9 +834,9 @@ dependencies = [
[[package]]
name = "icu_experimental_data"
-version = "0.1.0"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c178b9a34083fca5bd70d61f647575335e9c197d0f30c38e8ccd187babc69d0"
+checksum = "121df92eafb8f5286d4e8ff401c1e7db8384377f806db3f8db77b91e5b7bd4dd"
[[package]]
name = "icu_list"
@@ -847,9 +854,9 @@ dependencies = [
[[package]]
name = "icu_list_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e1825170d2c6679cb20dbd96a589d034e49f698aed9a2ef4fafc9a0101ed298f"
+checksum = "52b1a7fbdbf3958f1be8354cb59ac73f165b7b7082d447ff2090355c9a069120"
[[package]]
name = "icu_locid"
@@ -880,9 +887,9 @@ dependencies = [
[[package]]
name = "icu_locid_transform_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e"
+checksum = "7515e6d781098bf9f7205ab3fc7e9709d34554ae0b21ddbcb5febfa4bc7df11d"
[[package]]
name = "icu_normalizer"
@@ -904,9 +911,9 @@ dependencies = [
[[package]]
name = "icu_normalizer_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516"
+checksum = "c5e8338228bdc8ab83303f16b797e177953730f601a96c25d10cb3ab0daa0cb7"
[[package]]
name = "icu_pattern"
@@ -937,9 +944,9 @@ dependencies = [
[[package]]
name = "icu_plurals_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e3e8f775b215d45838814a090a2227247a7431d74e9156407d9c37f6ef0f208"
+checksum = "a483403238cb7d6a876a77a5f8191780336d80fe7b8b00bfdeb20be6abbfd112"
[[package]]
name = "icu_properties"
@@ -959,9 +966,9 @@ dependencies = [
[[package]]
name = "icu_properties_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569"
+checksum = "85fb8799753b75aee8d2a21d7c14d9f38921b54b3dbda10f5a3c7a7b82dba5e2"
[[package]]
name = "icu_provider"
@@ -1023,9 +1030,9 @@ dependencies = [
[[package]]
name = "icu_segmenter_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f739ee737260d955e330bc83fdeaaf1631f7fb7ed218761d3c04bb13bb7d79df"
+checksum = "a1e52775179941363cc594e49ce99284d13d6948928d8e72c755f55e98caa1eb"
[[package]]
name = "icu_timezone"
@@ -1044,9 +1051,9 @@ dependencies = [
[[package]]
name = "icu_timezone_data"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c588878c508a3e2ace333b3c50296053e6483c6a7541251b546cc59dcd6ced8e"
+checksum = "1adcf7b613a268af025bc2a2532b4b9ee294e6051c5c0832d8bff20ac0232e68"
[[package]]
name = "indexmap"
@@ -1060,20 +1067,20 @@ dependencies = [
[[package]]
name = "is-terminal"
-version = "0.4.15"
+version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e19b23d53f35ce9f56aebc7d1bb4e6ac1e9c0db7ac85c8d1760c04379edced37"
+checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
- "hermit-abi 0.4.0",
+ "hermit-abi",
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
name = "is_terminal_polyfill"
-version = "1.70.1"
+version = "1.70.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
+checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
[[package]]
name = "itertools"
@@ -1095,24 +1102,25 @@ dependencies = [
[[package]]
name = "itoa"
-version = "1.0.14"
+version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
+checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
[[package]]
name = "jobserver"
-version = "0.1.32"
+version = "0.1.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0"
+checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
dependencies = [
+ "getrandom 0.3.4",
"libc",
]
[[package]]
name = "js-sys"
-version = "0.3.77"
+version = "0.3.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
+checksum = "c7e709f3e3d22866f9c25b3aff01af289b18422cc8b4262fb19103ee80fe513d"
dependencies = [
"once_cell",
"wasm-bindgen",
@@ -1132,15 +1140,15 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "libc"
-version = "0.2.169"
+version = "0.2.182"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
+checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112"
[[package]]
name = "libfuzzer-sys"
-version = "0.4.9"
+version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf78f52d400cf2d84a3a973a78a592b4adc535739e0a5597a0da6f0c357adc75"
+checksum = "f12a681b7dd8ce12bff52488013ba614b869148d54dd79836ab85aafdd53f08d"
dependencies = [
"arbitrary",
"cc",
@@ -1148,25 +1156,25 @@ dependencies = [
[[package]]
name = "libloading"
-version = "0.8.6"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
+checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
dependencies = [
"cfg-if",
- "windows-targets 0.52.6",
+ "windows-link",
]
[[package]]
name = "libm"
-version = "0.2.11"
+version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa"
+checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
[[package]]
name = "libredox"
-version = "0.1.3"
+version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
+checksum = "3d0b95e02c851351f877147b7deea7b1afb1df71b63aa5f8270716e0c5720616"
dependencies = [
"bitflags",
"libc",
@@ -1175,9 +1183,9 @@ dependencies = [
[[package]]
name = "libz-sys"
-version = "1.1.21"
+version = "1.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df9b68e50e6e0b26f672573834882eb57759f6db9b3be2ea3c35c91188bb4eaa"
+checksum = "15d118bbf3771060e7311cc7bb0545b01d08a8b4a7de949198dec1fa0ca1c0f7"
dependencies = [
"cc",
"libc",
@@ -1191,23 +1199,29 @@ version = "0.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
+[[package]]
+name = "linux-raw-sys"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
+
[[package]]
name = "litemap"
-version = "0.7.4"
+version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104"
+checksum = "23fb14cb19457329c82206317a5663005a4d404783dc74f4252769b0d5f42856"
[[package]]
name = "log"
-version = "0.4.25"
+version = "0.4.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f"
+checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
[[package]]
name = "matrixmultiply"
-version = "0.3.9"
+version = "0.3.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9380b911e3e96d10c1f415da0876389aaf1b56759054eeb0de7df940c456ba1a"
+checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
dependencies = [
"autocfg",
"rawpointer",
@@ -1215,9 +1229,9 @@ dependencies = [
[[package]]
name = "memchr"
-version = "2.7.4"
+version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
+checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
[[package]]
name = "minimal-lexical"
@@ -1227,11 +1241,12 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "miniz_oxide"
-version = "0.8.4"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3b1c9bd4fe1f0f8b387f6eb9eb3b4a1aa26185e5750efb9140301703f62cd1b"
+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
dependencies = [
"adler2",
+ "simd-adler32",
]
[[package]]
@@ -1294,9 +1309,9 @@ dependencies = [
[[package]]
name = "noisy_float"
-version = "0.2.0"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "978fe6e6ebc0bf53de533cd456ca2d9de13de13856eda1518a285d7705a213af"
+checksum = "c16843be85dd410c6a12251c4eca0dd1d3ee8c5725f746c4d5e0fdcec0a864b2"
dependencies = [
"num-traits",
]
@@ -1367,11 +1382,11 @@ dependencies = [
[[package]]
name = "num_cpus"
-version = "1.16.0"
+version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
+checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b"
dependencies = [
- "hermit-abi 0.3.9",
+ "hermit-abi",
"libc",
]
@@ -1386,21 +1401,27 @@ dependencies = [
[[package]]
name = "once_cell"
-version = "1.20.3"
+version = "1.21.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
+
+[[package]]
+name = "once_cell_polyfill"
+version = "1.70.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e"
+checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
[[package]]
name = "oorandom"
-version = "11.1.4"
+version = "11.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b410bbe7e14ab526a0e86877eb47c6996a2bd7746f027ba551028c925390e4e9"
+checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"
[[package]]
name = "pkg-config"
-version = "0.3.31"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2"
+checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
[[package]]
name = "plotters"
@@ -1438,9 +1459,9 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
[[package]]
name = "ppv-lite86"
-version = "0.2.20"
+version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
+checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
dependencies = [
"zerocopy",
]
@@ -1457,21 +1478,21 @@ dependencies = [
[[package]]
name = "proc-macro2"
-version = "1.0.93"
+version = "1.0.106"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
+checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
dependencies = [
"unicode-ident",
]
[[package]]
name = "pulldown-cmark"
-version = "0.13.0"
+version = "0.13.1"
dependencies = [
"bincode",
"bitflags",
"getopts",
- "hashbrown 0.15.2",
+ "hashbrown 0.15.5",
"memchr",
"pulldown-cmark-escape",
"regex",
@@ -1517,13 +1538,19 @@ dependencies = [
[[package]]
name = "quote"
-version = "1.0.38"
+version = "1.0.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
+checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4"
dependencies = [
"proc-macro2",
]
+[[package]]
+name = "r-efi"
+version = "5.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
+
[[package]]
name = "rand"
version = "0.8.5"
@@ -1551,7 +1578,7 @@ version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
- "getrandom",
+ "getrandom 0.2.17",
]
[[package]]
@@ -1571,9 +1598,9 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
[[package]]
name = "rayon"
-version = "1.10.0"
+version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa"
+checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
dependencies = [
"either",
"rayon-core",
@@ -1581,9 +1608,9 @@ dependencies = [
[[package]]
name = "rayon-core"
-version = "1.12.1"
+version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2"
+checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
dependencies = [
"crossbeam-deque",
"crossbeam-utils",
@@ -1591,22 +1618,22 @@ dependencies = [
[[package]]
name = "redox_syscall"
-version = "0.5.8"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834"
+checksum = "35985aa610addc02e24fc232012c86fd11f14111180f902b67e2d5331f8ebf2b"
dependencies = [
"bitflags",
]
[[package]]
name = "regex"
-version = "1.11.1"
+version = "1.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
+checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
dependencies = [
"aho-corasick",
"memchr",
- "regex-automata 0.4.9",
+ "regex-automata 0.4.14",
"regex-syntax",
]
@@ -1621,9 +1648,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.9"
+version = "0.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
+checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
dependencies = [
"aho-corasick",
"memchr",
@@ -1632,9 +1659,9 @@ dependencies = [
[[package]]
name = "regex-syntax"
-version = "0.8.5"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
+checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c"
[[package]]
name = "rustc-hash"
@@ -1651,21 +1678,34 @@ dependencies = [
"bitflags",
"errno",
"libc",
- "linux-raw-sys",
+ "linux-raw-sys 0.4.15",
"windows-sys 0.59.0",
]
+[[package]]
+name = "rustix"
+version = "1.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
+dependencies = [
+ "bitflags",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.12.1",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "rustversion"
-version = "1.0.19"
+version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4"
+checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
[[package]]
name = "ryu"
-version = "1.0.19"
+version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd"
+checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
[[package]]
name = "same-file"
@@ -1708,14 +1748,15 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.138"
+version = "1.0.149"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949"
+checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
dependencies = [
"itoa",
"memchr",
- "ryu",
"serde",
+ "serde_core",
+ "zmij",
]
[[package]]
@@ -1724,6 +1765,12 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+[[package]]
+name = "simd-adler32"
+version = "0.3.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2"
+
[[package]]
name = "simple_logger"
version = "4.3.3"
@@ -1738,15 +1785,15 @@ dependencies = [
[[package]]
name = "smallvec"
-version = "1.13.2"
+version = "1.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
+checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
[[package]]
name = "stable_deref_trait"
-version = "1.2.0"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
[[package]]
name = "strck"
@@ -1772,9 +1819,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
[[package]]
name = "syn"
-version = "2.0.98"
+version = "2.0.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1"
+checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
dependencies = [
"proc-macro2",
"quote",
@@ -1783,9 +1830,9 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.1"
+version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
dependencies = [
"proc-macro2",
"quote",
@@ -1794,9 +1841,9 @@ dependencies = [
[[package]]
name = "tar"
-version = "0.4.43"
+version = "0.4.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c65998313f8e17d0d553d28f91a0df93e4dbbbf770279c7bc21ca0f09ea1a1f6"
+checksum = "1d863878d212c87a19c1a610eb53bb01fe12951c0501cf5a0d65f724914a667a"
dependencies = [
"filetime",
"libc",
@@ -1858,9 +1905,9 @@ dependencies = [
[[package]]
name = "unicase"
-version = "2.8.1"
+version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539"
+checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142"
[[package]]
name = "unicode-bidi"
@@ -1870,15 +1917,15 @@ checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5"
[[package]]
name = "unicode-ident"
-version = "1.0.16"
+version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034"
+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
[[package]]
name = "unicode-width"
-version = "0.1.14"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
+checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
[[package]]
name = "urlencoding"
@@ -1922,41 +1969,37 @@ dependencies = [
[[package]]
name = "wasi"
-version = "0.11.0+wasi-snapshot-preview1"
+version = "0.11.1+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
[[package]]
-name = "wasm-bindgen"
-version = "0.2.100"
+name = "wasip2"
+version = "1.0.2+wasi-0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
+checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5"
dependencies = [
- "cfg-if",
- "once_cell",
- "rustversion",
- "wasm-bindgen-macro",
+ "wit-bindgen",
]
[[package]]
-name = "wasm-bindgen-backend"
-version = "0.2.100"
+name = "wasm-bindgen"
+version = "0.2.111"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
+checksum = "ec1adf1535672f5b7824f817792b1afd731d7e843d2d04ec8f27e8cb51edd8ac"
dependencies = [
- "bumpalo",
- "log",
- "proc-macro2",
- "quote",
- "syn",
+ "cfg-if",
+ "once_cell",
+ "rustversion",
+ "wasm-bindgen-macro",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.100"
+version = "0.2.111"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
+checksum = "19e638317c08b21663aed4d2b9a2091450548954695ff4efa75bff5fa546b3b1"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -1964,31 +2007,31 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.100"
+version = "0.2.111"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
+checksum = "2c64760850114d03d5f65457e96fc988f11f01d38fbaa51b254e4ab5809102af"
dependencies = [
+ "bumpalo",
"proc-macro2",
"quote",
"syn",
- "wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.100"
+version = "0.2.111"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
+checksum = "60eecd4fe26177cfa3339eb00b4a36445889ba3ad37080c2429879718e20ca41"
dependencies = [
"unicode-ident",
]
[[package]]
name = "web-sys"
-version = "0.3.77"
+version = "0.3.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
+checksum = "9d6bb20ed2d9572df8584f6dc81d68a41a625cadc6f15999d649a70ce7e3597a"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -2003,18 +2046,24 @@ dependencies = [
"either",
"home",
"once_cell",
- "rustix",
+ "rustix 0.38.44",
]
[[package]]
name = "winapi-util"
-version = "0.1.9"
+version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
[[package]]
name = "windows-sys"
version = "0.48.0"
@@ -2033,6 +2082,15 @@ dependencies = [
"windows-targets 0.52.6",
]
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link",
+]
+
[[package]]
name = "windows-targets"
version = "0.48.5"
@@ -2154,6 +2212,12 @@ version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+[[package]]
+name = "wit-bindgen"
+version = "0.51.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
+
[[package]]
name = "write16"
version = "1.0.0"
@@ -2171,13 +2235,12 @@ dependencies = [
[[package]]
name = "xattr"
-version = "1.4.0"
+version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e105d177a3871454f754b33bb0ee637ecaaac997446375fd3e5d43a2ed00c909"
+checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"
dependencies = [
"libc",
- "linux-raw-sys",
- "rustix",
+ "rustix 1.1.4",
]
[[package]]
@@ -2212,19 +2275,18 @@ dependencies = [
[[package]]
name = "zerocopy"
-version = "0.7.35"
+version = "0.8.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
+checksum = "db6d35d663eadb6c932438e763b262fe1a70987f9ae936e60158176d710cae4a"
dependencies = [
- "byteorder",
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.7.35"
+version = "0.8.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
+checksum = "4122cd3169e94605190e77839c9a40d40ed048d305bfdc146e7df40ab0f3e517"
dependencies = [
"proc-macro2",
"quote",
@@ -2233,18 +2295,18 @@ dependencies = [
[[package]]
name = "zerofrom"
-version = "0.1.5"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e"
+checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"
dependencies = [
"zerofrom-derive",
]
[[package]]
name = "zerofrom-derive"
-version = "0.1.5"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808"
+checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
dependencies = [
"proc-macro2",
"quote",
@@ -2284,3 +2346,9 @@ dependencies = [
"quote",
"syn",
]
+
+[[package]]
+name = "zmij"
+version = "1.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
diff --git a/pulldown-cmark/Cargo.toml b/pulldown-cmark/Cargo.toml
index bbfb6621..e04f02e1 100644
--- a/pulldown-cmark/Cargo.toml
+++ b/pulldown-cmark/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pulldown-cmark"
-version = "0.13.0"
+version = "0.13.1"
authors = [
"Raph Levien ",
"Marcus Klaas de Vries ",
From 87179037122cc994ed54fb9240ed1c3a969977eb Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 20 Mar 2026 18:14:39 +0000
Subject: [PATCH 164/180] Bump tar from 0.4.44 to 0.4.45
Bumps [tar](https://github.com/alexcrichton/tar-rs) from 0.4.44 to 0.4.45.
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.44...0.4.45)
---
updated-dependencies:
- dependency-name: tar
dependency-version: 0.4.45
dependency-type: indirect
...
Signed-off-by: dependabot[bot]
---
Cargo.lock | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 731f2f71..3d116ab8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -503,7 +503,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -1073,7 +1073,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -1692,7 +1692,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys 0.12.1",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -1841,9 +1841,9 @@ dependencies = [
[[package]]
name = "tar"
-version = "0.4.44"
+version = "0.4.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d863878d212c87a19c1a610eb53bb01fe12951c0501cf5a0d65f724914a667a"
+checksum = "22692a6476a21fa75fdfc11d452fda482af402c008cdbaf3476414e122040973"
dependencies = [
"filetime",
"libc",
@@ -2055,7 +2055,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.48.0",
]
[[package]]
From 4d1744ad3b2c5cff23e289c673daf27ddbd3ca10 Mon Sep 17 00:00:00 2001
From: Zoo Sky
Date: Fri, 10 Apr 2026 15:24:53 +0200
Subject: [PATCH 165/180] fix: allow punctuation content in superscript when
preceded by alphanumeric
Allow `^` to open with punctuation content (e.g. `+`, `-`) when
preceded by an alphanumeric character or a closing delimiter (`~`, `^`).
This enables chemical ion notation like `H^+^`, `Ca^2+^`, and
`NH~4~^+^` while preventing false positives like standalone `^+^`.
The key change is in `delim_run_can_open`: the `^` + punctuation check
now runs before the `ix == 0` early return, so start-of-line `^+^` is
correctly rejected. Preceding closing delimiters (`~`, `^`) are also
accepted to support cases like `NH~4~^+^` where the superscript follows
a subscript expression.
---
pulldown-cmark/specs/super_sub.txt | 31 +++++++++++++++++++
pulldown-cmark/src/firstpass.rs | 34 +++++++++++++++++----
pulldown-cmark/tests/suite/super_sub.rs | 40 +++++++++++++++++++++++++
3 files changed, 100 insertions(+), 5 deletions(-)
diff --git a/pulldown-cmark/specs/super_sub.txt b/pulldown-cmark/specs/super_sub.txt
index 05ec5817..6da3dd61 100644
--- a/pulldown-cmark/specs/super_sub.txt
+++ b/pulldown-cmark/specs/super_sub.txt
@@ -82,3 +82,34 @@ Emphasis example included for analogy.
foo^^bar~
foo__bar*
````````````````````````````````
+
+Superscript with punctuation content (chemical ions, math).
+When preceded by an alphanumeric character, superscript opens
+even if the content is punctuation like `+` or `-`.
+
+```````````````````````````````` example_super_sub
+H^+^ + OH^-^
+.
+H+ + OH-
+````````````````````````````````
+
+```````````````````````````````` example_super_sub
+Ca^2+^ + CO~3~^2-^
+.
+Ca2+ + CO32-
+````````````````````````````````
+
+```````````````````````````````` example_super_sub
+NH~4~^+^
+.
+NH4+
+````````````````````````````````
+
+Standalone punctuation-only superscript without a preceding
+alphanumeric does not open (avoids false positives).
+
+```````````````````````````````` example_super_sub
+^+^ not superscript
+.
+^+^ not superscript
+````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index ad7db448..da925c7d 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -2386,6 +2386,26 @@ fn delim_run_can_open(
if next_char.is_whitespace() {
return false;
}
+ let delim = suffix.bytes().next().unwrap();
+ // `^` with punctuation content (e.g. `^+^`) requires a preceding alphanumeric
+ // or delimiter character (e.g. `H^+^`, `NH~4~^+^`). At start of line (ix == 0)
+ // there is no preceding character, so `^` cannot open with punctuation content.
+ // This check must run before the `ix == 0` early return below.
+ if delim == b'^' && is_punctuation(next_char) {
+ if ix == 0 {
+ return false;
+ }
+ if options.contains(Options::ENABLE_SUPERSCRIPT) {
+ let prev_char = s[..ix].chars().last();
+ // Allow after alphanumeric (H^+^) or after closing delimiters
+ // like ~ or ^ (NH~4~^+^, x^2^^+^)
+ if prev_char.is_some_and(|c| c.is_alphanumeric() || c == '~' || c == '^') {
+ return true;
+ }
+ }
+ // Punctuation content without qualifying predecessor -- don't open
+ return false;
+ }
if ix == 0 {
return true;
}
@@ -2397,9 +2417,12 @@ fn delim_run_can_open(
return false;
}
}
- let delim = suffix.bytes().next().unwrap();
// `*`, `~~`, and `^` can be intraword, `~` can only be interword if it's subscript, `_` cannot
- if (delim == b'*' || delim == b'^') && !is_punctuation(next_char) {
+ if delim == b'*' && !is_punctuation(next_char) {
+ return true;
+ }
+ // `^` with non-punctuation content can open intraword
+ if delim == b'^' {
return true;
}
if delim == b'~' && run_len > 1 {
@@ -2450,9 +2473,10 @@ fn delim_run_can_close(
}
let delim = suffix.bytes().next().unwrap();
// `*`, `~~`, and `^` can be intraword, `~` can only be interword if it's subscript, `_` cannot
- if (delim == b'*' || delim == b'^' || (delim == b'~' && run_len > 1))
- && !is_punctuation(prev_char)
- {
+ if (delim == b'*' || (delim == b'~' && run_len > 1)) && !is_punctuation(prev_char) {
+ return true;
+ }
+ if delim == b'^' && !is_punctuation(prev_char) {
return true;
}
if delim == b'~' && (prev_char == '~' || options.contains(Options::ENABLE_SUBSCRIPT)) {
diff --git a/pulldown-cmark/tests/suite/super_sub.rs b/pulldown-cmark/tests/suite/super_sub.rs
index ba59aeda..6edebe2a 100644
--- a/pulldown-cmark/tests/suite/super_sub.rs
+++ b/pulldown-cmark/tests/suite/super_sub.rs
@@ -111,3 +111,43 @@ fn super_sub_test_10() {
test_markdown_html(original, expected, false, false, false, true, false, false, false);
}
+
+#[test]
+fn super_sub_test_11() {
+ let original = r##"H^+^ + OH^-^
+"##;
+ let expected = r##"H+ + OH-
+"##;
+
+ test_markdown_html(original, expected, false, false, false, true, false, false, false);
+}
+
+#[test]
+fn super_sub_test_12() {
+ let original = r##"Ca^2+^ + CO~3~^2-^
+"##;
+ let expected = r##"Ca2+ + CO32-
+"##;
+
+ test_markdown_html(original, expected, false, false, false, true, false, false, false);
+}
+
+#[test]
+fn super_sub_test_13() {
+ let original = r##"NH~4~^+^
+"##;
+ let expected = r##"NH4+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, true, false, false, false);
+}
+
+#[test]
+fn super_sub_test_14() {
+ let original = r##"^+^ not superscript
+"##;
+ let expected = r##"^+^ not superscript
+"##;
+
+ test_markdown_html(original, expected, false, false, false, true, false, false, false);
+}
From 43fec9f35aab934b4476b3daaada5eca0dc048df Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 22 Apr 2026 23:12:26 +0000
Subject: [PATCH 166/180] Bump rand from 0.8.5 to 0.8.6
Bumps [rand](https://github.com/rust-random/rand) from 0.8.5 to 0.8.6.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/0.8.6/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/compare/0.8.5...0.8.6)
---
updated-dependencies:
- dependency-name: rand
dependency-version: 0.8.6
dependency-type: direct:production
...
Signed-off-by: dependabot[bot]
---
Cargo.lock | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 3d116ab8..a0c9bd69 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -503,7 +503,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -1073,7 +1073,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -1553,9 +1553,9 @@ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
[[package]]
name = "rand"
-version = "0.8.5"
+version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
+checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a"
dependencies = [
"libc",
"rand_chacha",
@@ -1692,7 +1692,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys 0.12.1",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -2055,7 +2055,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.48.0",
+ "windows-sys 0.61.2",
]
[[package]]
From c8960aa3ebf62b48dbc23c7e182230ad6c12595f Mon Sep 17 00:00:00 2001
From: gorgonian <10594600+gorgonian@users.noreply.github.com>
Date: Thu, 7 May 2026 15:31:49 -0700
Subject: [PATCH 167/180] feat: add ==highlight== inline extension behind
ENABLE_HIGHLIGHT
---
README.md | 6 +-
.../examples/parser-map-tag-print.rs | 1 +
pulldown-cmark/specs/highlight.txt | 166 ++++++++++++
pulldown-cmark/src/firstpass.rs | 32 ++-
pulldown-cmark/src/html.rs | 4 +
pulldown-cmark/src/lib.rs | 13 +
pulldown-cmark/src/main.rs | 4 +
pulldown-cmark/src/parse.rs | 27 +-
pulldown-cmark/tests/lib.rs | 1 +
pulldown-cmark/tests/suite/highlight.rs | 240 ++++++++++++++++++
pulldown-cmark/tests/suite/mod.rs | 1 +
11 files changed, 485 insertions(+), 10 deletions(-)
create mode 100644 pulldown-cmark/specs/highlight.txt
create mode 100644 pulldown-cmark/tests/suite/highlight.rs
diff --git a/README.md b/README.md
index d111acde..6052da87 100644
--- a/README.md
+++ b/README.md
@@ -20,8 +20,10 @@ It is designed to be:
Further, it optionally supports parsing footnotes,
[Github flavored tables](https://github.github.com/gfm/#tables-extension-),
-[Github flavored task lists](https://github.github.com/gfm/#task-list-items-extension-) and
-[strikethrough](https://github.github.com/gfm/#strikethrough-extension-).
+[Github flavored task lists](https://github.github.com/gfm/#task-list-items-extension-),
+[strikethrough](https://github.github.com/gfm/#strikethrough-extension-) and
+[highlight](https://github.com/markdown-it/markdown-it-mark) (`==marked==`,
+rendered as ``).
Rustc 1.71.1 or newer is required to build the crate.
diff --git a/pulldown-cmark/examples/parser-map-tag-print.rs b/pulldown-cmark/examples/parser-map-tag-print.rs
index c3bbdc9c..cb83c691 100644
--- a/pulldown-cmark/examples/parser-map-tag-print.rs
+++ b/pulldown-cmark/examples/parser-map-tag-print.rs
@@ -69,6 +69,7 @@ fn main() {
Tag::Subscript => println!("Subscript (this is a span tag)"),
Tag::Strong => println!("Strong (this is a span tag)"),
Tag::Strikethrough => println!("Strikethrough (this is a span tag)"),
+ Tag::Highlight => println!("Highlight (this is a span tag)"),
Tag::BlockQuote(kind) => println!("BlockQuote ({:?})", kind),
Tag::CodeBlock(code_block_kind) => {
println!("CodeBlock code_block_kind: {:?}", code_block_kind)
diff --git a/pulldown-cmark/specs/highlight.txt b/pulldown-cmark/specs/highlight.txt
new file mode 100644
index 00000000..1712243d
--- /dev/null
+++ b/pulldown-cmark/specs/highlight.txt
@@ -0,0 +1,166 @@
+Highlighted text uses `==` delimiters, mirroring the markdown-it / pandoc
+extension. The pairing rules mirror GFM's `~~` strikethrough.
+
+# Basic
+
+```````````````````````````````` example
+==hi==
+.
+hi
+````````````````````````````````
+
+```````````````````````````````` example
+==hello world==
+.
+hello world
+````````````````````````````````
+
+# Nesting with emphasis
+
+```````````````````````````````` example
+==*hi*==
+.
+hi
+````````````````````````````````
+
+```````````````````````````````` example
+*==hi==*
+.
+hi
+````````````````````````````````
+
+```````````````````````````````` example
+==**bold** and *em*==
+.
+bold and em
+````````````````````````````````
+
+# Single `=` is literal
+
+```````````````````````````````` example
+=hi=
+.
+=hi=
+````````````````````````````````
+
+```````````````````````````````` example
+a = b
+.
+a = b
+````````````````````````````````
+
+# Whitespace adjacent to inner edges fails flanking
+
+```````````````````````````````` example
+== hi ==
+.
+== hi ==
+````````````````````````````````
+
+```````````````````````````````` example
+==hi ==
+.
+==hi ==
+````````````````````````````````
+
+```````````````````````````````` example
+== hi==
+.
+== hi==
+````````````````````````````````
+
+# Triple and quadruple runs do not pair
+
+```````````````````````````````` example
+===hi===
+.
+===hi===
+````````````````````````````````
+
+```````````````````````````````` example
+====hi====
+.
+====hi====
+````````````````````````````````
+
+```````````````````````````````` example
+====
+.
+====
+````````````````````````````````
+
+# Intraword highlight (mirrors `~~`)
+
+```````````````````````````````` example
+a==b==c
+.
+abc
+````````````````````````````````
+
+```````````````````````````````` example
+==This==is==highlighted==
+.
+Thisishighlighted
+````````````````````````````````
+
+# Across a soft line break
+
+```````````````````````````````` example
+==a
+b==
+.
+a
+b
+````````````````````````````````
+
+# Backslash escapes
+
+```````````````````````````````` example
+==hi \== there==
+.
+hi == there
+````````````````````````````````
+
+```````````````````````````````` example
+\==not highlighted==
+.
+==not highlighted==
+````````````````````````````````
+
+# Inside other block contexts
+
+```````````````````````````````` example
+- ==in a list==
+.
+
+- in a list
+
+````````````````````````````````
+
+```````````````````````````````` example
+> ==in a quote==
+.
+
+in a quote
+
+````````````````````````````````
+
+```````````````````````````````` example
+# ==in a heading==
+.
+in a heading
+````````````````````````````````
+
+# Combined with strikethrough
+
+```````````````````````````````` example
+==~~both~~==
+.
+both
+````````````````````````````````
+
+```````````````````````````````` example
+~~==both==~~
+.
+both
+````````````````````````````````
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index da925c7d..03cb3bef 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -1032,7 +1032,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
LoopInstruction::ContinueAndSkip(1)
}
}
- c @ b'*' | c @ b'_' | c @ b'~' | c @ b'^' => {
+ c @ b'*' | c @ b'_' | c @ b'~' | c @ b'^' | c @ b'=' => {
let string_suffix = &self.text[ix..];
let count = 1 + scan_ch_repeat(&string_suffix.as_bytes()[1..], c);
let can_open = delim_run_can_open(
@@ -1051,7 +1051,11 @@ impl<'a, 'b> FirstPass<'a, 'b> {
mode,
self.options,
);
- let is_valid_seq = (c != b'~' || count <= 2) || (c == b'~' && count == 2);
+ let is_valid_seq = match c {
+ b'~' => count <= 2,
+ b'=' => count == 2,
+ _ => true,
+ };
if (can_open || can_close) && is_valid_seq {
self.tree.append_text(begin_text, ix, backslash_escaped);
@@ -2428,6 +2432,9 @@ fn delim_run_can_open(
if delim == b'~' && run_len > 1 {
return true;
}
+ if delim == b'=' && run_len == 2 {
+ return true;
+ }
let prev_char = s[..ix].chars().last().unwrap();
if delim == b'~'
&& (prev_char == '~' || options.contains(Options::ENABLE_SUBSCRIPT))
@@ -2473,7 +2480,11 @@ fn delim_run_can_close(
}
let delim = suffix.bytes().next().unwrap();
// `*`, `~~`, and `^` can be intraword, `~` can only be interword if it's subscript, `_` cannot
- if (delim == b'*' || (delim == b'~' && run_len > 1)) && !is_punctuation(prev_char) {
+ if (delim == b'*'
+ || (delim == b'~' && run_len > 1)
+ || (delim == b'=' && run_len == 2))
+ && !is_punctuation(prev_char)
+ {
return true;
}
if delim == b'^' && !is_punctuation(prev_char) {
@@ -2520,6 +2531,9 @@ fn special_bytes(options: &Options) -> [bool; 256] {
if options.contains(Options::ENABLE_SUPERSCRIPT) {
bytes[b'^' as usize] = true;
}
+ if options.contains(Options::ENABLE_HIGHLIGHT) {
+ bytes[b'=' as usize] = true;
+ }
if options.contains(Options::ENABLE_MATH) {
bytes[b'$' as usize] = true;
bytes[b'{' as usize] = true;
@@ -2551,8 +2565,13 @@ struct LookupTable {
type LookupTable = [bool; 256];
/// This function walks the byte slices from the given index and
-/// calls the callback function on all bytes (and their indices) that are in the following set:
-/// `` ` ``, `\`, `&`, `*`, `_`, `~`, `!`, `<`, `[`, `]`, `|`, `\r`, `\n`
+/// calls the callback function on all bytes (and their indices) that are in the
+/// special-bytes set defined by [`special_bytes`]/[`simd::compute_lookup`].
+/// The always-included bytes are
+/// `` ` ``, `\`, `&`, `*`, `_`, `!`, `<`, `[`, `]`, `\r`, `\n`; additional bytes
+/// are added when their corresponding option is enabled (e.g. `|` with tables,
+/// `~` with strikethrough/subscript, `^` with superscript, `=` with highlight,
+/// `$`/`{`/`}` with math, and `.`/`-`/`"`/`'` with smart punctuation).
/// It is guaranteed not call the callback on other bytes.
/// Whenever `callback(ix, byte)` returns a `ContinueAndSkip(n)` value, the callback
/// will not be called with an index that is less than `ix + n + 1`.
@@ -2766,6 +2785,9 @@ mod simd {
if options.contains(Options::ENABLE_SUPERSCRIPT) {
add_lookup_byte(&mut lookup, b'^');
}
+ if options.contains(Options::ENABLE_HIGHLIGHT) {
+ add_lookup_byte(&mut lookup, b'=');
+ }
if options.contains(Options::ENABLE_MATH) {
add_lookup_byte(&mut lookup, b'$');
add_lookup_byte(&mut lookup, b'{');
diff --git a/pulldown-cmark/src/html.rs b/pulldown-cmark/src/html.rs
index 9355bb8b..6960f0b4 100644
--- a/pulldown-cmark/src/html.rs
+++ b/pulldown-cmark/src/html.rs
@@ -355,6 +355,7 @@ where
Tag::Emphasis => self.write(""),
Tag::Strong => self.write(""),
Tag::Strikethrough => self.write(""),
+ Tag::Highlight => self.write(""),
Tag::Link {
link_type: LinkType::Email,
dest_url,
@@ -496,6 +497,9 @@ where
TagEnd::Strikethrough => {
self.write("")?;
}
+ TagEnd::Highlight => {
+ self.write("")?;
+ }
TagEnd::Link => {
self.write("")?;
}
diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs
index 01ffd1d7..ac52e25d 100644
--- a/pulldown-cmark/src/lib.rs
+++ b/pulldown-cmark/src/lib.rs
@@ -278,6 +278,12 @@ pub enum Tag<'a> {
/// ~strike through~
/// ```
Strikethrough,
+ /// Only parsed and emitted with [`Options::ENABLE_HIGHLIGHT`].
+ ///
+ /// ```markdown
+ /// ==highlighted==
+ /// ```
+ Highlight,
/// Only parsed and emitted with [`Options::ENABLE_SUPERSCRIPT`].
///
/// ```markdown
@@ -336,6 +342,7 @@ impl<'a> Tag<'a> {
Tag::Emphasis => TagEnd::Emphasis,
Tag::Strong => TagEnd::Strong,
Tag::Strikethrough => TagEnd::Strikethrough,
+ Tag::Highlight => TagEnd::Highlight,
Tag::Link { .. } => TagEnd::Link,
Tag::Image { .. } => TagEnd::Image,
Tag::MetadataBlock(kind) => TagEnd::MetadataBlock(*kind),
@@ -376,6 +383,7 @@ impl<'a> Tag<'a> {
Tag::Emphasis => Tag::Emphasis,
Tag::Strong => Tag::Strong,
Tag::Strikethrough => Tag::Strikethrough,
+ Tag::Highlight => Tag::Highlight,
Tag::Superscript => Tag::Superscript,
Tag::Subscript => Tag::Subscript,
Tag::Link {
@@ -438,6 +446,7 @@ pub enum TagEnd {
Emphasis,
Strong,
Strikethrough,
+ Highlight,
Superscript,
Subscript,
@@ -768,6 +777,10 @@ bitflags::bitflags! {
const ENABLE_WIKILINKS = 1 << 15;
/// Colon-delimited Container Extension Blocks.
const ENABLE_CONTAINER_EXTENSIONS = 1 << 16;
+ /// Allow highlighting text via `==highlight==` syntax, rendered as
+ /// `highlight`. Originates from markdown-it / pandoc; not part
+ /// of CommonMark or GFM.
+ const ENABLE_HIGHLIGHT = 1 << 17;
}
}
diff --git a/pulldown-cmark/src/main.rs b/pulldown-cmark/src/main.rs
index 5eb2557f..55743d81 100644
--- a/pulldown-cmark/src/main.rs
+++ b/pulldown-cmark/src/main.rs
@@ -114,6 +114,7 @@ pub fn main() -> std::io::Result<()> {
"enable-container-extensions",
"enable container extensions",
);
+ opts.optflag("", "enable-highlight", "enable highlight");
let matches = match opts.parse(&args[1..]) {
Ok(m) => m,
@@ -173,6 +174,9 @@ pub fn main() -> std::io::Result<()> {
if matches.opt_present("enable-container-extensions") {
opts.insert(Options::ENABLE_CONTAINER_EXTENSIONS);
}
+ if matches.opt_present("enable-highlight") {
+ opts.insert(Options::ENABLE_HIGHLIGHT);
+ }
let mut input = String::new();
let mut broken_links = vec![];
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 2e9f0458..8dc4f7d9 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -79,6 +79,7 @@ pub(crate) enum ItemBody {
Emphasis,
Strong,
Strikethrough,
+ Highlight,
Superscript,
Subscript,
Math(CowIndex, bool), // true for display math
@@ -165,6 +166,7 @@ impl ItemBody {
| Emphasis
| Strong
| Strikethrough
+ | Highlight
| Math(..)
| Code(..)
| Link(..)
@@ -1070,6 +1072,16 @@ impl<'input> ParserInner<'input> {
backslash_escaped: false,
}
}
+ } else if c == b'=' {
+ if inc == 2
+ && self.options.contains(Options::ENABLE_HIGHLIGHT)
+ {
+ ItemBody::Highlight
+ } else {
+ ItemBody::Text {
+ backslash_escaped: false,
+ }
+ }
} else if inc == 2 {
ItemBody::Strong
} else {
@@ -1596,7 +1608,7 @@ struct InlineStack {
// a strikethrough delimiter will never match with any element
// in the stack with index smaller than
// `lower_bounds[InlineStack::TILDES]`.
- lower_bounds: [usize; 10],
+ lower_bounds: [usize; 11],
}
impl InlineStack {
@@ -1609,6 +1621,7 @@ impl InlineStack {
const TILDES: usize = 5;
const UNDERSCORE_BASE: usize = 6;
const CIRCUMFLEXES: usize = 9;
+ const EQUALS: usize = 10;
fn pop_all(&mut self, tree: &mut Tree- ) {
for el in self.stack.drain(..) {
@@ -1618,7 +1631,7 @@ impl InlineStack {
};
}
}
- self.lower_bounds = [0; 10];
+ self.lower_bounds = [0; 11];
}
fn get_lowerbound(&self, c: u8, count: usize, both: bool) -> usize {
@@ -1644,6 +1657,8 @@ impl InlineStack {
}
} else if c == b'^' {
self.lower_bounds[InlineStack::CIRCUMFLEXES]
+ } else if c == b'=' {
+ self.lower_bounds[InlineStack::EQUALS]
} else {
self.lower_bounds[InlineStack::TILDES]
}
@@ -1663,6 +1678,8 @@ impl InlineStack {
}
} else if c == b'^' {
self.lower_bounds[InlineStack::CIRCUMFLEXES] = new_bound;
+ } else if c == b'=' {
+ self.lower_bounds[InlineStack::EQUALS] = new_bound;
} else {
self.lower_bounds[InlineStack::TILDES] = new_bound;
}
@@ -1690,7 +1707,7 @@ impl InlineStack {
.cloned()
.enumerate()
.rfind(|(_, el)| {
- if (c == b'~' || c == b'^') && run_length != el.run_length {
+ if (c == b'~' || c == b'^' || c == b'=') && run_length != el.run_length {
return false;
}
el.c == c
@@ -1725,6 +1742,8 @@ impl InlineStack {
self.trim_lower_bound(InlineStack::TILDES);
} else if el.c == b'^' {
self.trim_lower_bound(InlineStack::CIRCUMFLEXES);
+ } else if el.c == b'=' {
+ self.trim_lower_bound(InlineStack::EQUALS);
}
self.stack.push(el)
}
@@ -2313,6 +2332,7 @@ fn body_to_tag_end(body: &ItemBody) -> TagEnd {
ItemBody::Subscript => TagEnd::Subscript,
ItemBody::Strong => TagEnd::Strong,
ItemBody::Strikethrough => TagEnd::Strikethrough,
+ ItemBody::Highlight => TagEnd::Highlight,
ItemBody::Link(..) => TagEnd::Link,
ItemBody::Image(..) => TagEnd::Image,
ItemBody::Heading(level, _) => TagEnd::Heading(level),
@@ -2361,6 +2381,7 @@ fn item_to_event<'a>(item: Item, text: &'a str, allocs: &mut Allocations<'a>) ->
ItemBody::Subscript => Tag::Subscript,
ItemBody::Strong => Tag::Strong,
ItemBody::Strikethrough => Tag::Strikethrough,
+ ItemBody::Highlight => Tag::Highlight,
ItemBody::Link(link_ix) => {
let (link_type, dest_url, title, id) = allocs.take_link(link_ix);
Tag::Link {
diff --git a/pulldown-cmark/tests/lib.rs b/pulldown-cmark/tests/lib.rs
index 28db823b..ca89cd6e 100644
--- a/pulldown-cmark/tests/lib.rs
+++ b/pulldown-cmark/tests/lib.rs
@@ -23,6 +23,7 @@ pub fn test_markdown_html(
opts.insert(Options::ENABLE_MATH);
opts.insert(Options::ENABLE_TABLES);
opts.insert(Options::ENABLE_STRIKETHROUGH);
+ opts.insert(Options::ENABLE_HIGHLIGHT);
opts.insert(Options::ENABLE_SUPERSCRIPT);
if wikilinks {
opts.insert(Options::ENABLE_WIKILINKS);
diff --git a/pulldown-cmark/tests/suite/highlight.rs b/pulldown-cmark/tests/suite/highlight.rs
new file mode 100644
index 00000000..33c49afa
--- /dev/null
+++ b/pulldown-cmark/tests/suite/highlight.rs
@@ -0,0 +1,240 @@
+// This file is auto-generated by the build script
+// Please, do not modify it manually
+
+use super::test_markdown_html;
+
+#[test]
+fn highlight_test_1() {
+ let original = r##"==hi==
+"##;
+ let expected = r##"
hi
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_2() {
+ let original = r##"==hello world==
+"##;
+ let expected = r##"hello world
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_3() {
+ let original = r##"==*hi*==
+"##;
+ let expected = r##"hi
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_4() {
+ let original = r##"*==hi==*
+"##;
+ let expected = r##"hi
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_5() {
+ let original = r##"==**bold** and *em*==
+"##;
+ let expected = r##"bold and em
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_6() {
+ let original = r##"=hi=
+"##;
+ let expected = r##"=hi=
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_7() {
+ let original = r##"a = b
+"##;
+ let expected = r##"a = b
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_8() {
+ let original = r##"== hi ==
+"##;
+ let expected = r##"== hi ==
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_9() {
+ let original = r##"==hi ==
+"##;
+ let expected = r##"==hi ==
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_10() {
+ let original = r##"== hi==
+"##;
+ let expected = r##"== hi==
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_11() {
+ let original = r##"===hi===
+"##;
+ let expected = r##"===hi===
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_12() {
+ let original = r##"====hi====
+"##;
+ let expected = r##"====hi====
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_13() {
+ let original = r##"====
+"##;
+ let expected = r##"====
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_14() {
+ let original = r##"a==b==c
+"##;
+ let expected = r##"abc
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_15() {
+ let original = r##"==This==is==highlighted==
+"##;
+ let expected = r##"Thisishighlighted
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_16() {
+ let original = r##"==a
+b==
+"##;
+ let expected = r##"a
+b
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_17() {
+ let original = r##"==hi \== there==
+"##;
+ let expected = r##"hi == there
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_18() {
+ let original = r##"\==not highlighted==
+"##;
+ let expected = r##"==not highlighted==
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_19() {
+ let original = r##"- ==in a list==
+"##;
+ let expected = r##"
+- in a list
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_20() {
+ let original = r##"> ==in a quote==
+"##;
+ let expected = r##"
+in a quote
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_21() {
+ let original = r##"# ==in a heading==
+"##;
+ let expected = r##"in a heading
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_22() {
+ let original = r##"==~~both~~==
+"##;
+ let expected = r##"both
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn highlight_test_23() {
+ let original = r##"~~==both==~~
+"##;
+ let expected = r##"both
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
diff --git a/pulldown-cmark/tests/suite/mod.rs b/pulldown-cmark/tests/suite/mod.rs
index b6f01c44..811fdbf7 100644
--- a/pulldown-cmark/tests/suite/mod.rs
+++ b/pulldown-cmark/tests/suite/mod.rs
@@ -11,6 +11,7 @@ mod gfm_strikethrough;
mod gfm_table;
mod gfm_tasklist;
mod heading_attrs;
+mod highlight;
mod math;
mod metadata_blocks;
mod old_footnotes;
From 8e9ee3715da3bdebba312441eb14322a901ef05b Mon Sep 17 00:00:00 2001
From: David Tran
Date: Thu, 7 May 2026 15:43:44 -0700
Subject: [PATCH 168/180] Recognize lone CR as a line ending in scan_nextline
---
pulldown-cmark/src/scanners.rs | 9 +++++++--
pulldown-cmark/tests/html.rs | 12 ++++++++++++
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index d83c7299..8e3c3914 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -23,7 +23,7 @@
use alloc::{string::String, vec::Vec};
use core::char;
-use memchr::memchr;
+use memchr::{memchr, memchr2};
pub(crate) use crate::puncttable::{is_ascii_punctuation, is_punctuation};
use crate::{
@@ -527,7 +527,12 @@ pub(crate) fn scan_blank_line(bytes: &[u8]) -> Option {
}
pub(crate) fn scan_nextline(bytes: &[u8]) -> usize {
- memchr(b'\n', bytes).map_or(bytes.len(), |x| x + 1)
+ // Per CommonMark, a line ending is LF, CRLF, or a lone CR.
+ match memchr2(b'\n', b'\r', bytes) {
+ Some(x) if bytes[x] == b'\r' && bytes.get(x + 1) == Some(&b'\n') => x + 2,
+ Some(x) => x + 1,
+ None => bytes.len(),
+ }
}
// return: end byte for closing code fence, or None
diff --git a/pulldown-cmark/tests/html.rs b/pulldown-cmark/tests/html.rs
index b453d76d..302f1857 100644
--- a/pulldown-cmark/tests/html.rs
+++ b/pulldown-cmark/tests/html.rs
@@ -356,3 +356,15 @@ fn issue_819() {
assert_eq!(expected, s.trim_end_matches('\n'));
}
}
+
+// Can't easily use regression.txt due to newline normalization.
+#[test]
+fn issue_1056() {
+ let original = "```\rcode\rblock\r\n```\n";
+ let expected = "code\rblock\n
\n";
+
+ let mut s = String::new();
+ html::push_html(&mut s, Parser::new(original));
+
+ assert_eq!(expected, s);
+}
From 11aa4b3e1ef2c411320a837f493edf845de27b3d Mon Sep 17 00:00:00 2001
From: el-pendeloco
Date: Sat, 9 May 2026 07:33:32 -0400
Subject: [PATCH 169/180] fix: update the lifetime of returned RefDefs to match
the input
- The previous version erroneously ties the *contents* of the RefDefs
to the lifetime of the parser/iterator.
---
pulldown-cmark/src/parse.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 2e9f0458..ccef815d 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -321,7 +321,7 @@ impl<'input, CB: ParserCallbacks<'input>> Parser<'input, CB> {
/// Returns a reference to the internal `RefDefs` object, which provides access
/// to the internal map of reference definitions.
- pub fn reference_definitions(&self) -> &RefDefs<'_> {
+ pub fn reference_definitions(&self) -> &RefDefs<'input> {
&self.inner.allocs.refdefs
}
@@ -2230,7 +2230,7 @@ pub struct OffsetIter<'a, CB> {
impl<'a, CB: ParserCallbacks<'a>> OffsetIter<'a, CB> {
/// Returns a reference to the internal reference definition tracker.
- pub fn reference_definitions(&self) -> &RefDefs<'_> {
+ pub fn reference_definitions(&self) -> &RefDefs<'a> {
self.parser.reference_definitions()
}
}
From 78f78343641f66bdbf5c3b9121ed6a9d7317b57f Mon Sep 17 00:00:00 2001
From: el-pendeloco
Date: Tue, 12 May 2026 06:53:09 -0400
Subject: [PATCH 170/180] export LinkDef struct
- The RefDef struct is exposed, but not its value type (LinkDef).
This prevent user code from storing the link definitions in a different
data struct or use it in function arguments, for example (without
using unsafe).
---
pulldown-cmark/src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulldown-cmark/src/lib.rs b/pulldown-cmark/src/lib.rs
index 01ffd1d7..83a74805 100644
--- a/pulldown-cmark/src/lib.rs
+++ b/pulldown-cmark/src/lib.rs
@@ -114,7 +114,7 @@ use core::fmt::Display;
pub use crate::{
parse::{
- BrokenLink, BrokenLinkCallback, DefaultParserCallbacks, OffsetIter, Parser,
+ BrokenLink, BrokenLinkCallback, DefaultParserCallbacks, LinkDef, OffsetIter, Parser,
ParserCallbacks, RefDefs,
},
strings::{CowStr, InlineStr},
From 7982eea0aa4bb2fd0d2398edd5e0041700721b20 Mon Sep 17 00:00:00 2001
From: Michael Howell
Date: Fri, 15 May 2026 21:35:17 -0700
Subject: [PATCH 171/180] Avoid skipping backslash-escaped link ref
---
pulldown-cmark/specs/regression.txt | 18 ++++++++++++++++++
pulldown-cmark/src/parse.rs | 16 ++++++++--------
pulldown-cmark/tests/suite/regression.rs | 24 ++++++++++++++++++++++++
3 files changed, 50 insertions(+), 8 deletions(-)
diff --git a/pulldown-cmark/specs/regression.txt b/pulldown-cmark/specs/regression.txt
index 855ab646..33e70340 100644
--- a/pulldown-cmark/specs/regression.txt
+++ b/pulldown-cmark/specs/regression.txt
@@ -2836,3 +2836,21 @@ Link refdef split from paragraph with line with spaces.
.
:
````````````````````````````````
+
+
+
+```````````````````````````````` example
+[link]\[id]
+
+[id]: https://en.wikipedia.org
+.
+[link][id]
+````````````````````````````````
+
+```````````````````````````````` example
+[id]\[]
+
+[id]: https://en.wikipedia.org
+.
+id[]
+````````````````````````````````
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 2e9f0458..7fdc0e54 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -744,7 +744,7 @@ impl<'input> ParserInner<'input> {
// ok, so its not an inline link. maybe it is a reference
// to a defined link?
let scan_result =
- scan_reference(&self.tree, block_text, next, self.options);
+ scan_reference(&self.tree, block_text, cur_ix, self.options);
let (node_after_link, link_type) = match scan_result {
// [label][reference]
RefScan::LinkLabel(_, end_ix) => {
@@ -1792,19 +1792,19 @@ fn scan_link_label<'text>(
fn scan_reference<'b>(
tree: &Tree- ,
text: &'b str,
- cur: Option
,
+ cur_ix: TreeIndex,
options: Options,
) -> RefScan<'b> {
- let cur_ix = match cur {
- None => return RefScan::Failed,
- Some(cur_ix) => cur_ix,
- };
- let start = tree[cur_ix].item.start;
+ let start = tree[cur_ix].item.end;
let tail = &text.as_bytes()[start..];
if tail.starts_with(b"[]") {
+ let next_ix = match tree[cur_ix].next {
+ Some(next_ix) if tree[next_ix].item.start == tree[cur_ix].item.end => next_ix,
+ _ => return RefScan::Failed,
+ };
// TODO: this unwrap is sus and should be looked at closer
- let closing_node = tree[cur_ix].next.unwrap();
+ let closing_node = tree[next_ix].next.unwrap();
RefScan::Collapsed(tree[closing_node].next)
} else {
let label = scan_link_label(tree, &text[start..], options);
diff --git a/pulldown-cmark/tests/suite/regression.rs b/pulldown-cmark/tests/suite/regression.rs
index 5a3422ac..b0ffce2a 100644
--- a/pulldown-cmark/tests/suite/regression.rs
+++ b/pulldown-cmark/tests/suite/regression.rs
@@ -3379,3 +3379,27 @@ fn regression_test_211() {
test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
+
+#[test]
+fn regression_test_212() {
+ let original = r##"[link]\[id]
+
+[id]: https://en.wikipedia.org
+"##;
+ let expected = r##"[link][id]
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn regression_test_213() {
+ let original = r##"[id]\[]
+
+[id]: https://en.wikipedia.org
+"##;
+ let expected = r##"id[]
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
From 3d67feabb529c468e84c0170fdbf3fb3d567874a Mon Sep 17 00:00:00 2001
From: Michael Howell
Date: Thu, 21 May 2026 08:44:53 -0700
Subject: [PATCH 172/180] math: do not allow closer followed by digit
Same change as https://github.com/jgm/commonmark-hs/pull/168
With this change, closing `$` cannot be followed by a decimal digit.
For example, `$1$` is fine, but `$1$2` is not.
The rule added here is supposed to be the same as Pandoc's Markdown or
with Comrak, and it shouldn't hurt any important cases.
---
pulldown-cmark/specs/math.txt | 25 +++++++++++
pulldown-cmark/src/firstpass.rs | 3 +-
pulldown-cmark/src/scanners.rs | 4 ++
pulldown-cmark/tests/suite/math.rs | 69 ++++++++++++++++++++----------
4 files changed, 78 insertions(+), 23 deletions(-)
diff --git a/pulldown-cmark/specs/math.txt b/pulldown-cmark/specs/math.txt
index b16453b8..b908127c 100644
--- a/pulldown-cmark/specs/math.txt
+++ b/pulldown-cmark/specs/math.txt
@@ -399,6 +399,31 @@ $}$] $$
$}$] $$
````````````````````````````````
+The inline math closer cannot be immediately followed by a digit.
+The opener can be, though.
+Display math isn't subject to this rule.
+
+```````````````````````````````` example
+$1$2$3
+
+$1$2$3$
+
+$1{$2$}3$
+
+$$1$$2$$3
+
+$$1$$2$$3$$
+
+$$1{$$2$$}3$$
+.
+$1$2$3
+$1$23
+1{$2$}3
+12$$3
+123
+1{$$2$$}3
+````````````````````````````````
+
## Edge case tests comparison with GitHub
Test cases
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index da925c7d..aba872df 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -1077,7 +1077,8 @@ impl<'a, 'b> FirstPass<'a, 'b> {
&& !bytes[..ix]
.last()
.copied()
- .map_or(true, is_ascii_whitespace);
+ .map_or(true, is_ascii_whitespace)
+ && !bytes.get(ix + 1).copied().map_or(false, is_ascii_numeric);
// 0xFFFF_FFFF... represents the root brace context. Using None would require
// storing Option, which is bigger than u8.
diff --git a/pulldown-cmark/src/scanners.rs b/pulldown-cmark/src/scanners.rs
index d83c7299..65a77631 100644
--- a/pulldown-cmark/src/scanners.rs
+++ b/pulldown-cmark/src/scanners.rs
@@ -449,6 +449,10 @@ pub(crate) fn is_ascii_alphanumeric(c: u8) -> bool {
matches!(c, b'0'..=b'9' | b'a'..=b'z' | b'A'..=b'Z')
}
+pub(crate) fn is_ascii_numeric(c: u8) -> bool {
+ matches!(c, b'0'..=b'9')
+}
+
fn is_ascii_letterdigitdash(c: u8) -> bool {
c == b'-' || is_ascii_alphanumeric(c)
}
diff --git a/pulldown-cmark/tests/suite/math.rs b/pulldown-cmark/tests/suite/math.rs
index c774c58b..8aa5bedf 100644
--- a/pulldown-cmark/tests/suite/math.rs
+++ b/pulldown-cmark/tests/suite/math.rs
@@ -439,6 +439,31 @@ $}$] $$
#[test]
fn math_test_25() {
+ let original = r##"$1$2$3
+
+$1$2$3$
+
+$1{$2$}3$
+
+$$1$$2$$3
+
+$$1$$2$$3$$
+
+$$1{$$2$$}3$$
+"##;
+ let expected = r##"$1$2$3
+$1$23
+1{$2$}3
+12$$3
+123
+1{$$2$$}3
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
+
+#[test]
+fn math_test_26() {
let original = r##"$x$ $`y`$
"##;
let expected = r##"x `y`
@@ -448,7 +473,7 @@ fn math_test_25() {
}
#[test]
-fn math_test_26() {
+fn math_test_27() {
let original = r##"- $a$
```math
@@ -490,7 +515,7 @@ b
}
#[test]
-fn math_test_27() {
+fn math_test_28() {
let original = r##"- 
- $x$
"##;
@@ -504,7 +529,7 @@ fn math_test_27() {
}
#[test]
-fn math_test_28() {
+fn math_test_29() {
let original = r##"
$A = 5$
@@ -527,7 +552,7 @@ A = 5
}
#[test]
-fn math_test_29() {
+fn math_test_30() {
let original = r##"$a
@@ -567,7 +592,7 @@ fn math_test_31() {
}
#[test]
-fn math_test_32() {
+fn math_test_33() {
let original = r##"a$x$
-$x$
@@ -583,7 +608,7 @@ fn math_test_32() {
}
#[test]
-fn math_test_33() {
+fn math_test_34() {
let original = r##"_$a$ equals $b$_
_$a$ equals $b$_
@@ -599,7 +624,7 @@ _$a$ equals $b$_
}
#[test]
-fn math_test_34() {
+fn math_test_35() {
let original = r##"$$
a
$$
@@ -622,7 +647,7 @@ a
}
#[test]
-fn math_test_35() {
+fn math_test_36() {
let original = r##"$\{a\,b\}$
"##;
let expected = r##"\{a\,b\}
@@ -632,7 +657,7 @@ fn math_test_35() {
}
#[test]
-fn math_test_36() {
+fn math_test_37() {
let original = r##"$a c$
$[(a+b)c](d+e)$
@@ -648,7 +673,7 @@ ${a}_b c_{d}$
}
#[test]
-fn math_test_37() {
+fn math_test_38() {
let original = r##"When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
"##;
@@ -660,7 +685,7 @@ $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
}
#[test]
-fn math_test_38() {
+fn math_test_39() {
let original = r##"$x = \$$
"##;
let expected = r##"x = \$
@@ -670,7 +695,7 @@ fn math_test_38() {
}
#[test]
-fn math_test_39() {
+fn math_test_40() {
let original = r##"_Equation $\Omega(69)$ in italic text_
"##;
let expected = r##"Equation \Omega(69) in italic text
@@ -680,7 +705,7 @@ fn math_test_39() {
}
#[test]
-fn math_test_40() {
+fn math_test_41() {
let original = r##"$\pi$
'$\pi$
"$\pi$
@@ -704,7 +729,7 @@ fn math_test_40() {
}
#[test]
-fn math_test_41() {
+fn math_test_42() {
let original = r##"| first $|$ second |
|--------|---------|
| a ${ | }$ b |
@@ -720,7 +745,7 @@ fn math_test_41() {
}
#[test]
-fn math_test_42() {
+fn math_test_43() {
let original = r##"| first $\|$ second |
|-------------------|
| a ${ \| }$ b |
@@ -736,7 +761,7 @@ fn math_test_42() {
}
#[test]
-fn math_test_43() {
+fn math_test_44() {
let original = r##"| Description | Test case |
|-------------|-----------|
| Single | $\$ |
@@ -774,7 +799,7 @@ fn math_test_43() {
}
#[test]
-fn math_test_44() {
+fn math_test_45() {
let original = r##"This is not an inline math environment: $}{$
But, because it's nested too deeply, this is parsed as an inline math environment:
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
@@ -794,7 +819,7 @@ But this still isn't, because the braces are still counted: $}{$
}
#[test]
-fn math_test_45() {
+fn math_test_46() {
let original = r##"This is also deeply nested, but, unlike the first example,
they don't have an equal number of close braces and open braces,
so aren't detected as math.
@@ -823,7 +848,7 @@ another improperly nested example
}
#[test]
-fn math_test_46() {
+fn math_test_47() {
let original = r##"${}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{} 20 brace pairs
{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{} 40 brace pairs
{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{} 60 brace pairs
@@ -857,7 +882,7 @@ fn math_test_46() {
}
#[test]
-fn math_test_47() {
+fn math_test_48() {
let original = r##"${{{{{{{{{{{{{{{{{{{{ 20 open braces
{{{{{{{{{{{{{{{{{{{{ 40 open braces
{{{{{{{{{{{{{{{{{{{{ 60 open braces
From b52c787ba916f47e9f9ba0701fb195e9a7a949aa Mon Sep 17 00:00:00 2001
From: gorgonian <10594600+gorgonian@users.noreply.github.com>
Date: Fri, 22 May 2026 11:55:30 -0700
Subject: [PATCH 173/180] fix(formatting): run cargo fmt
---
pulldown-cmark/src/firstpass.rs | 4 +---
pulldown-cmark/src/parse.rs | 3 +--
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/pulldown-cmark/src/firstpass.rs b/pulldown-cmark/src/firstpass.rs
index 03cb3bef..5e9cf0d1 100644
--- a/pulldown-cmark/src/firstpass.rs
+++ b/pulldown-cmark/src/firstpass.rs
@@ -2480,9 +2480,7 @@ fn delim_run_can_close(
}
let delim = suffix.bytes().next().unwrap();
// `*`, `~~`, and `^` can be intraword, `~` can only be interword if it's subscript, `_` cannot
- if (delim == b'*'
- || (delim == b'~' && run_len > 1)
- || (delim == b'=' && run_len == 2))
+ if (delim == b'*' || (delim == b'~' && run_len > 1) || (delim == b'=' && run_len == 2))
&& !is_punctuation(prev_char)
{
return true;
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 8dc4f7d9..91df2d2e 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -1073,8 +1073,7 @@ impl<'input> ParserInner<'input> {
}
}
} else if c == b'=' {
- if inc == 2
- && self.options.contains(Options::ENABLE_HIGHLIGHT)
+ if inc == 2 && self.options.contains(Options::ENABLE_HIGHLIGHT)
{
ItemBody::Highlight
} else {
From 6aa902d06d3cd88709a814e71f81c359f3d9d9df Mon Sep 17 00:00:00 2001
From: Michael Howell
Date: Sun, 24 May 2026 14:47:16 -0700
Subject: [PATCH 174/180] Require separation between title quotes and URL
---
pulldown-cmark/specs/regression.txt | 25 ++++++++++++++++++++++++
pulldown-cmark/src/parse.rs | 7 ++++++-
pulldown-cmark/tests/suite/regression.rs | 25 ++++++++++++++++++++++++
3 files changed, 56 insertions(+), 1 deletion(-)
diff --git a/pulldown-cmark/specs/regression.txt b/pulldown-cmark/specs/regression.txt
index 855ab646..5d397e1d 100644
--- a/pulldown-cmark/specs/regression.txt
+++ b/pulldown-cmark/specs/regression.txt
@@ -2836,3 +2836,28 @@ Link refdef split from paragraph with line with spaces.
.
:
````````````````````````````````
+
+https://github.com/pulldown-cmark/pulldown-cmark/issues/1099
+
+Link must be separated from title by at least one space
+
+```````````````````````````````` example
+[a](https://example.com"test")
+[a]("test")
+[a](https://example.com(test))
+[a]((test))
+
+[a](https://example.com "test")
+[a]( "test")
+[a](https://example.com (test))
+[a]( (test))
+.
+a
+[a](https://example.com"test")
+a
+[a](https://example.com(test))
+
+````````````````````````````````
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 2e9f0458..9b672c0a 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -1189,6 +1189,7 @@ impl<'input> ParserInner<'input> {
ix += 1;
let scan_separator = |ix: &mut usize| {
+ let start = *ix;
*ix += scan_while(&underlying.as_bytes()[*ix..], is_ascii_whitespace_no_nl);
if let Some(bl) = scan_eol(&underlying.as_bytes()[*ix..]) {
*ix += bl;
@@ -1199,6 +1200,7 @@ impl<'input> ParserInner<'input> {
);
}
*ix += scan_while(&underlying.as_bytes()[*ix..], is_ascii_whitespace_no_nl);
+ *ix - start
};
scan_separator(&mut ix);
@@ -1207,9 +1209,12 @@ impl<'input> ParserInner<'input> {
let dest = unescape(dest, self.tree.is_in_table());
ix += dest_length;
- scan_separator(&mut ix);
+ let title_sep = scan_separator(&mut ix);
let title = if let Some((bytes_scanned, t)) = self.scan_link_title(underlying, ix, node) {
+ if title_sep == 0 {
+ return None;
+ }
ix += bytes_scanned;
scan_separator(&mut ix);
t
diff --git a/pulldown-cmark/tests/suite/regression.rs b/pulldown-cmark/tests/suite/regression.rs
index 5a3422ac..a91b9eac 100644
--- a/pulldown-cmark/tests/suite/regression.rs
+++ b/pulldown-cmark/tests/suite/regression.rs
@@ -3379,3 +3379,28 @@ fn regression_test_211() {
test_markdown_html(original, expected, false, false, false, false, false, false, false);
}
+
+#[test]
+fn regression_test_212() {
+ let original = r##"[a](https://example.com"test")
+[a]("test")
+[a](https://example.com(test))
+[a]((test))
+
+[a](https://example.com "test")
+[a]( "test")
+[a](https://example.com (test))
+[a]( (test))
+"##;
+ let expected = r##"a
+[a](https://example.com"test")
+a
+[a](https://example.com(test))
+
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, false, false, false);
+}
From 967d260d4c309eca8b7ad1242e0295da5897fb32 Mon Sep 17 00:00:00 2001
From: Wes Chow
Date: Tue, 26 May 2026 09:44:38 -0400
Subject: [PATCH 175/180] Fix: wikilink with pipe separator leaks child node's
next chain into sibling content
---
pulldown-cmark/src/parse.rs | 83 +++++++++++++++++++++++++++++++++++++
1 file changed, 83 insertions(+)
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 9e7af723..85d7cc49 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -958,6 +958,29 @@ impl<'input> ParserInner<'input> {
// break node so passes can actually format
// the display text
self.tree[body_node].item.start = rest;
+
+ // Terminate the child chain so it does not extend
+ // past the closing `]]` into sibling content.
+ let mut scan = body_node;
+ loop {
+ if scan == cur_ix {
+ // body_node is the closing delimiter node
+ // (empty display text after `|`); cut here.
+ self.tree[scan].next = None;
+ break;
+ }
+ match self.tree[scan].next {
+ Some(n) if n == cur_ix => {
+ // scan is the last display-text node;
+ // cut before cur_ix.
+ self.tree[scan].next = None;
+ break;
+ }
+ Some(n) => scan = n,
+ None => break,
+ }
+ }
+
Some((true, body_node, wikitext))
} else {
None
@@ -2957,4 +2980,64 @@ text
];
assert_eq!(&events, &expected);
}
+
+ #[test]
+ fn wikilink_no_event_blowup() {
+ // Regression: handle_wikilink reused an existing tree node as
+ // the wikilink's child without terminating that node's `next`
+ // chain. The `next` chain threaded through the closing `]]`
+ // into the content after the wikilink, so the EventIter
+ // visited that tail content both as children (via child ptr)
+ // and as siblings (via next ptr). Adversarial repeated
+ // `[[|]]` patterns compounded exponentially.
+ let one = "[[[[^(\n|]]]]=]]]]]]]]\n".repeat(1);
+ let eight = "[[[[^(\n|]]]]=]]]]]]]]\n".repeat(8);
+
+ let n1 = Parser::new_ext(&one, Options::ENABLE_WIKILINKS).count();
+ let n8 = Parser::new_ext(&eight, Options::ENABLE_WIKILINKS).count();
+
+ assert!(
+ n8 <= n1 * 20,
+ "Event count should scale linearly with input length; \
+ got {n1} events for 1× and {n8} events for 8× ({}× ratio, expected ≤20×)",
+ n8 / n1.max(1)
+ );
+ }
+
+ #[test]
+ fn wikilink_pipe_no_duplicate_siblings() {
+ // `[[[[name|]]]]`
+ // The outer `[[` become Text; the inner `[[` form a wikilink.
+ // After the wikilink the remaining `]]` must appear exactly
+ // once as siblings.
+ let input = "[[[[^(\n|]]]]";
+ let events: Vec<_> = Parser::new_ext(input, Options::ENABLE_WIKILINKS)
+ .into_offset_iter()
+ .collect();
+
+ // Collect non-structural events (excluding Start/End wrappers
+ // whose ranges legitimately repeat). Each Text event's byte
+ // range must appear at most once.
+ let text_ranges: Vec<_> = events
+ .iter()
+ .filter_map(|(e, r)| matches!(e, Event::Text(_)).then_some(r.clone()))
+ .collect();
+
+ let mut seen = std::collections::HashMap::new();
+ for r in &text_ranges {
+ *seen.entry(r.clone()).or_insert(0usize) += 1;
+ }
+ let dups: Vec<_> = seen.iter().filter(|(_, &c)| c > 1).collect();
+ assert!(
+ dups.is_empty(),
+ "Text events for byte ranges {:?} were emitted more than once.\n\
+ Full event list:\n{}",
+ dups.iter().map(|(r, _)| r).collect::>(),
+ events
+ .iter()
+ .map(|(e, r)| format!(" {r:6?} {e:?}"))
+ .collect::>()
+ .join("\n")
+ );
+ }
}
From 85758ac238abe05d5468ee2dcc3e0b7f899aae84 Mon Sep 17 00:00:00 2001
From: Wes Chow
Date: Tue, 26 May 2026 15:41:40 -0400
Subject: [PATCH 176/180] Use hashbrown for wikilink test.
---
pulldown-cmark/src/parse.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 85d7cc49..7cf4fadb 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -3023,7 +3023,7 @@ text
.filter_map(|(e, r)| matches!(e, Event::Text(_)).then_some(r.clone()))
.collect();
- let mut seen = std::collections::HashMap::new();
+ let mut seen = HashMap::new();
for r in &text_ranges {
*seen.entry(r.clone()).or_insert(0usize) += 1;
}
From 18f5389b564a79d98b72b36b85cce2612bd49bf7 Mon Sep 17 00:00:00 2001
From: Wes Chow
Date: Tue, 26 May 2026 15:57:09 -0400
Subject: [PATCH 177/180] Move wikilink_pipe_no_duplicate_siblings test to
wikilinks.txt.
---
pulldown-cmark/specs/wikilinks.txt | 9 ++++++
pulldown-cmark/src/parse.rs | 37 -------------------------
pulldown-cmark/tests/suite/wikilinks.rs | 20 +++++++++----
3 files changed, 24 insertions(+), 42 deletions(-)
diff --git a/pulldown-cmark/specs/wikilinks.txt b/pulldown-cmark/specs/wikilinks.txt
index 210e431c..d5f07da0 100644
--- a/pulldown-cmark/specs/wikilinks.txt
+++ b/pulldown-cmark/specs/wikilinks.txt
@@ -146,6 +146,15 @@ Wikilinks cannot be empty. They will render as-is.
]] [[]] [[|]] [[|Symbol]] [[
````````````````````````````````
+When a wikilink with a pipe separator is nested inside extra brackets, the
+trailing `]]` after the wikilink must appear exactly once.
+
+```````````````````````````````` example_wikilinks
+[[[[link|]]]]
+.
+[[]]]
+````````````````````````````````
+
Other interactions wikilinks have with other Markdown syntax:
```````````````````````````````` example_wikilinks
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 7cf4fadb..b50e5deb 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -3003,41 +3003,4 @@ text
n8 / n1.max(1)
);
}
-
- #[test]
- fn wikilink_pipe_no_duplicate_siblings() {
- // `[[[[name|]]]]`
- // The outer `[[` become Text; the inner `[[` form a wikilink.
- // After the wikilink the remaining `]]` must appear exactly
- // once as siblings.
- let input = "[[[[^(\n|]]]]";
- let events: Vec<_> = Parser::new_ext(input, Options::ENABLE_WIKILINKS)
- .into_offset_iter()
- .collect();
-
- // Collect non-structural events (excluding Start/End wrappers
- // whose ranges legitimately repeat). Each Text event's byte
- // range must appear at most once.
- let text_ranges: Vec<_> = events
- .iter()
- .filter_map(|(e, r)| matches!(e, Event::Text(_)).then_some(r.clone()))
- .collect();
-
- let mut seen = HashMap::new();
- for r in &text_ranges {
- *seen.entry(r.clone()).or_insert(0usize) += 1;
- }
- let dups: Vec<_> = seen.iter().filter(|(_, &c)| c > 1).collect();
- assert!(
- dups.is_empty(),
- "Text events for byte ranges {:?} were emitted more than once.\n\
- Full event list:\n{}",
- dups.iter().map(|(r, _)| r).collect::>(),
- events
- .iter()
- .map(|(e, r)| format!(" {r:6?} {e:?}"))
- .collect::>()
- .join("\n")
- );
- }
}
diff --git a/pulldown-cmark/tests/suite/wikilinks.rs b/pulldown-cmark/tests/suite/wikilinks.rs
index cf9d0574..c1c959fd 100644
--- a/pulldown-cmark/tests/suite/wikilinks.rs
+++ b/pulldown-cmark/tests/suite/wikilinks.rs
@@ -177,6 +177,16 @@ fn wikilinks_test_15() {
#[test]
fn wikilinks_test_16() {
+ let original = r##"[[[[link|]]]]
+"##;
+ let expected = r##"[[]]]
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, true, false, false);
+}
+
+#[test]
+fn wikilinks_test_17() {
let original = r##"[inline link]([[url]])
"##;
let expected = r##"
@@ -186,7 +196,7 @@ fn wikilinks_test_16() {
}
#[test]
-fn wikilinks_test_17() {
+fn wikilinks_test_18() {
let original = r##"[inline link]([[url)]]
"##;
let expected = r##"
@@ -196,7 +206,7 @@ fn wikilinks_test_17() {
}
#[test]
-fn wikilinks_test_18() {
+fn wikilinks_test_19() {
let original = r##"`[[code]]`
"##;
let expected = r##"[[code]]
@@ -206,7 +216,7 @@ fn wikilinks_test_18() {
}
#[test]
-fn wikilinks_test_19() {
+fn wikilinks_test_20() {
let original = r##"emphasis **cross [[over** here]]
"##;
let expected = r##"emphasis **cross over** here
@@ -216,7 +226,7 @@ fn wikilinks_test_19() {
}
#[test]
-fn wikilinks_test_20() {
+fn wikilinks_test_21() {
let original = r##"[[first\|second]]
"##;
let expected = r##"
@@ -226,7 +236,7 @@ fn wikilinks_test_20() {
}
#[test]
-fn wikilinks_test_21() {
+fn wikilinks_test_22() {
let original = r##"[[first!second]]
"##;
let expected = r##"
From e978fd03b575b0d2ef04fa16fa668e7f684772a9 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 29 May 2026 21:34:10 +0000
Subject: [PATCH 178/180] Bump tar from 0.4.45 to 0.4.46
Bumps [tar](https://github.com/composefs/tar-rs) from 0.4.45 to 0.4.46.
- [Release notes](https://github.com/composefs/tar-rs/releases)
- [Commits](https://github.com/composefs/tar-rs/compare/0.4.45...0.4.46)
---
updated-dependencies:
- dependency-name: tar
dependency-version: 0.4.46
dependency-type: indirect
...
Signed-off-by: dependabot[bot]
---
Cargo.lock | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index a0c9bd69..a6213bc5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -503,7 +503,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -1073,7 +1073,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -1692,7 +1692,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys 0.12.1",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -1841,9 +1841,9 @@ dependencies = [
[[package]]
name = "tar"
-version = "0.4.45"
+version = "0.4.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22692a6476a21fa75fdfc11d452fda482af402c008cdbaf3476414e122040973"
+checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"
dependencies = [
"filetime",
"libc",
@@ -2055,7 +2055,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.48.0",
]
[[package]]
From 65e5fd6c2e072fbc7d50c6935dd0d0685b159127 Mon Sep 17 00:00:00 2001
From: Wes Chow
Date: Tue, 2 Jun 2026 09:55:19 -0400
Subject: [PATCH 179/180] Guard against wikilinks that have empty display
parts.
---
pulldown-cmark/specs/wikilinks.txt | 12 ++++-
pulldown-cmark/src/parse.rs | 65 ++++++++++++++-----------
pulldown-cmark/tests/suite/wikilinks.rs | 24 ++++++---
3 files changed, 64 insertions(+), 37 deletions(-)
diff --git a/pulldown-cmark/specs/wikilinks.txt b/pulldown-cmark/specs/wikilinks.txt
index d5f07da0..0404346d 100644
--- a/pulldown-cmark/specs/wikilinks.txt
+++ b/pulldown-cmark/specs/wikilinks.txt
@@ -146,13 +146,21 @@ Wikilinks cannot be empty. They will render as-is.
]] [[]] [[|]] [[|Symbol]] [[
````````````````````````````````
+If the display text is empty then we omit it from the output anchor.
+
+```````````````````````````````` example_wikilinks
+[[link|]]
+.
+
+````````````````````````````````
+
When a wikilink with a pipe separator is nested inside extra brackets, the
trailing `]]` after the wikilink must appear exactly once.
```````````````````````````````` example_wikilinks
-[[[[link|]]]]
+[[[[link|display]]]]
.
-[[]]]
+[[display]]
````````````````````````````````
Other interactions wikilinks have with other Markdown syntax:
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index b50e5deb..391717a2 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -953,37 +953,46 @@ impl<'input> ParserInner<'input> {
return None;
}
// [[WikiName|rest]]
- let body_node = scan_nodes_to_ix(&self.tree, Some(body_node), rest);
- if let Some(body_node) = body_node {
- // break node so passes can actually format
- // the display text
- self.tree[body_node].item.start = rest;
-
- // Terminate the child chain so it does not extend
- // past the closing `]]` into sibling content.
- let mut scan = body_node;
- loop {
- if scan == cur_ix {
- // body_node is the closing delimiter node
- // (empty display text after `|`); cut here.
- self.tree[scan].next = None;
- break;
- }
- match self.tree[scan].next {
- Some(n) if n == cur_ix => {
- // scan is the last display-text node;
- // cut before cur_ix.
- self.tree[scan].next = None;
- break;
+ if rest >= end_ix {
+ // Empty display text: the `|` is immediately followed
+ // by `]]`. Create a zero-length synthetic node so the
+ // anchor has no content, rather than accidentally
+ // capturing the closing `]` delimiter.
+ let body_node = self.tree.create_node(Item {
+ start: rest,
+ end: rest,
+ body: ItemBody::Text {
+ backslash_escaped: false,
+ },
+ });
+ Some((true, body_node, wikitext))
+ } else {
+ let body_node = scan_nodes_to_ix(&self.tree, Some(body_node), rest);
+ if let Some(body_node) = body_node {
+ // break node so passes can actually format
+ // the display text
+ self.tree[body_node].item.start = rest;
+
+ // Terminate the child chain so it does not extend
+ // past the closing `]]` into sibling content.
+ let mut scan = body_node;
+ loop {
+ match self.tree[scan].next {
+ Some(n) if n == cur_ix => {
+ // scan is the last display-text node;
+ // cut before cur_ix.
+ self.tree[scan].next = None;
+ break;
+ }
+ Some(n) => scan = n,
+ None => break,
}
- Some(n) => scan = n,
- None => break,
}
- }
- Some((true, body_node, wikitext))
- } else {
- None
+ Some((true, body_node, wikitext))
+ } else {
+ None
+ }
}
}
None => {
diff --git a/pulldown-cmark/tests/suite/wikilinks.rs b/pulldown-cmark/tests/suite/wikilinks.rs
index c1c959fd..1dcbbc11 100644
--- a/pulldown-cmark/tests/suite/wikilinks.rs
+++ b/pulldown-cmark/tests/suite/wikilinks.rs
@@ -177,9 +177,9 @@ fn wikilinks_test_15() {
#[test]
fn wikilinks_test_16() {
- let original = r##"[[[[link|]]]]
+ let original = r##"[[link|]]
"##;
- let expected = r##"[[]]]
+ let expected = r##"
"##;
test_markdown_html(original, expected, false, false, false, false, true, false, false);
@@ -187,6 +187,16 @@ fn wikilinks_test_16() {
#[test]
fn wikilinks_test_17() {
+ let original = r##"[[[[link|display]]]]
+"##;
+ let expected = r##"[[display]]
+"##;
+
+ test_markdown_html(original, expected, false, false, false, false, true, false, false);
+}
+
+#[test]
+fn wikilinks_test_18() {
let original = r##"[inline link]([[url]])
"##;
let expected = r##"
@@ -196,7 +206,7 @@ fn wikilinks_test_17() {
}
#[test]
-fn wikilinks_test_18() {
+fn wikilinks_test_19() {
let original = r##"[inline link]([[url)]]
"##;
let expected = r##"
@@ -206,7 +216,7 @@ fn wikilinks_test_18() {
}
#[test]
-fn wikilinks_test_19() {
+fn wikilinks_test_20() {
let original = r##"`[[code]]`
"##;
let expected = r##"[[code]]
@@ -216,7 +226,7 @@ fn wikilinks_test_19() {
}
#[test]
-fn wikilinks_test_20() {
+fn wikilinks_test_21() {
let original = r##"emphasis **cross [[over** here]]
"##;
let expected = r##"emphasis **cross over** here
@@ -226,7 +236,7 @@ fn wikilinks_test_20() {
}
#[test]
-fn wikilinks_test_21() {
+fn wikilinks_test_22() {
let original = r##"[[first\|second]]
"##;
let expected = r##"
@@ -236,7 +246,7 @@ fn wikilinks_test_21() {
}
#[test]
-fn wikilinks_test_22() {
+fn wikilinks_test_23() {
let original = r##"[[first!second]]
"##;
let expected = r##"
From 30ea58093e279da5475d7b84fce3b3e70b9f8a4d Mon Sep 17 00:00:00 2001
From: Michael Howell
Date: Tue, 2 Jun 2026 21:50:15 -0700
Subject: [PATCH 180/180] Clean up unneeded extra code
I was confused about this for awhile, and didn't get why that loop was
needed. It turns out, it's needed because the prev link wasn't set up
right. With the prev link set up right, it can be left out.
---
pulldown-cmark/src/parse.rs | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/pulldown-cmark/src/parse.rs b/pulldown-cmark/src/parse.rs
index 391717a2..1347d7a7 100644
--- a/pulldown-cmark/src/parse.rs
+++ b/pulldown-cmark/src/parse.rs
@@ -695,6 +695,7 @@ impl<'input> ParserInner<'input> {
.unwrap_or(false)
{
if let Some(node) = self.handle_wikilink(block_text, cur_ix, prev) {
+ prev = Some(node);
cur = self.tree[node].next;
continue;
}
@@ -973,22 +974,6 @@ impl<'input> ParserInner<'input> {
// the display text
self.tree[body_node].item.start = rest;
- // Terminate the child chain so it does not extend
- // past the closing `]]` into sibling content.
- let mut scan = body_node;
- loop {
- match self.tree[scan].next {
- Some(n) if n == cur_ix => {
- // scan is the last display-text node;
- // cut before cur_ix.
- self.tree[scan].next = None;
- break;
- }
- Some(n) => scan = n,
- None => break,
- }
- }
-
Some((true, body_node, wikitext))
} else {
None