Skip to content

Commit 811a310

Browse files
committed
The recent Jekyll::Converter has the #descendants method.
1 parent 9a71bab commit 811a310

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

_plugins/rhg_textile_converter.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ def convert(content)
4949
super content
5050
end
5151

52-
# simulate Jekyll::Converter.inherited
53-
Jekyll::Converter.subclasses << self
54-
Jekyll::Converter.subclasses.sort!
52+
unless Jekyll::Converter.respond_to? :descendants
53+
# simulate Jekyll::Converter.inherited
54+
Jekyll::Converter.subclasses << self
55+
Jekyll::Converter.subclasses.sort!
56+
end
5557
end
5658
end
5759

0 commit comments

Comments
 (0)