1
Fork 0

Bump dependencies to fix HTML in tables

This updates dependencies, causing #19 to be fixed. This also adds a
regression test for #19.
This commit is contained in:
Smitty 2021-06-23 10:01:39 -04:00
parent 1b3dceae42
commit 980047b0cf
5 changed files with 431 additions and 265 deletions

675
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -10,9 +10,9 @@ edition = "2018"
[dependencies] [dependencies]
mdbook = "0.4.10" mdbook = "0.4.10"
pulldown-cmark = "0.7.0" pulldown-cmark = "0.8.0"
pulldown-cmark-to-cmark = "4.0.2" pulldown-cmark-to-cmark = "6.0.2"
env_logger = "0.7.1" env_logger = "0.8.4"
log = "0.4.11" log = "0.4.11"
clap = "2.33.3" clap = "2.33.3"
serde_json = "1.0.57" serde_json = "1.0.57"

View file

@ -145,3 +145,8 @@ fn similar_heading_different_casing() {
assert_toc!("similar_heading_different_casing"); assert_toc!("similar_heading_different_casing");
} }
#[test]
fn tables_with_html() {
assert_toc!("tables_with_html");
}

View file

@ -0,0 +1,5 @@
# Heading
| Head 1 | Head 2 |
|--------|--------|
| <span>Row 1</span> | Row 2 |

View file

@ -0,0 +1,5 @@
# Heading
|Head 1|Head 2|
|------|------|
|<span>Row 1</span>|Row 2|