Skip to content

Commit 9325214

Browse files
Add highlighting for idl/webidl-marked fenced code blocks
The Rouge thing for Jekyll doesn’t support webidl highlighting. This change causes it to use javascript highlighting for idl/webidl-marked blocks.
1 parent 02deea0 commit 9325214

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

_plugins/rouge_webidl.rb

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

0 commit comments

Comments
 (0)