Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Added xml hilighting
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Nov 18, 2014
1 parent 3cdb454 commit 46ee87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _ext/pipeline.rb
Expand Up @@ -64,7 +64,7 @@
/\<!--\s*lang:\s*javascript\s*--\>\s*<pre><code>(.*?)<\/code><\/pre>/,
"<pre data-language=\"javascript\"><code>\\1</code></pre>")
transformer Awestruct::Extensions::Gsub.new(
/\<!--\s*lang:\s*html\s*--\>\s*<pre><code>(.*?)<\/code><\/pre>/,
/\<!--\s*lang:\s*(?:html|xml)\s*--\>\s*<pre><code>(.*?)<\/code><\/pre>/,
"<pre data-language=\"html\"><code>\\1</code></pre>")
transformer Awestruct::Extensions::Gsub.new(
/\<!--\s*lang:\s*none\s*--\>\s*<pre><code>(.*?)<\/code><\/pre>/,
Expand Down

0 comments on commit 46ee87d

Please sign in to comment.