lib/graphql-docs/helpers.rb in graphql-docs-1.6.0 vs lib/graphql-docs/helpers.rb in graphql-docs-1.6.1
- old
+ new
@@ -20,10 +20,11 @@
template.result(OpenStruct.new(opts.merge(helper_methods)).instance_eval { binding })
end
def markdownify(string)
return '' if string.nil?
- ::CommonMarker.render_html(string, :DEFAULT).strip
+ type = @options[:pipeline_config][:context][:unsafe] ? :UNSAFE : :DEFAULT
+ ::CommonMarker.render_html(string, type).strip
end
def graphql_root_types
@parsed_schema[:root_types] || []
end