diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 19:32:29 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 19:32:29 +0200 |
commit | 5141bef7df4bfdfa30315491a2e7c440a5be38f4 (patch) | |
tree | 66a12c7915f39dd8e2495ec847714db3358b5257 /tests/gfm_table.rs | |
parent | 218cf7a77f3b487a003b45adfb3687e52bdfdfe9 (diff) | |
download | markdown-rs-5141bef7df4bfdfa30315491a2e7c440a5be38f4.tar.gz markdown-rs-5141bef7df4bfdfa30315491a2e7c440a5be38f4.tar.bz2 markdown-rs-5141bef7df4bfdfa30315491a2e7c440a5be38f4.zip |
Remove some unused code in gfm tables
Diffstat (limited to 'tests/gfm_table.rs')
-rw-r--r-- | tests/gfm_table.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/gfm_table.rs b/tests/gfm_table.rs index d824355..54e0ace 100644 --- a/tests/gfm_table.rs +++ b/tests/gfm_table.rs @@ -379,6 +379,25 @@ fn gfm_table() -> Result<(), String> { ); assert_eq!( + to_html_with_options(" | a |\n\t| - |\n | b |", &Options { + parse: ParseOptions { + constructs: Constructs { + code_indented: false, + ..Constructs::gfm() + }, + ..ParseOptions::default() + }, + compile: CompileOptions { + allow_dangerous_html: true, + allow_dangerous_protocol: true, + ..CompileOptions::default() + } + })?, + "<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>b</td>\n</tr>\n</tbody>\n</table>", + "should support indented rows if code (indented) is off" + ); + + assert_eq!( to_html_with_options( r###"# Align |