Method: Kramdown::Converter::Html#convert_xml_comment
- Defined in:
- lib/kramdown/converter/html.rb
#convert_xml_comment(el, indent) ⇒ Object Also known as: convert_xml_pi
228 229 230 231 232 233 234 235 |
# File 'lib/kramdown/converter/html.rb', line 228 def convert_xml_comment(el, indent) if el.[:category] == :block && (@stack.last.type != :html_element || @stack.last.[:content_model] != :raw) ' ' * indent << el.value << "\n" else el.value end end |