Skip to content

Commit 25feb4e

Browse files
committed
Avoid requiring the top level file in the 'compat' file
As of #401, the compatibility layer lives in its own file but since Yard provides a Redcarpet support and relies on the same symbol to specify the provider and the require string (https://git.io/vDLyr), we can't ask them to "require 'redcarpet/compat'" so let's still require the compatibility layer by default. Fixes #589.
1 parent 26c80f0 commit 25feb4e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/redcarpet/compat.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'redcarpet'
2-
31
# Creates an instance of Redcarpet with the RedCloth API.
42
class RedcarpetCompat
53
attr_accessor :text

0 commit comments

Comments
 (0)