We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c944481 commit 1da78bdCopy full SHA for 1da78bd
src/utils/mod.rs
@@ -331,6 +331,22 @@ mod tests {
331
);
332
}
333
334
+ #[test]
335
+ fn it_can_wrap_tables() {
336
+ let src = r#"
337
+| Original | Punycode | Punycode + Encoding |
338
+|-----------------|-----------------|---------------------|
339
+| føø | f-5gaa | f_5gaa |
340
+"#;
341
+ let out = r#"
342
+<div class="table-wrapper"><table><thead><tr><th>Original</th><th>Punycode</th><th>Punycode + Encoding</th></tr></thead><tbody>
343
+<tr><td>føø</td><td>f-5gaa</td><td>f_5gaa</td></tr>
344
+</tbody></table>
345
+</div>
346
+"#.trim();
347
+ assert_eq!(render_markdown(src, false), out);
348
+ }
349
+
350
#[test]
351
fn it_can_keep_quotes_straight() {
352
assert_eq!(render_markdown("'one'", false), "<p>'one'</p>\n");
0 commit comments