Skip to content

Conversation

christopherjbaker
Copy link
Contributor

@christopherjbaker christopherjbaker commented Nov 5, 2020

Adds an option special tag to @codepen, like @codepen react, which will allow changes to be made to the codepen object prior to sending it off.

The only special this adds is react, which adds a few script tags to the top of the HTML, to add react to the page. This allows the code snippets in the page to only have the actual JS/JSX code.

fixes #19

var specials = require("./specials");
var languageHTML = /language-(\w+)/;

var assign = Object.assign || function(d, s) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused code

}


function findPre(start) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused code

@cherifGsoul
Copy link
Contributor

LGTM

@christopherjbaker christopherjbaker merged commit 36b97ed into master Nov 6, 2020
@christopherjbaker christopherjbaker deleted the 19-react-wrapper branch November 6, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for react code snippits

2 participants