Skip to content

Commit

Permalink
Set marked options to render GFM correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen1 committed Feb 25, 2015
1 parent a6a1d8c commit c1f3072
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/coffeescript/SwaggerUi.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1f3072

Please sign in to comment.