Skip to content

Commit 0e6046a

Browse files
committed
Merge pull request #159 from mulesoft/bugs/fix-markdown-table-rendering
Fix rendering tables when using Markdown
2 parents 1a12513 + fe1e18a commit 0e6046a

File tree

10 files changed

+751
-32
lines changed

10 files changed

+751
-32
lines changed

dist/scripts/api-console.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5140,14 +5140,14 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
51405140
" <div id=\"request-documentation\" class=\"raml-console-resource-panel-primary-row raml-console-resource-panel-content raml-console-is-active\" ng-class=\"{'raml-console-is-active':showRequestDocumentation}\">\n" +
51415141
" <h3 class=\"raml-console-resource-heading-a\">Description</h3>\n" +
51425142
"\n" +
5143-
" <p marked=\"methodInfo.description\" opts=\"markedOptions\"></p>\n" +
5143+
" <p marked=\"methodInfo.description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
51445144
"\n" +
51455145
" <section class=\"raml-console-resource-section\" id=\"docs-uri-parameters\" ng-if=\"resource.uriParametersForDocumentation\">\n" +
51465146
" <h3 class=\"raml-console-resource-heading-a\">URI Parameters</h3>\n" +
51475147
"\n" +
51485148
" <div class=\"raml-console-resource-param\" id=\"docs-uri-parameters-{{uriParam[0].displayName}}\" ng-repeat=\"uriParam in resource.uriParametersForDocumentation\">\n" +
51495149
" <h4 class=\"raml-console-resource-param-heading\">{{uriParam[0].displayName}}<span class=\"raml-console-resource-param-instructional\">{{parameterDocumentation(uriParam[0])}}</span></h4>\n" +
5150-
" <p marked=\"uriParam[0].description\" opts=\"markedOptions\"></p>\n" +
5150+
" <p marked=\"uriParam[0].description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
51515151
"\n" +
51525152
" <p ng-if=\"uriParam[0].example\">\n" +
51535153
" <span class=\"raml-console-resource-param-example\"><b>Example:</b> {{uriParam[0].example}}</span>\n" +
@@ -5161,7 +5161,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
51615161
" <div class=\"raml-console-resource-param\" ng-repeat=\"header in methodInfo.headers.plain\" ng-if=\"!header[0].isFromSecurityScheme\">\n" +
51625162
" <h4 class=\"raml-console-resource-param-heading\">{{header[0].displayName}}<span class=\"raml-console-resource-param-instructional\">{{parameterDocumentation(header[0])}}</span></h4>\n" +
51635163
"\n" +
5164-
" <p marked=\"header[0].description\" opts=\"markedOptions\"></p>\n" +
5164+
" <p marked=\"header[0].description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
51655165
"\n" +
51665166
" <p ng-if=\"header[0].example\">\n" +
51675167
" <span class=\"raml-console-resource-param-example\"><b>Example:</b> {{header[0].example}}</span>\n" +
@@ -5175,7 +5175,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
51755175
" <div class=\"raml-console-resource-param\" ng-repeat=\"queryParam in methodInfo.queryParameters\" ng-if=\"!queryParam[0].isFromSecurityScheme\">\n" +
51765176
" <h4 class=\"raml-console-resource-param-heading\">{{queryParam[0].displayName}}<span class=\"raml-console-resource-param-instructional\">{{parameterDocumentation(queryParam[0])}}</span></h4>\n" +
51775177
"\n" +
5178-
" <p marked=\"queryParam[0].description\" opts=\"markedOptions\"></p>\n" +
5178+
" <p marked=\"queryParam[0].description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
51795179
"\n" +
51805180
" <p ng-if=\"queryParam[0].example\">\n" +
51815181
" <span class=\"raml-console-resource-param-example\"><b>Example:</b> {{queryParam[0].example}}</span>\n" +
@@ -5189,15 +5189,15 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
51895189
" <li class=\"raml-console-documentation-scheme\" ng-class=\"{'raml-console-is-active':isSchemeSelected(value)}\" ng-click=\"selectDocumentationScheme(value)\" ng-repeat=\"(key, value) in securitySchemes\">{{value.name}}</li>\n" +
51905190
" </ol>\n" +
51915191
"\n" +
5192-
" <p ng-if\"documentationSchemeSelected.description\" marked=\"documentationSchemeSelected.description\" opts=\"markedOptions\"></p>\n" +
5192+
" <p ng-if\"documentationSchemeSelected.description\" marked=\"documentationSchemeSelected.description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
51935193
"\n" +
51945194
" <section class=\"raml-console-resource-section raml-console-scheme-headers\" ng-if=\"documentationSchemeSelected.describedBy.headers\">\n" +
51955195
" <h4 class=\"raml-console-resource-heading-a\">Headers</h4>\n" +
51965196
"\n" +
51975197
" <div class=\"raml-console-resource-param\" ng-repeat=\"(key, header) in documentationSchemeSelected.describedBy.headers\">\n" +
51985198
" <h4 class=\"raml-console-resource-param-heading\">{{key}}<span class=\"raml-console-resource-param-instructional\">{{parameterDocumentation(header)}}</span></h4>\n" +
51995199
"\n" +
5200-
" <p marked=\"header.description\" opts=\"markedOptions\"></p>\n" +
5200+
" <p marked=\"header.description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
52015201
"\n" +
52025202
" <p ng-if=\"header.example\">\n" +
52035203
" <span class=\"raml-console-resource-param-example\"><b>Example:</b> {{header.example}}</span>\n" +
@@ -5211,7 +5211,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
52115211
" <div class=\"raml-console-resource-param\" ng-repeat=\"(key, queryParameter) in documentationSchemeSelected.describedBy.queryParameters\">\n" +
52125212
" <h4 class=\"raml-console-resource-param-heading\">{{key}}<span class=\"raml-console-resource-param-instructional\">{{parameterDocumentation(queryParameter)}}</span></h4>\n" +
52135213
"\n" +
5214-
" <p marked=\"queryParameter.description\" opts=\"markedOptions\"></p>\n" +
5214+
" <p marked=\"queryParameter.description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
52155215
"\n" +
52165216
" <p ng-if=\"queryParameter.example\">\n" +
52175217
" <span class=\"raml-console-resource-param-example\"><b>Example:</b> {{queryParameter.example}}</span>\n" +
@@ -5224,7 +5224,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
52245224
"\n" +
52255225
" <div class=\"raml-console-resource-param\" ng-repeat=\"(code, info) in documentationSchemeSelected.describedBy.responses\">\n" +
52265226
" <h4 class=\"raml-console-resource-param-heading\">{{code}}</h4>\n" +
5227-
" <p marked=\"info.description\" opts=\"markedOptions\"></p>\n" +
5227+
" <p marked=\"info.description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
52285228
" </div>\n" +
52295229
" </section>\n" +
52305230
"\n" +
@@ -5252,7 +5252,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
52525252
" <div class=\"raml-console-resource-param\" ng-repeat=\"formParam in methodInfo.body[currentBodySelected].formParameters\">\n" +
52535253
" <h4 class=\"raml-console-resource-param-heading\">{{formParam[0].displayName}}<span class=\"raml-console-resource-param-instructional\">{{parameterDocumentation(formParam[0])}}</span></h4>\n" +
52545254
"\n" +
5255-
" <p marked=\"formParam[0].description\" opts=\"markedOptions\"></p>\n" +
5255+
" <p marked=\"formParam[0].description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
52565256
"\n" +
52575257
" <p ng-if=\"formParam[0].example\">\n" +
52585258
" <span class=\"raml-console-resource-param-example\"><b>Example:</b> {{formParam[0].example}}</span>\n" +
@@ -5294,7 +5294,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
52945294
" <h3 class=\"raml-console-resource-heading-a\">Status {{code}}</h3>\n" +
52955295
"\n" +
52965296
" <div class=\"raml-console-resource-response\">\n" +
5297-
" <p marked=\"methodInfo.responses[code].description\" opts=\"markedOptions\"></p>\n" +
5297+
" <p marked=\"methodInfo.responses[code].description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
52985298
" </div>\n" +
52995299
"\n" +
53005300
" <div class=\"raml-console-resource-response\" ng-if=\"methodInfo.responses[code].headers\">\n" +
@@ -5303,7 +5303,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
53035303
" <div class=\"raml-console-resource-param\" ng-repeat=\"header in methodInfo.responses[code].headers\">\n" +
53045304
" <h4 class=\"raml-console-resource-param-heading\">{{header[0].displayName}} <span class=\"raml-console-resource-param-instructional\">{{header[0].type}}</span></h4>\n" +
53055305
"\n" +
5306-
" <p marked=\"header[0].description\" opts=\"markedOptions\"></p>\n" +
5306+
" <p marked=\"header[0].description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></p>\n" +
53075307
" </div>\n" +
53085308
" </div>\n" +
53095309
"\n" +
@@ -5369,7 +5369,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
53695369
" <span class=\"raml-console-sidebar-input-tooltip-container\" ng-if=\"param.definitions[0].description\">\n" +
53705370
" <button tabindex=\"-1\" class=\"raml-console-sidebar-input-tooltip\"><span class=\"raml-console-visuallyhidden\">Show documentation</span></button>\n" +
53715371
" <span class=\"raml-console-sidebar-tooltip-flyout\">\n" +
5372-
" <span marked=\"param.definitions[0].description\" opts=\"markedOptions\"></span>\n" +
5372+
" <span marked=\"param.definitions[0].description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></span>\n" +
53735373
" </span>\n" +
53745374
" </span>\n" +
53755375
"\n" +
@@ -5555,7 +5555,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
55555555
"\n" +
55565556
" <div class=\"raml-console-resource-panel raml-console-documentation-content\" ng-if=\"documentationEnabled\">\n" +
55575557
" <div class=\"raml-console-resource-panel-wrapper\">\n" +
5558-
" <div class=\"raml-console-documentation-section-content\" marked=\"getDocumentationContent(doc.content, selectedDocumentSection)\" opts=\"markedOptions\"></div>\n" +
5558+
" <div class=\"raml-console-documentation-section-content raml-console-marked-content\" marked=\"getDocumentationContent(doc.content, selectedDocumentSection)\" opts=\"markedOptions\"></div>\n" +
55595559
" </div>\n" +
55605560
" </div>\n" +
55615561
"\n" +
@@ -5662,7 +5662,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
56625662
" <span class=\"raml-console-sidebar-input-tooltip-container\" ng-if=\"param.definitions[0].description\">\n" +
56635663
" <button tabindex=\"-1\" class=\"raml-console-sidebar-input-tooltip\"><span class=\"raml-console-visuallyhidden\">Show documentation</span></button>\n" +
56645664
" <span class=\"raml-console-sidebar-tooltip-flyout\">\n" +
5665-
" <span marked=\"param.definitions[0].description\" opts=\"markedOptions\"></span>\n" +
5665+
" <span marked=\"param.definitions[0].description\" opts=\"markedOptions\" class=\"raml-console-marked-content\"></span>\n" +
56665666
" </span>\n" +
56675667
" </span>\n" +
56685668
"\n" +
@@ -5844,7 +5844,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
58445844
"\n" +
58455845
" <span ng-hide=\"methodInfo.is\" ng-if=\"resource.traits\" class=\"raml-console-flag raml-console-resource-heading-flag\"><b>Traits:</b> {{readResourceTraits(resource.traits)}}</span>\n" +
58465846
"\n" +
5847-
" <span class=\"raml-console-resource-level-description\" marked=\"resource.description\" opts=\"markedOptions\"></span>\n" +
5847+
" <span class=\"raml-console-resource-level-description raml-console-marked-content\" marked=\"resource.description\" opts=\"markedOptions\"></span>\n" +
58485848
"\n" +
58495849
" </div>\n" +
58505850
" <method-list></method-list>\n" +
@@ -5868,7 +5868,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
58685868
"\n" +
58695869
" <span ng-hide=\"methodInfo.is\" ng-if=\"resource.traits\" class=\"raml-console-flag raml-console-resource-heading-flag\"><b>Traits:</b> {{readResourceTraits(resource.traits)}}</span>\n" +
58705870
"\n" +
5871-
" <span class=\"raml-console-resource-level-description\" marked=\"resource.description\" opts=\"markedOptions\"></span>\n" +
5871+
" <span class=\"raml-console-resource-level-description raml-console-marked-content\" marked=\"resource.description\" opts=\"markedOptions\"></span>\n" +
58725872
" </div>\n" +
58735873
"\n" +
58745874
" <method-list></method-list>\n" +

0 commit comments

Comments
 (0)