Browse Source

Markdown.pl: allow some overlooked table attributes

For %cellhalign allow the overlooked 'char' and 'charoff' attributes.

For table allow the overlooked 'frame' and 'rules' attributes.

For table, tr, th and td allow the 'bgcolor' attribute.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
master
Kyle J. McKay 4 years ago
parent
commit
86606c5a52
  1. 18
      Markdown.pl

18
Markdown.pl

@ -3379,8 +3379,8 @@ BEGIN {
'basefont' => { map({$_ => 1} qw(color face size)) },
'br' => { map({$_ => 1} qw(clear)) },
'caption' => { map({$_ => 1} qw(align)) },
'col' => { map({$_ => 1} qw(align span width valign)) },
'colgroup' => { map({$_ => 1} qw(align span width valign)) },
'col' => { map({$_ => 1} qw(align char charoff span width valign)) },
'colgroup' => { map({$_ => 1} qw(align char charoff span width valign)) },
'dir' => { map({$_ => 1} qw(compact)) },
'div' => { map({$_ => 1} qw(align)) },
'dl' => { map({$_ => 1} qw(compact)) },
@ -3400,13 +3400,13 @@ BEGIN {
'ol' => { map({$_ => 1} qw(compact start type)) },
'p' => { map({$_ => 1} qw(align)) },
'pre' => { map({$_ => 1} qw(width)) },
'table' => { map({$_ => 1} qw(align border cellpadding cellspacing summary width)) },
'tbody' => { map({$_ => 1} qw(align valign)) },
'tfoot' => { map({$_ => 1} qw(align valign)) },
'thead' => { map({$_ => 1} qw(align valign)) },
'td' => { map({$_ => 1} qw(align colspan height nowrap rowspan valign width)) },
'th' => { map({$_ => 1} qw(align colspan height nowrap rowspan valign width)) },
'tr' => { map({$_ => 1} qw(align valign)) },
'table' => { map({$_ => 1} qw(align bgcolor border cellpadding cellspacing frame rules summary width)) },
'tbody' => { map({$_ => 1} qw(align char charoff valign)) },
'tfoot' => { map({$_ => 1} qw(align char charoff valign)) },
'thead' => { map({$_ => 1} qw(align char charoff valign)) },
'td' => { map({$_ => 1} qw(align bgcolor char charoff colspan height nowrap rowspan valign width)) },
'th' => { map({$_ => 1} qw(align bgcolor char charoff colspan height nowrap rowspan valign width)) },
'tr' => { map({$_ => 1} qw(align bgcolor char charoff valign)) },
'ul' => { map({$_ => 1} qw(compact type)) }
);
%tagmt = map({$_ => 1} qw(area basefont br col hr img));

Loading…
Cancel
Save