Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-markdown

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-markdown - npm Package Compare versions

Comparing version 1.0.3 to 1.0.5

CHANGELOG.md

4

demo/dist/js/codemirror.js

@@ -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&nbsp;
<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&nbsp;
<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&nbsp;
<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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc