lib/trac_wiki/parser.rb in trac-wiki-0.0.2 vs lib/trac_wiki/parser.rb in trac-wiki-0.0.3
- old
+ new
@@ -11,12 +11,12 @@
# == Heading 2 ==
# === Heading 3 ===
# **Bold text**
# ''Italic text''
# [[Links]]
-# ||=Table||=Heading||
-# || Table|| Cells ||
+# ||=Table=||=Heading=||
+# || Table || Cells ||
# [[Image(image.png)]]
#
# The simplest interface is TracWiki.render. The default handling of
# links allow explicit local links using the [[link]] syntax. External
# links will only be allowed if specified using http(s) and ftp(s)
@@ -109,9 +109,11 @@
def end_tag
tag = @stack.pop
tagi = @stacki.pop
if tag == 'strongem'
@out << '</em></strong>'
+ elsif tag == 'p'
+ @out << "</p>\n"
else
@out << "</#{tag}>"
end
end