From 5141bef7df4bfdfa30315491a2e7c440a5be38f4 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 13 Oct 2022 19:32:29 +0200 Subject: Remove some unused code in gfm tables --- tests/gfm_table.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests') 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 @@ -378,6 +378,25 @@ fn gfm_table() -> Result<(), String> { "should prefer GFM tables over definitions" ); + 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() + } + })?, + "\n\n\n\n\n\n\n\n\n\n\n
a
b
", + "should support indented rows if code (indented) is off" + ); + assert_eq!( to_html_with_options( r###"# Align -- cgit