Commit b6d5d7e9 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Placing Markdown-parsed HTML inside <div>.

This way we can later style the markdown-HTML differently.
parent 051d2f81
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ module JsDuck
      # Markdown-formatted text.
      unless input =~ /<[a-z]/
        begin
          input = Maruku.new(input, {:on_error => :raise}).to_html
          input = "<div class='markdown'>" + Maruku.new(input, {:on_error => :raise}).to_html + "</div>"
        rescue MaRuKu::Exception
          # When Maruku fails because of Markdown syntax error, assume
          # the author didn't intend to write doc-comment in Markdown