From ce4b2aeea3ba79d2f3c2282cdaaed12bfbbf6cc9 Mon Sep 17 00:00:00 2001 From: Kevin Fischer Date: Fri, 18 Dec 2020 15:31:10 +0900 Subject: Add prism for syntax highlighting --- dragon/docs.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dragon/docs.rb') diff --git a/dragon/docs.rb b/dragon/docs.rb index fd1c6c9..148eda8 100644 --- a/dragon/docs.rb +++ b/dragon/docs.rb @@ -257,6 +257,8 @@ S DragonRuby Game Toolkit Documentation + +
@@ -442,13 +444,13 @@ S inside_ol = false inside_ul = false inside_pre = true - content_html << "
"
+        content_html << '
'
       elsif l.start_with? "#+end_src"
         parse_log << "- PRE end detected."
         inside_ol = false
         inside_ul = false
         inside_pre = false
-        content_html << "
\n" + content_html << "
\n" elsif l.start_with? "#+begin_quote" parse_log << "- BLOCKQUOTE start detected." content_html += close_list_if_needed.call inside_ul, inside_ol -- cgit v1.2.3