Skip to content

Commit ca491da

Browse files
committed
Proof of concept
1 parent 4cf3aba commit ca491da

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

lib/initialize-react-markdown-engine.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ const renderReact = async mdxCode => {
2727

2828
const element = fn(React, ...Object.values(scope))
2929
const components = {
30-
BlueContent: BlueContent,
31-
h3: undefined
30+
BlueContent: BlueContent
3231
}
3332

3433
const elementWithProvider = React.createElement(

lib/page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ class Page {
126126
: this.markdown
127127

128128
const markdownWithParsedReact = await renderReact(markdown)
129-
console.log(markdownWithParsedReact)
130129
const html = await renderContent(markdownWithParsedReact, context)
130+
//const html = await renderContent(markdown, context)
131131

132132
// product frontmatter may contain liquid
133133
if (this.product) {

server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const dirTree = require('directory-tree')
1212
const port = Number(process.env.PORT) || 4000
1313
const app = express()
1414

15-
1615
// Build React Components
1716
const transform = code =>
1817
babel.transform(code, {

0 commit comments

Comments
 (0)