lib/asciidoctor/standoc/base.rb in metanorma-standoc-1.2.0 vs lib/asciidoctor/standoc/base.rb in metanorma-standoc-1.2.1
- old
+ new
@@ -91,11 +91,10 @@
node.attr("mn-keep-asciimath") != "false"
@fontheader = default_fonts(node)
@files_to_delete = []
@filename = node.attr("docfile") ?
node.attr("docfile").gsub(/\.adoc$/, "").gsub(%r{^.*/}, "") : ""
- @localdir = %r{/}.match(node.attr("docfile")) ?
- node.attr("docfile").sub(%r{/[^/]+$}, "/") : "./"
+ @localdir = Utils::localdir(node)
@no_isobib_cache = node.attr("no-isobib-cache")
@no_isobib = node.attr("no-isobib")
@bibdb = nil
@seen_headers = []
@datauriimage = node.attr("data-uri-image")