Add a Markdown component and a SyntaxHighlighter

This commit is contained in:
Mohamed Karray
2019-03-12 18:46:44 +01:00
parent 856f564c8d
commit 6cd29091d5
8 changed files with 81 additions and 4294 deletions

View File

@@ -1,20 +0,0 @@
//@flow
import React from "react";
type Props = {
content: string
};
class MarkdownView extends React.Component<Props> {
render() {
const {content } = this.props;
return (
<div>
{content}
</div>
);
}
}
export default MarkdownView;

View File

@@ -11,5 +11,4 @@ export { default as Textarea } from "./Textarea.js";
export { default as PasswordConfirmation } from "./PasswordConfirmation.js";
export { default as LabelWithHelpIcon } from "./LabelWithHelpIcon.js";
export { default as DropDown } from "./DropDown.js";
export { default as MarkdownView } from "./MarkdownView.js";