@@ -1238,6 +1238,56 @@ Each type of Markdown table provides different support for alignment. See the
12381238[Pandoc table documentation](https://pandoc.org/chunkedhtml-demo/8.9-tables.html)
12391239for more details.
12401240
1241+ #### Font size
1242+
1243+ The font size of tables can be customized via the `.small` or `.tiny` classes.
1244+
1245+ ```md
1246+ Table: Font size demonstration (small) {#tbl:fontsize-demonstration .small}
1247+
1248+ +-------+-------+-----------------+
1249+ | Fruit | Color | Description |
1250+ +=======+=======+=================+
1251+ | Apple | Red | Useful for pie. |
1252+ +-------+-------+-----------------+
1253+ | Pear | Green | Useful for pie? |
1254+ +-------+-------+-----------------+
1255+
1256+ Here is how to customize the font size of a table that has no caption:
1257+
1258+ : {.tiny}
1259+
1260+ +--------+--------+---------------------+
1261+ | Fruit | Color | Description |
1262+ +========+========+=====================+
1263+ | Banana | Yellow | Useful for pie. |
1264+ +--------+--------+---------------------+
1265+ | Tomato | Red | Not useful for pie. |
1266+ +--------+--------+---------------------+
1267+ ```
1268+
1269+ These tables render like so:
1270+
1271+ Table: Font size demonstration (small) {#tbl:fontsize-demonstration .small}
1272+
1273+ +-------+-------+-----------------+
1274+ | Fruit | Color | Description |
1275+ +=======+=======+=================+
1276+ | Apple | Red | Useful for pie. |
1277+ +-------+-------+-----------------+
1278+ | Pear | Green | Useful for pie? |
1279+ +-------+-------+-----------------+
1280+
1281+ : {.tiny}
1282+
1283+ +--------+--------+---------------------+
1284+ | Fruit | Color | Description |
1285+ +========+========+=====================+
1286+ | Banana | Yellow | Useful for pie. |
1287+ +--------+--------+---------------------+
1288+ | Tomato | Red | Not useful for pie. |
1289+ +--------+--------+---------------------+
1290+
12411291## HTML Tables {#sec:html-tables}
12421292
12431293A rowspan/colspan table like @tbl:fruits-grid can be implemented in HTML like
0 commit comments