lib/yard/templates/helpers/markup/rdoc_markdown.rb in yard-0.9.18 vs lib/yard/templates/helpers/markup/rdoc_markdown.rb in yard-0.9.19

- old
+ new

@@ -1,23 +1,23 @@ -# frozen_string_literal: true -module YARD - module Templates - module Helpers - module Markup - begin require 'rdoc'; rescue LoadError; nil end - begin - require 'rdoc/markdown' - rescue LoadError - raise NameError, "could not load RDoc Markdown support (rdoc is too old)" - end - - class RDocMarkdown < RDocMarkup - def initialize(text) - super RDoc::Markdown.new.parse(text) - end - - def fix_typewriter(html) html end - end - end - end - end -end +# frozen_string_literal: true +module YARD + module Templates + module Helpers + module Markup + begin require 'rdoc'; rescue LoadError; nil end + begin + require 'rdoc/markdown' + rescue LoadError + raise NameError, "could not load RDoc Markdown support (rdoc is too old)" + end + + class RDocMarkdown < RDocMarkup + def initialize(text) + super RDoc::Markdown.new.parse(text) + end + + def fix_typewriter(html) html end + end + end + end + end +end