diff --git a/src/render.rs b/src/render.rs index e0ffb569a24..dfa98b51180 100644 --- a/src/render.rs +++ b/src/render.rs @@ -67,6 +67,8 @@ impl<'a> MarkdownRenderer<'a> { ("a", hashset(&["href", "id", "target"])), ("img", hashset(&["width", "height", "src", "alt", "align"])), ("input", hashset(&["checked", "disabled", "type"])), + ("th", hashset(&["rowspan", "colspan"])), + ("td", hashset(&["rowspan", "colspan"])), ]); let allowed_classes = hashmap(&[( "code", @@ -455,4 +457,14 @@ mod tests { "

My crate

\n

Hello, world!

\n" ); } + + #[test] + fn tables_with_rowspan_and_colspan() { + let text = "
Target
\n"; + let result = markdown_to_html(text, None); + assert_eq!( + result, + "
Target
\n" + ); + } }