[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:
Héctor Ramos 2017-10-30 15:47:13 -07:00 committed by Joel Marcey
parent d26d263bd0
commit 09354ab738
10 changed files with 28 additions and 24 deletions

View file

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
const Marked = require("./Marked.js");
const MarkdownBlock = require("./MarkdownBlock.js");
const React = require("react");
// inner blog component for the article itself, without sidebar/header/footer
@ -28,12 +28,12 @@ class BlogPost extends React.Component {
content = content.split("<!--truncate-->")[0];
return (
<article className="post-content">
<Marked>{content}</Marked>
<MarkdownBlock>{content}</MarkdownBlock>
{hasSplit}
</article>
);
}
return <Marked>{content}</Marked>;
return <MarkdownBlock>{content}</MarkdownBlock>;
}
renderAuthorPhoto() {