Texy! DOM for single line
Convert Texy! single line into DOM structure
[Source]
# File lib/texy/dom.rb, line 406 def parse(text) # Remove special chars and line endings. text = Texy.wash(text) text = text.gsub("\n", ' ').gsub("\r", '').rstrip # Process. super end
Convert DOM structure to (X)HTML code
# File lib/texy/dom.rb, line 418 def to_html html = super html = WellForm.new.process(html) html = Texy.unfreeze_spaces(html) html = Html.check_entities(html) html end
[Validate]