lib/hemingway/latex_nodes.rb in hemingway-0.0.2 vs lib/hemingway/latex_nodes.rb in hemingway-0.0.3
- old
+ new
@@ -20,10 +20,12 @@
def html(footnote_seed)
paragraph_content = sequence.elements.map do |element|
if element.respond_to?(:footnote_html)
footnote_seed += 1
element.html(footnote_seed)
+ elsif element.respond_to?(:newline)
+ element.newline.html
else
element.html
end
end.join
@@ -38,8 +40,22 @@
else
memo
end
end
end
+ end
+ module NewlineNode
+ def html
+ end
+
+ def visible_html
+ "\n"
+ end
end
+
+ module WhitespaceNode
+ def html
+ end
+ end
+
end
\ No newline at end of file