diff --git a/boostlook.rb b/boostlook.rb index 8956b89..592eb6a 100644 --- a/boostlook.rb +++ b/boostlook.rb @@ -3,13 +3,21 @@ Asciidoctor::Extensions.register do process do |doc, output| output = output.sub(/(]*>)/, '\1
') output = output.sub('', '
') - output = output.sub(/(]*id="toc"[^>]*>)/m, '\1') + # Comment out toggle button - TOC should always be visible + # output = output.sub(/(]*id="toc"[^>]*>)/m, '\1') output = output.sub(/(]*id="footer"[^>]*>)/m, '\1') script_tag = <<~SCRIPT SCRIPT