Skip to content

Commit

Permalink
Proof of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
chiedo committed Oct 16, 2020
1 parent 4cf3aba commit ca491da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/initialize-react-markdown-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ const renderReact = async mdxCode => {

const element = fn(React, ...Object.values(scope))
const components = {
BlueContent: BlueContent,
h3: undefined
BlueContent: BlueContent
}

const elementWithProvider = React.createElement(
Expand Down
2 changes: 1 addition & 1 deletion lib/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ class Page {
: this.markdown

const markdownWithParsedReact = await renderReact(markdown)
console.log(markdownWithParsedReact)
const html = await renderContent(markdownWithParsedReact, context)
//const html = await renderContent(markdown, context)

// product frontmatter may contain liquid
if (this.product) {
Expand Down
1 change: 0 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const dirTree = require('directory-tree')
const port = Number(process.env.PORT) || 4000
const app = express()


// Build React Components
const transform = code =>
babel.transform(code, {
Expand Down

0 comments on commit ca491da

Please sign in to comment.