From 9ce14d08e3829ff4ffef7714c33df6b79a1ec29b 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 7d9ffb6..47f3a39 100644 --- a/src/main/resources/hdita2dita-common.xsl +++ b/src/main/resources/hdita2dita-common.xsl @@ -584,6 +584,18 @@ + + + + + + + + + - topic/example + + +
    @@ -790,6 +802,7 @@ + diff --git a/src/test/java/com/elovirta/dita/html/HDitaReaderTest.java b/src/test/java/com/elovirta/dita/html/HDitaReaderTest.java index 88fad17..1c42c2a 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 0000000..064de4d --- /dev/null +++ b/src/test/resources/hdita/example.html @@ -0,0 +1,14 @@ + +Example +
    +

    Example

    +

    Shortdesc.

    +
    +

    Example section

    +

    Example content.

    +
    +
    +

    Example section

    +

    Example content.

    +
    +