twskj / pretty-swag

Pretty UI for Swagger spec
MIT License
122 stars 20 forks source link

does not render bullets in the description when passed markdown flag #60

Closed salarkhan closed 5 years ago

salarkhan commented 5 years ago
  //
  // __Possible Errors:__
  //    * 400: PARSE_ERROR
  //    * 500: INTERNAL_SERVER_ERROR
  rpc LocationCreate (CreateLocationRequest) returns (CreateLocationResponse){
    option (google.api.http) = {
      post: "/developers/{developer_id}/accounts/{account_id}/locations"
      body: "*"
    };
  }

results in this:

screen shot 2019-02-01 at 11 15 45 am
twskj commented 5 years ago

Turned out it's a default style for this material CSS that I use. But, you can overwrite it easily by adding your CSS in a configuration file.

config.json

{
    "customCSS": "ul:not(.browser-default) li{list-style-type:circle;margin-left:2em}"
}

and calling pretty-swag like you normally would with -c switch

pretty-swag -i input.json -o output.html -m -c config.json