def inline_quoted node
if (type = node.type) == :asciimath
if ((defined? ::AsciiMath) || ((defined? @asciimath_available) ? @asciimath_available :
(@asciimath_available = Helpers.require_library 'asciimath', true, :warn)))
%(<inlineequation>#{(::AsciiMath.parse node.text).to_mathml 'mml:', 'xmlns:mml' => 'http://www.w3.org/1998/Math/MathML'}</inlineequation>)
else
%(<inlineequation><mathphrase><![CDATA[#{node.text}]]></mathphrase></inlineequation>)
end
elsif type == :latexmath
%(<inlineequation><alt><![CDATA[#{equation = node.text}]]></alt><mathphrase><![CDATA[#{equation}]]></mathphrase></inlineequation>)
else
open, close, supports_phrase = QUOTE_TAGS[type]
text = node.text
if (role = node.role)
if supports_phrase
quoted_text = %(#{open}<phrase role="#{role}">#{text}</phrase>#{close})
else
quoted_text = %(#{open.chop} role="#{role}">#{text}#{close})
end
else
quoted_text = %(#{open}#{text}#{close})
end
node.id ? %(<anchor
end
end