]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Update table caption alignment for CSS instead of deprecated alignment
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 19 Mar 2017 14:25:47 +0000 (10:25 -0400)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 19 Mar 2017 14:25:47 +0000 (10:25 -0400)
Sources/libMultiMarkdown/html.c
tests/MMD6Tests/Tables.html

index 74d6498be770021c559c9d840de32b863b5c03a4..de383e97ce73f66adc6fb6c6e142efa8d8ae97ea 100644 (file)
@@ -736,7 +736,7 @@ void mmd_export_token_html(DString * out, const char * source, token * t, scratc
                                }
 
                                temp_char = label_from_token(source, temp_token);
-                               printf("<caption align=\"bottom\" id=\"%s\">", temp_char);
+                               printf("<caption style=\"caption-side: bottom;\" id=\"%s\">", temp_char);
                                free(temp_char);
 
                                t->next->child->child->type = TEXT_EMPTY;
index 04a73bf7cae9272056238b9ebc37f73f6c2f35c2..a9cc489ebc904c020f05c43dd99a2e39fce199d6 100644 (file)
 </table>
 
 <table>
-<caption align="bottom" id="bar"><em>caption</em></caption>
+<caption style="caption-side: bottom;" id="bar"><em>caption</em></caption>
 <colgroup>
 <col />
 <col />
 </table>
 
 <table>
-<caption align="bottom" id="caption"><em>caption</em></caption>
+<caption style="caption-side: bottom;" id="caption"><em>caption</em></caption>
 <colgroup>
 <col />
 <col />