From cf1c490c7a3fd3f9681e97f1e662735e1509250c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 21 Nov 2014 22:29:21 -0800 Subject: commonmark.rb: omit title if empty. --- commonmark.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commonmark.rb b/commonmark.rb index 8767c04..f52f082 100755 --- a/commonmark.rb +++ b/commonmark.rb @@ -166,7 +166,7 @@ class Renderer end def blocksep - self.out("\n\n") + self.out("\n") end def containersep @@ -287,7 +287,7 @@ class HtmlRenderer < Renderer def link(node) self.out(' 0 self.out(' title="', CGI.escapeHTML(node.title), '"') end self.out('>', node.children, '') @@ -295,7 +295,7 @@ class HtmlRenderer < Renderer def image(node) self.out(' 0 self.out(' title="', CGI.escapeHTML(node.title), '"') end plain do -- cgit v1.2.3