disallow some types to protect layout
This commit is contained in:
parent
bcfda3ffa1
commit
506ff274fb
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ class FilePage extends React.PureComponent {
|
|||
<div className="card__content card__subtext card__subtext card__subtext--allow-newlines">
|
||||
<ReactMarkdown
|
||||
source={(metadata && metadata.description) || ""}
|
||||
escapeHtml={true}
|
||||
disallowedTypes={["Heading", "HtmlInline", "HtmlBlock"]}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue