Merge branch '2.5.x' into 2.6.x

Closes gh-29689
This commit is contained in:
Andy Wilkinson
2022-02-09 12:18:35 +00:00
37 changed files with 234 additions and 165 deletions

View File

@@ -90,7 +90,9 @@ class Snippets {
private Asciidoc getAsciidoc(Snippet snippet, Table table) {
Asciidoc asciidoc = new Asciidoc();
asciidoc.appendln("[[" + snippet.getAnchor() + "]]");
// We have to prepend 'appendix.' as a section id here, otherwise the
// spring-asciidoctor-extensions:section-id asciidoctor extension complains
asciidoc.appendln("[[appendix." + snippet.getAnchor() + "]]");
asciidoc.appendln("== ", snippet.getTitle());
table.write(asciidoc);
return asciidoc;