Skip to content

Commit 2b42794

Browse files
Add highlighting for webidl-marked fenced code blocks
The Rouge thing for Jekyll doesn’t support webidl highlighting. So this change causes it to use javascript highlighting for webidl-marked blocks.
1 parent 4f3b716 commit 2b42794

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

_plugins/rouge_webidl.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require "rouge"
2+
3+
module Rouge
4+
module Lexers
5+
class WebIDL < Javascript
6+
tag "webidl"
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)