wikiheaders: Don't mangle Markdown tables in wordwrap.

main
Ryan C. Gordon 2024-04-08 23:48:25 -04:00
parent a25d49c162
commit 645073961d
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 2 additions and 0 deletions

View File

@ -178,6 +178,8 @@ sub wordwrap_one_paragraph { # don't call this directly.
if ($item ne '') {
$retval .= wordwrap_with_bullet_indent($bullet, $item);
}
} elsif ($p =~ /\A\s*\|.*\|\s*\n/) { # Markdown table
$retval = "$p\n"; # don't wrap it (!!! FIXME: but maybe parse by lines until we run out of table...)
} else {
$retval = wordwrap_atom($p) . "\n";
}