diff --git a/lib/components/Redoc/redoc.scss b/lib/components/Redoc/redoc.scss index f0eec94c..549c77df 100644 --- a/lib/components/Redoc/redoc.scss +++ b/lib/components/Redoc/redoc.scss @@ -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; + } } } diff --git a/lib/utils/pipes.js b/lib/utils/pipes.js index 5e8ea343..664f70c7 100644 --- a/lib/utils/pipes.js +++ b/lib/utils/pipes.js @@ -62,6 +62,6 @@ export class MarkedPipe { if (!isString(value)) { throw new InvalidPipeArgumentException(JsonPointerEscapePipe, value); } - return marked(value); + return `${marked(value)}`; } }