diff --git a/gradle.properties b/gradle.properties index e1c3a56..d321570 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=0.0.10-SNAPTSHOT +version=0.0.10 org.gradle.caching=true org.gradle.parallel=true diff --git a/src/main/ruby/lib/spring-asciidoctor-backends/spring-html5-converter.rb b/src/main/ruby/lib/spring-asciidoctor-backends/spring-html5-converter.rb index 6fd74d6..1fc3cc8 100644 --- a/src/main/ruby/lib/spring-asciidoctor-backends/spring-html5-converter.rb +++ b/src/main/ruby/lib/spring-asciidoctor-backends/spring-html5-converter.rb @@ -123,10 +123,10 @@ class DelegateHtml5Converter < Asciidoctor::Converter::Html5Converter def convert_outline(node, opts = {}) outline = super - # Modify the TOC to wrap section numbers with a tag for level 1 section + # Modify the TOC to remove the period after top-level section numbers and wrap the number with a tag if outline != nil && node.node_name == "document" outline.gsub!(/(#{$2}#{$3}#{$4}" + "#{$1}#{$2}#{$4}" # Removed #{$3} which represents the period end end