diff --git a/scm-ui/ui-components/src/markdown/LazyMarkdownView.tsx b/scm-ui/ui-components/src/markdown/LazyMarkdownView.tsx index b26a7c913e..17bf4f54a6 100644 --- a/scm-ui/ui-components/src/markdown/LazyMarkdownView.tsx +++ b/scm-ui/ui-components/src/markdown/LazyMarkdownView.tsx @@ -49,9 +49,11 @@ import merge from "deepmerge"; import { createComponentList } from "./createComponentList"; import { ProtocolLinkRendererExtension, ProtocolLinkRendererExtensionMap } from "./markdownExtensions"; import styled from "styled-components"; +import classNames from "classnames"; export type MarkdownProps = { content: string; + className?: string; renderContext?: object; renderers?: any; skipHtml?: boolean; @@ -156,6 +158,7 @@ class LazyMarkdownView extends React.Component { basePath, permalink, t, + className, mdastPlugins = [], } = this.props; @@ -233,7 +236,10 @@ class LazyMarkdownView extends React.Component { return ( - this.setState({ contentRef: el })} className="content"> + this.setState({ contentRef: el })} + className={classNames("content", className)} + > {renderedMarkdown}