Class: Asciidoctor::LaTeX::ChemInlineMacro

Inherits:
Extensions::InlineMacroProcessor
  • Object
show all
Defined in:
lib/asciidoctor/latex/inline_macros.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) process(parent, target, attributes)



14
15
16
17
# File 'lib/asciidoctor/latex/inline_macros.rb', line 14

def process parent, target, attributes
  text = attributes.values * ', ' # iky!
  %(\\(\\ce{ #{text} }\\))
end