From 5637e736e1625191422f07ba0330dad11e22b74b Mon Sep 17 00:00:00 2001 From: Stuart Rackham Date: Sat, 25 Aug 2012 12:14:48 +1200 Subject: - html4: allow embedded images and icons (data-uri attribute). - html4: table and example block caption place at bottom for consistency. - html4: dropped border around example block. - html4: cellpaddings made equal to 4 for consistency. --- html4.conf | 28 +++++++++++++++++++--------- tests/testasciidoc.conf | 2 +- wordpress.conf | 10 ++++++++-- 3 files changed, 28 insertions(+), 12 deletions(-) diff --git a/html4.conf b/html4.conf index 10dd056..c5cefe6 100644 --- a/html4.conf +++ b/html4.conf @@ -39,14 +39,18 @@ template::[pi-blockmacro] [image-inlinemacro] # src attribute must be first attribute for blogpost compatibility. -{alt={target}} +{data-uri%}{alt={target}} +{data-uri#}{alt={target}} {link#} [image-blockmacro] -{alt={target}} +{data-uri%}{alt={target}} +{data-uri#}{alt={target}} {link#}

{caption={figure-caption} {counter:figure-number}. }{title}

@@ -221,7 +225,7 @@ template::[admonitionblock] [listingblock]

{title}

-
+

 |
 
@@ -236,7 +240,7 @@ template::[admonitionblock] [sidebarblock] - +

{title}

| @@ -281,16 +285,22 @@ template::[quoteblock] [exampleblock] -

{caption={example-caption} {counter:example-number}. }{title}

- +
|
+

{caption={example-caption} {counter:example-number}. }{title}

[admonitionblock] - - +

{caption}

+ + {headrows#} {headrows} {headrows#} @@ -358,6 +367,7 @@ cellspacing="0" cellpadding="4"> {bodyrows}
+{data-uri%}{icons#}{caption} +{data-uri#}{icons#}{caption} +{icons%}

{caption}

+

{title}

| @@ -347,7 +357,6 @@ style="float:{float};" frame="{frame%border}" frame="{frame@topbot:hsides}{frame@all:border}{frame@none:void}{frame@sides:vsides}" cellspacing="0" cellpadding="4"> -
{caption={table-caption} {counter:table-number}. }{title}
+

{caption={table-caption} {counter:table-number}. }{title}

#-------------------------------------------------------------------- diff --git a/tests/testasciidoc.conf b/tests/testasciidoc.conf index 62dc7f4..3c6c1ff 100644 --- a/tests/testasciidoc.conf +++ b/tests/testasciidoc.conf @@ -56,7 +56,7 @@ Example article with embedded images (data URIs) article-data-uri % backends -['xhtml11','html5'] +['html4','xhtml11','html5'] % options ['--section-numbers'] diff --git a/wordpress.conf b/wordpress.conf index 69e7a1b..3fffa68 100644 --- a/wordpress.conf +++ b/wordpress.conf @@ -71,16 +71,22 @@ paragraph=
|
[exampleblock] -

{caption=}{title}

|
+

{caption={example-caption} {counter:example-number}. }{title}

[admonitionblock] - + +

{caption}

+{data-uri%}{icons#}{caption} +{data-uri#}{icons#}{caption} +{icons%}

{caption}

+

{title}

| -- cgit v1.2.1