Add support for GFM syntax in model (schema) descriptions -- relies on one small change to swagger-client

This commit is contained in:
Nara Kasbergen
2015-05-14 15:36:23 -04:00
parent b5039b28b0
commit 37d29df074
8 changed files with 469 additions and 454 deletions

View File

@@ -200,6 +200,10 @@ window.SwaggerUi = Backbone.Router.extend({
$('.markdown').each(function(){
$(this).html(marked($(this).html()));
});
$('.propDesc', '.model-signature .description').each(function () {
$(this).html(marked($(this).html())).addClass('markdown');
});
}
});