Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment