Ensure markdown style is not applied to other elements

This commit is contained in:
Roman Hotsiy 2016-01-23 12:15:09 +02:00
parent f407d656f1
commit e67ab9c3ea
2 changed files with 6 additions and 2 deletions

View File

@ -94,7 +94,7 @@ footer {
/* markdown elements */
:host {
:host .redoc-markdown-block {
pre {
font-family: Courier, monospace;
white-space: pre-wrap;
@ -106,6 +106,10 @@ footer {
code {
background-color: transparent;
&:before, &:after {
content: none;
}
}
}

View File

@ -62,6 +62,6 @@ export class MarkedPipe {
if (!isString(value)) {
throw new InvalidPipeArgumentException(JsonPointerEscapePipe, value);
}
return marked(value);
return `<span class="redoc-markdown-block">${marked(value)}</span>`;
}
}