Skip to content

Commit

Permalink
Add MDITA example test
Browse files Browse the repository at this point in the history
Signed-off-by: Jarno Elovirta <[email protected]>
  • Loading branch information
jelovirt committed Dec 25, 2023
1 parent 10bd041 commit af5c144
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public String getSrc() {
"conref.md",
"entity.md",
"escape.md",
"example.md",
"html.md",
"image.md",
"inline_core.md",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public String getSrc() {
"dl.md",
"entity.md",
"escape.md",
"example.md",
"footnote.md",
"header_attributes.md",
"invalid_section_header.md",
Expand Down
11 changes: 11 additions & 0 deletions src/test/resources/markdown/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Example

Shortdesc.

## Example section {.example}

Example content.

## Example section { .example }

Example content.
16 changes: 16 additions & 0 deletions src/test/resources/xdita/example.dita
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<topic xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" class="- topic/topic "
ditaarch:DITAArchVersion="2.0" id="example" specializations="(topic hi-d)(topic em-d)">
<title class="- topic/title ">Example</title>
<shortdesc class="- topic/shortdesc ">Shortdesc.</shortdesc>
<body class="- topic/body ">
<section class="- topic/section " id="example-section-example">
<title class="- topic/title ">Example section {.example}</title>
<p class="- topic/p ">Example content.</p>
</section>
<section class="- topic/section " id="example-section-----example--">
<title class="- topic/title ">Example section { .example }</title>
<p class="- topic/p ">Example content.</p>
</section>
</body>
</topic>

0 comments on commit af5c144

Please sign in to comment.