add figure and figcaption: improve display of it - webdump - HTML to plain-text converter for webpages (HTM) git clone git://git.codemadness.org/webdump (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 94f0ad42fcfbe17b01d9e573a786435d1acc0232 (DIR) parent a30cb9a818546a1e7b651fa33e2f0164079b7bc5 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> 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(-) --- (DIR) diff --git a/webdump.c b/webdump.c @@ -217,6 +217,8 @@ static struct tag tags[] = { { "dt", DisplayBlock, MarkupBold, 0, 0, 1, 0, 0, 0 }, { "em", DisplayInline, MarkupItalic, 0, 0, 0, 0, 0, 0 }, { "embed", DisplayInline, 0, 0, 1, 0, 0, 0, 0 }, +{ "figcaption", DisplayBlock, 0, 0, 0, 0, 0, 0, 0 }, +{ "figure", DisplayBlock, 0, 0, 0, 0, 1, 1, 4 }, { "footer", DisplayBlock, 0, 0, 0, 0, 0, 0, 0 }, { "h1", DisplayHeader, MarkupBold, 0, 0, 0, 1, 1, -defaultindent }, { "h2", DisplayHeader, MarkupBold, 0, 0, 0, 1, 1, -defaultindent },