diff --git a/src/main/coffeescript/SwaggerUi.coffee b/src/main/coffeescript/SwaggerUi.coffee index 354b3f02a1a..46f4f63010b 100644 --- a/src/main/coffeescript/SwaggerUi.coffee +++ b/src/main/coffeescript/SwaggerUi.coffee @@ -24,11 +24,14 @@ class SwaggerUi extends Backbone.Router @options = options + # set marked options + marked.setOptions(gfm: true) + # Set the callbacks - @options.success = => + @options.success = => @render() @options.progress = (d) => @showMessage(d) - @options.failure = (d) => + @options.failure = (d) => @onLoadFailure(d) # Create view to handle the header inputs