Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(752)

Unified Diff: src/site/_plugins/prettify.rb

Issue 138823002: Draft of new codelab for review (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/site/_plugins/prettify.rb
diff --git a/src/site/_plugins/prettify.rb b/src/site/_plugins/prettify.rb
index 8b0159089ce47cce72a03e56b0fc984e1171a518..ceb93df0f960fd2f46ff6b9bea21bb67e1ebd828 100644
--- a/src/site/_plugins/prettify.rb
+++ b/src/site/_plugins/prettify.rb
@@ -36,6 +36,10 @@ module Prettify
contents = super.strip
contents = CGI::escapeHTML(contents)
+
+ contents.gsub!('[[strike]]', '<code class="nocode strike">')
+ contents.gsub!('[[/strike]]', '</code>')
+
contents.gsub!('[[highlight]]', '<code class="nocode highlight">')
contents.gsub!('[[/highlight]]', '</code>')

Powered by Google App Engine
This is Rietveld 408576698