disallow some types to protect layout

This commit is contained in:
Le Long 2017-06-16 01:31:02 +02:00
parent bcfda3ffa1
commit 506ff274fb

View file

@ -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>