Align td and th with css instead of align property
When you align tables with css, <td align="..."> gets overridden. Using inline styles keeps alignment no matter what CSS contains.
This commit is contained in:
parent
0f1b2a017f
commit
92c9d20b0a
1 changed files with 3 additions and 3 deletions
|
@ -444,15 +444,15 @@ rndr_tablecell(struct buf *ob, const struct buf *text, int flags, void *opaque)
|
|||
|
||||
switch (flags & MKD_TABLE_ALIGNMASK) {
|
||||
case MKD_TABLE_ALIGN_CENTER:
|
||||
BUFPUTSL(ob, " align=\"center\">");
|
||||
BUFPUTSL(ob, " style=\"text-align: center\">");
|
||||
break;
|
||||
|
||||
case MKD_TABLE_ALIGN_L:
|
||||
BUFPUTSL(ob, " align=\"left\">");
|
||||
BUFPUTSL(ob, " style=\"text-align: left\">");
|
||||
break;
|
||||
|
||||
case MKD_TABLE_ALIGN_R:
|
||||
BUFPUTSL(ob, " align=\"right\">");
|
||||
BUFPUTSL(ob, " style=\"text-align: right\">");
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue