lib/asciidoctor/standoc/macros.rb in metanorma-standoc-1.3.24 vs lib/asciidoctor/standoc/macros.rb in metanorma-standoc-1.3.25

- old
+ new

@@ -1,9 +1,10 @@ require "asciidoctor/extensions" require "fileutils" require "uuidtools" require_relative "./macros_plantuml.rb" +require_relative "./macros_yaml2text.rb" module Asciidoctor module Standoc class AltTermInlineMacro < Asciidoctor::Extensions::InlineMacroProcessor use_dsl @@ -56,10 +57,10 @@ class ConceptInlineMacro < Asciidoctor::Extensions::InlineMacroProcessor use_dsl named :concept name_positional_attributes "id", "word", "term" #match %r{concept:(?<target>[^\[]*)\[(?<content>|.*?[^\\])\]$} - match /\{\{(?<content>|.*?[^\\])\}\}$/ + match /\{\{(?<content>|.*?[^\\])\}\}/ using_format :short # deal with locality attrs and their disruption of positional attrs def preprocess_attrs(attrs) attrs.delete("term") if attrs["term"] and !attrs["word"]