lib/graphql-docs/helpers.rb in graphql-docs-0.5.3 vs lib/graphql-docs/helpers.rb in graphql-docs-0.6.0
- old
+ new
@@ -15,10 +15,11 @@
opts = { base_url: @options[:base_url], classes: @options[:classes] }.merge(opts)
template.result(OpenStruct.new(opts.merge(helper_methods)).instance_eval { binding })
end
def markdown(string)
- GitHub::Markdown.render(string || 'n/a')
+ return '' if string.nil?
+ CommonMarker.render_html(string, :DEFAULT)
end
# Do you think I am proud of this? I am not.
def format_type(field)
type_path = name_slug = nil