mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
[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
This commit is contained in:
parent
d26d263bd0
commit
09354ab738
10 changed files with 28 additions and 24 deletions
|
@ -8,7 +8,7 @@
|
|||
const React = require("react");
|
||||
const classNames = require("classnames");
|
||||
|
||||
const Marked = require("./Marked.js");
|
||||
const MarkdownBlock = require("./MarkdownBlock.js");
|
||||
|
||||
class GridBlock extends React.Component {
|
||||
renderBlock(block) {
|
||||
|
@ -38,9 +38,9 @@ class GridBlock extends React.Component {
|
|||
{topLeftImage}
|
||||
<div className="blockContent">
|
||||
{this.renderBlockTitle(block.title)}
|
||||
<Marked>
|
||||
<MarkdownBlock>
|
||||
{block.content}
|
||||
</Marked>
|
||||
</MarkdownBlock>
|
||||
</div>
|
||||
{bottomRightImage}
|
||||
</div>
|
||||
|
@ -73,9 +73,9 @@ class GridBlock extends React.Component {
|
|||
if (title) {
|
||||
return (
|
||||
<h2>
|
||||
<Marked>
|
||||
<MarkdownBlock>
|
||||
{title}
|
||||
</Marked>
|
||||
</MarkdownBlock>
|
||||
</h2>
|
||||
);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue