Skip to content

Commit

Permalink
fix: response samples - render description as markdown
Browse files Browse the repository at this point in the history
fixes #190
  • Loading branch information
RomanHotsiy committed Feb 14, 2017
1 parent 77bc3c4 commit 4acfc11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/components/ResponsesSamples/responses-samples.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<header *ngIf="data.responses.length"> Response samples </header>
<tabs *ngIf="data.responses.length">
<tab *ngFor="let response of data.responses" tabTitle="{{response.code}} {{response.description}}"
<tab *ngFor="let response of data.responses" [tabTitle]="response.code + ' ' + response.description | marked"
[tabStatus]="response.type">
<schema-sample [pointer]="response.pointer"></schema-sample>
</tab>
Expand Down
2 changes: 1 addition & 1 deletion lib/shared/components/Tabs/tabs.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ul>
<li *ngFor="let tab of tabs" [ngClass]="{active: tab.active}" (click)="selectTab(tab)"
class="tab-{{tab.tabStatus}}">{{tab.tabTitle}}</li>
class="tab-{{tab.tabStatus}}" [innerHTML]="tab.tabTitle"></li>
</ul>
<ng-content></ng-content>
4 changes: 4 additions & 0 deletions lib/shared/components/Tabs/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ li {
cursor: pointer;
}

li /deep/ .redoc-markdown-block p {
display: inline;
}

.tab-success, .tab-error, .tab-redirect, .tab-info {
&:before {
content: "";
Expand Down

0 comments on commit 4acfc11

Please sign in to comment.