react-markdown
Advanced tools
Comparing version 1.0.3 to 1.0.5
@@ -44,3 +44,3 @@ // auto-generated from index.js via build.js, do not edit directly | ||
if (!isTextArea) { | ||
this.editor = CodeMirror.fromTextArea(this.refs.editor.getDOMNode(), this.props); | ||
this.editor = CodeMirror.fromTextArea(this.refs.editor, this.props); | ||
this.editor.on('change', this.handleChange); | ||
@@ -98,2 +98,2 @@ } | ||
else throw new Error("Unexpected require of " + id); | ||
}, {exports: {}})); | ||
}, {exports: {}})); |
'use strict'; | ||
var React = require('react'); | ||
var ReactDOM = require('react-dom'); | ||
var Editor = require('./editor'); | ||
@@ -45,5 +46,3 @@ var MarkdownControls = require('./markdown-controls'); | ||
for (var i = 0; i < els.length; i++) { | ||
if (!els[i].classList.contains('hljs')) { | ||
window.hljs.highlightBlock(els[i]); | ||
} | ||
window.hljs.highlightBlock(els[i]); | ||
} | ||
@@ -93,3 +92,3 @@ }, | ||
if (typeof window !== 'undefined') { | ||
React.render(<Demo />, document.getElementById('main')); | ||
ReactDOM.render(<Demo />, document.getElementById('main')); | ||
} |
@@ -35,11 +35,35 @@ 'use strict'; | ||
<label htmlFor="raw-html" className="pure-checkbox"> | ||
Raw <input id="raw-html" name="html-mode" type="radio" value="raw" checked={rawChecked} onChange={this.onChange} /> | ||
Raw | ||
<input | ||
id="raw-html" | ||
name="html-mode" | ||
type="radio" | ||
value="raw" | ||
checked={rawChecked} | ||
onChange={this.onChange} | ||
/> | ||
</label> | ||
<label htmlFor="escape-html" className="pure-checkbox"> | ||
Escape <input id="escape-html" name="html-mode" type="radio" value="escape" checked={escapeChecked} onChange={this.onChange} /> | ||
Escape | ||
<input | ||
id="escape-html" | ||
name="html-mode" | ||
type="radio" | ||
value="escape" | ||
checked={escapeChecked} | ||
onChange={this.onChange} | ||
/> | ||
</label> | ||
<label htmlFor="skip-html" className="pure-checkbox"> | ||
Skip <input id="skip-html" name="html-mode" type="radio" value="skip" checked={skipChecked} onChange={this.onChange} /> | ||
Skip | ||
<input | ||
id="skip-html" | ||
name="html-mode" | ||
type="radio" | ||
value="skip" | ||
checked={skipChecked} | ||
onChange={this.onChange} | ||
/> | ||
</label> | ||
@@ -46,0 +70,0 @@ </fieldset> |
{ | ||
"name": "react-markdown", | ||
"description": "Renders Markdown as React components", | ||
"version": "1.0.3", | ||
"version": "1.0.5", | ||
"keywords": [ | ||
"react-component", | ||
"commonmark", | ||
"markdown", | ||
"react", | ||
"markdown", | ||
"commonmark" | ||
"react-component" | ||
], | ||
"main": "src/react-markdown.js", | ||
"scripts": { | ||
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec", | ||
"build": "NODE_ENV=production webpack", | ||
"coverage": "istanbul cover node_modules/.bin/_mocha -- --reporter spec", | ||
"pretest": "npm run lint", | ||
"deploy": "gh-pages-deploy", | ||
"lint": "eslint .", | ||
"prepublish": "npm prune && npm test && npm run build", | ||
"build": "NODE_ENV=production webpack", | ||
"watch": "webpack --watch", | ||
"pretest": "npm run lint", | ||
"test": "mocha --reporter spec", | ||
"deploy": "gh-pages-deploy" | ||
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec", | ||
"watch": "webpack --watch" | ||
}, | ||
@@ -32,12 +32,15 @@ "repository": { | ||
"babel-loader": "^5.1.2", | ||
"chai": "^2.3.0", | ||
"eslint": "^0.21.2", | ||
"eslint-config-vaffel": "^1.0.0", | ||
"eslint-plugin-react": "^2.3.0", | ||
"chai": "^3.4.0", | ||
"eslint": "^1.7.3", | ||
"eslint-config-vaffel": "^3.0.0", | ||
"eslint-plugin-react": "^3.6.3", | ||
"gh-pages-deploy": "^0.3.0", | ||
"istanbul": "^0.3.14", | ||
"jsdom": "^3.1.2", | ||
"istanbul": "^0.4.0", | ||
"jsdom": "^7.0.1", | ||
"mocha": "^2.2.5", | ||
"mocha-jsdom": "^0.3.0", | ||
"mocha-jsdom": "^1.0.0", | ||
"node-libs-browser": "^0.5.0", | ||
"react": "^0.14.0", | ||
"react-addons-test-utils": "^0.14.0", | ||
"react-dom": "^0.14.0", | ||
"react-textarea-autosize": "^2.2.1", | ||
@@ -47,13 +50,15 @@ "webpack": "^1.9.7" | ||
"gh-pages-deploy": { | ||
"staticpath": "demo/dist", | ||
"noprompt": true, | ||
"prep": [ | ||
"build" | ||
], | ||
"noprompt": true | ||
"staticpath": "demo/dist" | ||
}, | ||
"dependencies": { | ||
"commonmark": "^0.19.0", | ||
"commonmark-react-renderer": "^1.0.2", | ||
"react": "^0.13.3" | ||
"commonmark-react-renderer": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=0.13.3" | ||
} | ||
} |
@@ -19,2 +19,3 @@ # react-markdown | ||
var React = require('react'); | ||
var ReactDOM = require('react-dom'); | ||
var ReactMarkdown = require('react-markdown'); | ||
@@ -24,3 +25,3 @@ | ||
React.render( | ||
ReactDOM.render( | ||
<ReactMarkdown source={input} />, | ||
@@ -53,1 +54,5 @@ document.getElementById('container') | ||
``` | ||
## License | ||
MIT-licensed. See LICENSE. |
@@ -21,3 +21,4 @@ 'use strict'; | ||
externals: { | ||
react: 'React' | ||
'react': 'React', | ||
'react-dom': 'ReactDOM' | ||
}, | ||
@@ -24,0 +25,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
102317
14
662
56
0
17
+ Addedcommonmark-react-renderer@2.2.2(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedreact@18.3.1(transitive)
- Removedreact@^0.13.3
- Removedacorn@5.7.4(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedast-types@0.9.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase62@1.2.8(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedcommonmark-react-renderer@1.0.2(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedenvify@3.4.1(transitive)
- Removedesprima@3.1.3(transitive)
- Removedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
- Removedglob@5.0.15(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjstransform@11.0.3(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedobject-assign@2.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprivate@0.1.8(transitive)
- Removedq@1.5.1(transitive)
- Removedreact@0.13.3(transitive)
- Removedrecast@0.11.23(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsource-map@0.4.40.5.7(transitive)
- Removedthrough@2.3.8(transitive)
- Removedwrappy@1.0.2(transitive)