Skip to content

Commit 4acfc11

Browse files
committed
fix: response samples - render description as markdown
fixes #190
1 parent 77bc3c4 commit 4acfc11

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

lib/components/ResponsesSamples/responses-samples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<header *ngIf="data.responses.length"> Response samples </header>
22
<tabs *ngIf="data.responses.length">
3-
<tab *ngFor="let response of data.responses" tabTitle="{{response.code}} {{response.description}}"
3+
<tab *ngFor="let response of data.responses" [tabTitle]="response.code + ' ' + response.description | marked"
44
[tabStatus]="response.type">
55
<schema-sample [pointer]="response.pointer"></schema-sample>
66
</tab>

lib/shared/components/Tabs/tabs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ul>
22
<li *ngFor="let tab of tabs" [ngClass]="{active: tab.active}" (click)="selectTab(tab)"
3-
class="tab-{{tab.tabStatus}}">{{tab.tabTitle}}</li>
3+
class="tab-{{tab.tabStatus}}" [innerHTML]="tab.tabTitle"></li>
44
</ul>
55
<ng-content></ng-content>

lib/shared/components/Tabs/tabs.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ li {
1616
cursor: pointer;
1717
}
1818

19+
li /deep/ .redoc-markdown-block p {
20+
display: inline;
21+
}
22+
1923
.tab-success, .tab-error, .tab-redirect, .tab-info {
2024
&:before {
2125
content: "";

0 commit comments

Comments
 (0)