add more block-like tags - webdump - HTML to plain-text converter for webpages | |
git clone git://git.codemadness.org/webdump | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 17c9e247a8df6c43cdec6bac73410dd35ece683c | |
parent 83d4fe1dd6996c779d73406a237c9fd470cda9b6 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 12 Sep 2023 19:58:39 +0200 | |
add more block-like tags | |
Diffstat: | |
M webdump.c | 3 +++ | |
1 file changed, 3 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/webdump.c b/webdump.c | |
@@ -210,6 +210,7 @@ static struct tag tags[] = { | |
{ "a", DisplayInline, MarkupUnderline, 0, … | |
{ "area", DisplayInline, 0, 0, … | |
{ "article", DisplayBlock, 0, 0, … | |
+{ "aside", DisplayBlock, 0, 0, … | |
{ "audio", DisplayInline, MarkupUnderline, 0, … | |
{ "b", DisplayInline, MarkupBold, 0, … | |
{ "base", DisplayInline, 0, 0, … | |
@@ -222,6 +223,7 @@ static struct tag tags[] = { | |
{ "colgroup", DisplayInline, 0, 0, … | |
{ "dd", DisplayBlock, 0, 0, … | |
{ "del", DisplayInline, MarkupStrike, 0, … | |
+{ "details", DisplayBlock, 0, 0, … | |
{ "div", DisplayBlock, 0, 0, … | |
{ "dl", DisplayBlock|DisplayDl, 0, 0, … | |
{ "dt", DisplayBlock, MarkupBold, 0, … | |
@@ -263,6 +265,7 @@ static struct tag tags[] = { | |
{ "strike", DisplayInline, MarkupStrike, 0, … | |
{ "strong", DisplayInline, MarkupBold, 0, … | |
{ "style", DisplayNone, 0, 0, … | |
+{ "summary", DisplayBlock, 0, 0, … | |
{ "table", DisplayTable, 0, 0, … | |
{ "tbody", DisplayInline, 0, DisplayTabl… | |
{ "td", DisplayTableCell, 0, DisplayTabl… |