You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,12 +40,14 @@ You can pass a hash with some configuration possibilities to ```add_swagger_docu
40
40
*```:mount_path``` The path were the API documentation is loaded, default '/swagger_doc'
41
41
*```:api_version``` Version of the API that's being exposed
42
42
*```:base_path``` Basepath of the API that's being exposed
43
+
*```:markdown``` Allow markdown in `notes`, default `false`
43
44
44
45
## Swagger additions
45
46
grape-swagger allows you to add an explanation in markdown in the notes field. Which would result in proper formatted markdown in Swagger UI. The default Swagger UI doesn't allow HTML in the notes field, so you need to use an adapted version of Swagger UI (you can find one at https://github.com/tim-vandecasteele/swagger-ui/tree/vasco).
46
47
47
48
We're using [kramdown](http://kramdown.rubyforge.org) for parsing the markdown, specific syntax can be found [here](http://kramdown.rubyforge.org/syntax.html).
48
49
50
+
Be sure to enable markdown in the `add_swagger_documentation` call: ':markdown => true'
0 commit comments