Skip to content

Commit f92ce19

Browse files
committed
Don't strip Markup
1 parent ab06599 commit f92ce19

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/rdoc/ri/driver.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,11 @@ def populate_class_cache(class_cache, classes, extension = false)
344344
end
345345

346346
def read_yaml(path)
347-
YAML.load File.read(path).gsub(/ \!ruby\/(object|struct):(RDoc::RI|RI|SM).*/, '')
347+
data = File.read path
348+
data = data.gsub(/ \!ruby\/(object|struct):(RDoc::RI|RI).*/, '')
349+
data = data.gsub(/ \!ruby\/(object|struct):SM::(\S+)/,
350+
' !ruby/\1:RDoc::Markup::\2')
351+
YAML.load data
348352
end
349353

350354
def get_info_for(arg)

0 commit comments

Comments
 (0)