docusaurus/lib/core/MarkdownBlock.js
Héctor Ramos 09354ab738 [BREAKING] Rename Marked to MarkdownBlock (#162)
* Switch to Remarkable

* Clean up references to custom code blocks

* Remove valdiateDOMNesting warning

* Add syntax highlighting

* Add Reason support

* Breaking change: prismColor to codeColor, remove CompLibrary.Prism, expose hljs

* Completely remove Prism and associated CSS rules

* Support loading plugins and scripts

* Remove CSS rules, allowing Highlight.js theme to be used entirely

* Remove unnecessary webplayer script

* Rename Marked to MarkdownBlock

* Rename Marked to MarkdownBlock

* Remove Marked.js
2017-10-30 15:47:13 -07:00

24 lines
516 B
JavaScript

/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* The MarkdownBlock component is used to parse markdown and render to HTML.
*/
const React = require('react');
const Remarkable = require('./Remarkable');
class MarkdownBlock extends React.Component {
render() {
return (
<Remarkable source={this.props.children} />
);
}
}
module.exports = MarkdownBlock;