add figure and figcaption: improve display of it - webdump - HTML to plain-text… | |
git clone git://git.codemadness.org/webdump | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 94f0ad42fcfbe17b01d9e573a786435d1acc0232 | |
parent a30cb9a818546a1e7b651fa33e2f0164079b7bc5 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Fri, 8 Sep 2023 10:31:33 +0200 | |
add figure and figcaption: improve display of it | |
Indent the figure and use a margin. Handle them as block elements. | |
Diffstat: | |
M webdump.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/webdump.c b/webdump.c | |
@@ -217,6 +217,8 @@ static struct tag tags[] = { | |
{ "dt", DisplayBlock, MarkupBold, 0, … | |
{ "em", DisplayInline, MarkupItalic, 0, … | |
{ "embed", DisplayInline, 0, 0, … | |
+{ "figcaption", DisplayBlock, 0, 0, … | |
+{ "figure", DisplayBlock, 0, 0, … | |
{ "footer", DisplayBlock, 0, 0, … | |
{ "h1", DisplayHeader, MarkupBold, 0, … | |
{ "h2", DisplayHeader, MarkupBold, 0, … |