Implemented anchors and crossReferences for Markdown (GFM style)

This commit is contained in:
Hugo de Paix de Coeur
2016-02-03 18:19:28 +01:00
parent c7fb29902f
commit ff085c43f7
3 changed files with 16 additions and 7 deletions

View File

@@ -75,9 +75,10 @@ public class MarkupDocBuilderTest {
.italicTextLine("Italic text line b")
.unorderedList(Arrays.asList("Entry1", "Entry2", "Entry 2"))
.anchor("anchor").newLine()
.anchor("\u0240 & this | there").newLine()
.anchor("\u0240 & this | there").newLine()
.crossReference("anchor").newLine()
.crossReference("anchor", "text").newLine()
.crossReference("\u0240 & this | there").newLine()
.writeToFile("build/tmp", "test", StandardCharsets.UTF_8);
}
@@ -102,9 +103,10 @@ public class MarkupDocBuilderTest {
.italicTextLine("Italic text line b")
.unorderedList(Arrays.asList("Entry1", "Entry2", "Entry 2"))
.anchor("anchor").newLine()
.anchor("\u0240 & this | there").newLine()
.anchor("\u0240 & this | there").newLine()
.crossReference("anchor").newLine()
.crossReference("anchor", "text").newLine()
.crossReference("\u0240 & this | there").newLine()
.writeToFile("build/tmp", "test", StandardCharsets.UTF_8);
}