From 02638919e2b2b1d700d1ccc6bc3bf40e6acb67c8 Mon Sep 17 00:00:00 2001 From: Jarno Elovirta Date: Mon, 25 Dec 2023 11:12:01 +0200 Subject: [PATCH] Support all AST block types Signed-off-by: Jarno Elovirta --- src/main/resources/ast2markdown.xsl | 2 +- src/test/resources/dita/table-block.dita | 6 ++++-- src/test/resources/output/ast/table-block.xml | 2 +- src/test/resources/output/markdown/table-block.md | 4 +++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/resources/ast2markdown.xsl b/src/main/resources/ast2markdown.xsl index adc01eb..5cebbd7 100644 --- a/src/main/resources/ast2markdown.xsl +++ b/src/main/resources/ast2markdown.xsl @@ -240,7 +240,7 @@ - + diff --git a/src/test/resources/dita/table-block.dita b/src/test/resources/dita/table-block.dita index 22b0588..75aa2b2 100644 --- a/src/test/resources/dita/table-block.dita +++ b/src/test/resources/dita/table-block.dita @@ -55,10 +55,12 @@ -

A4

+ A4
-

B4

+
    +
  1. B4
  2. +
diff --git a/src/test/resources/output/ast/table-block.xml b/src/test/resources/output/ast/table-block.xml index e3686f4..8710bf4 100644 --- a/src/test/resources/output/ast/table-block.xml +++ b/src/test/resources/output/ast/table-block.xml @@ -1 +1 @@ -
Table with block content
ABCA1 bold A1B1 bold B1C1 C1A2 boldB2C2A3 B3C3A4B4
\ No newline at end of file +
Table with block content
ABCA1 bold A1B1 bold B1C1 C1A2 boldB2C2A3 B3C3A4
  • B4
  • \ No newline at end of file diff --git a/src/test/resources/output/markdown/table-block.md b/src/test/resources/output/markdown/table-block.md index b938e95..43f8e09 100644 --- a/src/test/resources/output/markdown/table-block.md +++ b/src/test/resources/output/markdown/table-block.md @@ -54,11 +54,13 @@ C3 +``` A4 +``` -B4 +1. B4 \ No newline at end of file