Add details and summary elements for wikiformat
(1) By John Rouillard (rouilj) on 2023-05-03 02:48:32 [source]
Would support for the details and summary HTML elements be considered for the wiki (and I guess other places that wiki markup is used)?
The following seems to work for me. I gladly turn it over to the fossil project for use.
I find this to be very useful for examples or digressions in documentation. It has only been tested with markdown formatted wiki documents however. So I may be missing something.
Index: src/wikiformat.c
==================================================================
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -195,10 +195,11 @@
MARKUP_CODE,
MARKUP_COL,
MARKUP_COLGROUP,
MARKUP_DD,
MARKUP_DEL,
+ MARKUP_DETAILS,
MARKUP_DFN,
MARKUP_DIV,
MARKUP_DL,
MARKUP_DT,
MARKUP_EM,
@@ -229,10 +230,11 @@
MARKUP_SMALL,
MARKUP_SPAN,
MARKUP_STRIKE,
MARKUP_STRONG,
MARKUP_SUB,
+ MARKUP_SUMMARY,
MARKUP_SUP,
MARKUP_TABLE,
MARKUP_TBODY,
MARKUP_TD,
MARKUP_TFOOT,
@@ -303,10 +305,12 @@
AMSK_ALIGN|AMSK_CLASS|AMSK_COLSPAN|AMSK_WIDTH|AMSK_STYLE },
{ "colgroup", MARKUP_COLGROUP, MUTYPE_BLOCK,
AMSK_ALIGN|AMSK_CLASS|AMSK_COLSPAN|AMSK_WIDTH|AMSK_STYLE},
{ "dd", MARKUP_DD, MUTYPE_LI, AMSK_STYLE },
{ "del", MARKUP_DEL, MUTYPE_FONT, AMSK_STYLE },
+ { "details", MARKUP_DETAILS, MUTYPE_BLOCK,
+ AMSK_ID|AMSK_CLASS|AMSK_STYLE },
{ "dfn", MARKUP_DFN, MUTYPE_FONT, AMSK_STYLE },
{ "div", MARKUP_DIV, MUTYPE_BLOCK,
AMSK_ID|AMSK_CLASS|AMSK_STYLE },
{ "dl", MARKUP_DL, MUTYPE_LIST,
AMSK_COMPACT|AMSK_STYLE },
@@ -361,10 +365,12 @@
{ "span", MARKUP_SPAN, MUTYPE_BLOCK,
AMSK_ALIGN|AMSK_CLASS|AMSK_STYLE },
{ "strike", MARKUP_STRIKE, MUTYPE_FONT, AMSK_STYLE },
{ "strong", MARKUP_STRONG, MUTYPE_FONT, AMSK_STYLE },
{ "sub", MARKUP_SUB, MUTYPE_FONT, AMSK_STYLE },
+ { "summary", MARKUP_SUMMARY, MUTYPE_BLOCK,
+ AMSK_ALIGN|AMSK_CLASS|AMSK_STYLE },
{ "sup", MARKUP_SUP, MUTYPE_FONT, AMSK_STYLE },
{ "table", MARKUP_TABLE, MUTYPE_TABLE,
AMSK_ALIGN|AMSK_BGCOLOR|AMSK_BORDER|AMSK_CELLPADDING|
AMSK_CELLSPACING|AMSK_HSPACE|AMSK_VSPACE|AMSK_CLASS|
AMSK_STYLE },
(2) By Stephan Beal (stephan) on 2023-05-03 13:26:11 in reply to 1 [link] [source]
Would support for the details and summary HTML elements be considered for the wiki (and I guess other places that wiki markup is used)?
Considered and checked in. Thank you for the suggestion.
(3) By John Rouillard (rouilj) on 2023-05-03 14:35:42 in reply to 2 [link] [source]
Thanks Stephan.