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

View File

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