File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ module.exports = function (content) {
2323 . replace ( / & g t ; / g, '>' )
2424 . replace ( / ( \n ) / g, '{"\\n"}' ) ;
2525
26- exampleSource = codeElement . replace ( / ( \n ) / g, '{"\\n"}' ) ;
26+ exampleSource = codeElement
27+ . replace ( / { / g, '{"{"{' )
28+ . replace ( / } / g, '{"}"}' )
29+ . replace ( / { " { " { / g, '{"{"}' )
30+ . replace ( / c l a s s = / g, 'className=' )
31+ . replace ( / ( \n ) / g, '{"\\n"}' ) ;
2732
2833 return `
2934 <div className="example">
Original file line number Diff line number Diff line change 11{
22 "name" : " react-markdown-loader" ,
3- "version" : " 1.0.8 -alpha" ,
3+ "version" : " 1.0.9 -alpha" ,
44 "description" : " Webpack loader to render React Components from markdown" ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "test" : " ./tests/*.js"
7+ "test" : " ./tests/*.js" ,
8+ "lint" : " eslint ./index.js"
89 },
910 "repository" : {
1011 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments