From 0d343db2a81efdbce8fc5b6859bf48b072a16d3d Mon Sep 17 00:00:00 2001 From: Jarno Elovirta Date: Sun, 11 Jun 2023 19:04:54 +0300 Subject: [PATCH] HDITA example WIP Signed-off-by: Jarno Elovirta --- src/main/resources/hdita2dita-common.xsl | 13 +++++++++++++ .../com/elovirta/dita/html/HDitaReaderTest.java | 1 + src/test/resources/hdita/example.html | 14 ++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 src/test/resources/hdita/example.html diff --git a/src/main/resources/hdita2dita-common.xsl b/src/main/resources/hdita2dita-common.xsl index ed9c5198..3d1c8cf9 100644 --- a/src/main/resources/hdita2dita-common.xsl +++ b/src/main/resources/hdita2dita-common.xsl @@ -571,6 +571,18 @@ + + + + + + + + + - topic/example + + +
    @@ -777,6 +789,7 @@ + diff --git a/src/test/java/com/elovirta/dita/html/HDitaReaderTest.java b/src/test/java/com/elovirta/dita/html/HDitaReaderTest.java index 06d6f9ed..9138bf78 100644 --- a/src/test/java/com/elovirta/dita/html/HDitaReaderTest.java +++ b/src/test/java/com/elovirta/dita/html/HDitaReaderTest.java @@ -34,6 +34,7 @@ public String getExp() { "dl.html", "entity.html", "escape.html", + "example.html", "hdita.html", "html.html", "image-size.html", diff --git a/src/test/resources/hdita/example.html b/src/test/resources/hdita/example.html new file mode 100644 index 00000000..064de4da --- /dev/null +++ b/src/test/resources/hdita/example.html @@ -0,0 +1,14 @@ + +Example +
    +

    Example

    +

    Shortdesc.

    +
    +

    Example section

    +

    Example content.

    +
    +
    +

    Example section

    +

    Example content.

    +
    +