class Metanorma::Plugin::Lutaml::LutamlTableInlineMacro
Constants
- SUPPORTED_OPTIONS
Public Instance Methods
process(parent, _target, attrs)
click to toggle source
# File lib/metanorma/plugin/lutaml/lutaml_table_inline_macro.rb, line 13 def process(parent, _target, attrs) keyword = SUPPORTED_OPTIONS.find { |n| attrs[n] } entity_key = [keyword, attrs["package"], attrs[keyword]].compact.join(":") return if parent.document.attributes['lutaml_entity_id'].nil? xmi_id = parent.document.attributes['lutaml_entity_id'][entity_key] return unless xmi_id %Q(<xref target="section-#{xmi_id}"></xref>) end