The following options have been added, removed or have been changed in the grape-swagger interface:
markdown: true/false
=>markdown: GrapeSwagger::Markdown::KramdownAdapter
You can now configure a markdown adapter. This was originally changed because of performance issues with Kramdown and the markdown
option no longer takes a boolean argument. Built-in adapters include Kramdown and Redcarpet.
To configure the markdown with Kramdown, add the kramdown gem to your Gemfile:
gem 'kramdown'
Configure grape-swagger as follows:
add_swagger_documentation (
markdown: GrapeSwagger::Markdown::KramdownAdapter
)
To configure markdown with Redcarpet, add the redcarpet and the rouge gem to your Gemfile. Note that Redcarpet does not work with JRuby.
gem 'redcarpet'
gem 'rouge'
Configure grape-swagger as follows:
add_swagger_documentation (
markdown: GrapeSwagger::Markdown::RedcarpetAdapter
)
See #142 and documentation section Markdown in Notes for more information.