-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger UI doesn't handle GFM #825
Comments
Did you try the latest master, because #824 was merged a few hours ago. |
No I got the yesterday version. I'll tell you in few minutes |
Try pulling the master and check it again please. |
There is no lib/marked.js on the master branch... |
Right, my bad. Try the develop branch. |
ok, pulled from develop... rebuilt so that the marked.js is available in the dist directory.... But it only strips |
The reset.less file removes a lot of the formatting natively used by markdown. There were already several manual fixes for the .markdown class in the specs.less file, so I didn't add any additional formatting. I can add more if there are specific styles you'd like to have implemented. A good portion of this css file would fix a lot of the problems, I'd just have to wrap most of this under the .markdown class: |
@Vaseltior - for future reference, editing a comment doesn't send a notification, and I was unaware of your input until @bshamblen added his comment. It's normally better to just add a new comment. |
Ok, I'll know that. Strong works, italic does not indeed since the |
I am also on the develop branch and am having some issues with GFM. The only features I have been able to use properly are bold, links, and strikethrough. Swagger-editor shows more features including italics and tables working properly, but using them in my spec is not rendered as it should be on swagger ui, |
@somethingShiny will be looking into this shortly. |
Just some followup/clarification: After messing around, I've found that most features of GFM work fine in the description from the info for the spec. Where it does not work is the description for a method on any path. |
merged into develop_2.0 |
Just wanted to get clarification on exactly which MD syntax is supposedly now supported, as the develop_2.0 branch still seems to lack support for many features which are available in the swagger editor. For example, headers, tables and italics seem don't seem to be working. |
@duncanhall let's get a complete list of places where GFM is not supported, where the spec says it is. If you can list them all here, we can get them all implemented. It'd be very helpful. |
Here's a basic sample spec listing what is supported and where that I've tried. {
"swagger": "2.0",
"info": {
"title": "sampleSpec",
"description": "Working: Bold, links, url-autolinking, strikethrough, tables, lists (unordered), syntax highlighting, multiple underscores within words not being parsed as italics, headings, inline code formatting.
Not working: italics, numbered lists, "
},
"paths": {
"/sample/path": {
"description": "Working: Bold, strikethrough, links, url-autolinking"
}
}
} I know this isn't complete as it doesn't test things like parameter or response descriptions but it's what I've been able to test so far. If I get a chance to test more areas I'll post another comment listing what is supported there. |
Hi, https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#response-object Cheers, |
@rob3c Please open a new issue here for response descriptions |
Swagger Spec 2.0 specify that description fields now accept GFM. But Swagger UI does not format it.
The text was updated successfully, but these errors were encountered: