Skip to content

Commit 9eab72f

Browse files
committed
fix: Haml compatibility
1 parent d1b3edd commit 9eab72f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/middleman-syntax/haml_monkey_patch.rb

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# If Haml is around, define a :code filter that can be used to more conveniently output highlighted code.
2-
if defined? Haml
1+
if defined? Haml && Gem::Version.new(Haml::VERSION) >= Gem::Version.new("6.0.0.beta.1")
32
module Haml
4-
module Filters
5-
module Code
3+
class Filters
4+
class Code < Base
65
include Base
76

87
def render(code)

0 commit comments

Comments
 (0)