-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from jelovirt/feature/generate-empty-title
Support Markdown files without top level header
- Loading branch information
Showing
16 changed files
with
111 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<topic xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" class="- topic/topic " | ||
specializations="@props/audience @props/deliveryTarget @props/otherprops @props/platform @props/product" | ||
id="missing-root-header" ditaarch:DITAArchVersion="2.0"> | ||
<title class="- topic/title ">missing root header</title> | ||
<body class="- topic/body "> | ||
<p class="- topic/p ">Root topic content.</p> | ||
</body> | ||
<topic class="- topic/topic " | ||
specializations="@props/audience @props/deliveryTarget @props/otherprops @props/platform @props/product" | ||
id="nested-topic" ditaarch:DITAArchVersion="2.0"> | ||
<title class="- topic/title ">Nested Topic</title> | ||
<body class="- topic/body "> | ||
<p class="- topic/p ">Nested topic content.</p> | ||
</body> | ||
</topic> | ||
</topic> |
8 changes: 8 additions & 0 deletions
8
src/test/resources/dita/wiki/missing_root_header_with_yaml.dita
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<topic xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" class="- topic/topic " | ||
specializations="@props/audience @props/deliveryTarget @props/otherprops @props/platform @props/product" | ||
id="yaml-id" ditaarch:DITAArchVersion="2.0"> | ||
<title class="- topic/title ">YAML Title</title> | ||
<body class="- topic/body "> | ||
<p class="- topic/p ">Root topic content.</p> | ||
</body> | ||
</topic> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><pandoc><div><header id="missing-root-header" level="1">missing root header</header><div><para>Root topic content.</para></div><div id="nested-topic"><header id="nested-topic" level="2">Nested Topic</header><div><para>Nested topic content.</para></div></div></div></pandoc> | ||
<?xml version="1.0" encoding="UTF-8"?><pandoc><div><header id="missing-root-header" level="1"/><div><para>Root topic content.</para></div><div id="nested-topic"><header id="nested-topic" level="2">Nested Topic</header><div><para>Nested topic content.</para></div></div></div></pandoc> |
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/ast/missing_root_header_with_yaml.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><pandoc><div><header id="yaml-title" level="1">YAML Title</header><div><para>Root topic content.</para></div></div></pandoc> | ||
<?xml version="1.0" encoding="UTF-8"?><pandoc><div><header id="yaml-id" level="1">YAML Title</header><div><para>Root topic content.</para></div></div></pandoc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><pandoc><div><header id="yaml-header" level="1">YAML Header</header><div/></div></pandoc> | ||
<?xml version="1.0" encoding="UTF-8"?><pandoc><div><header id="extended-profile" level="1">YAML Header</header><div/></div></pandoc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# missing root header {#missing-root-header} | ||
# {#missing-root-header} | ||
|
||
Root topic content. | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/test/resources/output/markdown/missing_root_header_with_yaml.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# YAML Title {#yaml-title} | ||
# YAML Title {#yaml-id} | ||
|
||
Root topic content. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# YAML Header {#yaml-header} | ||
# YAML Header {#extended-profile} | ||
|