remark-vdom
Advanced tools
Comparing version 6.0.0 to 7.0.0
10
index.js
@@ -12,3 +12,3 @@ 'use strict' | ||
/* Attach a VDOM compiler. */ | ||
// Attach a VDOM compiler. | ||
function plugin(options) { | ||
@@ -24,3 +24,3 @@ var settings = options || {} | ||
/* Compile MDAST to VDOM. */ | ||
// Compile mdast to vdom. | ||
function compiler(node) { | ||
@@ -32,3 +32,3 @@ var hast = div(toHAST(node).children) | ||
/* If `div` is removed by sanitation, add it back. */ | ||
// If `div` is removed by sanitation, add it back. | ||
if (hast.type === 'root') { | ||
@@ -42,3 +42,3 @@ hast = div(hast.children) | ||
/* Wrapper around `h` to pass components in. */ | ||
// Wrapper around `h` to pass components in. | ||
function w(name, props, children) { | ||
@@ -50,3 +50,3 @@ var id = name.toLowerCase() | ||
/* Wrap `children` in a HAST div. */ | ||
// Wrap `children` in a HAST div. | ||
function div(children) { | ||
@@ -53,0 +53,0 @@ return { |
{ | ||
"name": "remark-vdom", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Compile Markdown to VDOM with remark", | ||
@@ -19,5 +19,5 @@ "license": "MIT", | ||
"bugs": "https://github.com/remarkjs/remark-vdom/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)" | ||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" | ||
], | ||
@@ -28,5 +28,5 @@ "files": [ | ||
"dependencies": { | ||
"hast-to-hyperscript": "^5.0.0", | ||
"hast-to-hyperscript": "^6.0.0", | ||
"hast-util-sanitize": "^1.0.0", | ||
"mdast-util-to-hast": "^3.0.0", | ||
"mdast-util-to-hast": "^4.0.0", | ||
"virtual-dom": "^2.1.1" | ||
@@ -36,6 +36,6 @@ }, | ||
"browserify": "^16.0.0", | ||
"nyc": "^12.0.0", | ||
"nyc": "^13.0.0", | ||
"prettier": "^1.14.2", | ||
"remark": "^9.0.0", | ||
"remark-cli": "^5.0.0", | ||
"remark": "^10.0.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
@@ -45,3 +45,3 @@ "tape": "^4.0.0", | ||
"vdom-to-html": "^2.2.0", | ||
"xo": "^0.22.0" | ||
"xo": "^0.23.0" | ||
}, | ||
@@ -48,0 +48,0 @@ "scripts": { |
@@ -1,3 +0,10 @@ | ||
# remark-vdom [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status] [![Chat][chat-badge]][chat] | ||
# remark-vdom | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
[![Chat][chat-badge]][chat] | ||
[![Sponsors][sponsors-badge]][collective] | ||
[![Backers][backers-badge]][collective] | ||
Compiles markdown to [Virtual DOM][vdom]. Built on [**remark**][remark], an | ||
@@ -196,16 +203,26 @@ extensively tested and pluggable markdown processor. | ||
[build-status]: https://travis-ci.org/remarkjs/remark-vdom | ||
[build]: https://travis-ci.org/remarkjs/remark-vdom | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-vdom.svg | ||
[coverage-status]: https://codecov.io/github/remarkjs/remark-vdom | ||
[coverage]: https://codecov.io/github/remarkjs/remark-vdom | ||
[chat-badge]: https://img.shields.io/gitter/room/remarkjs/Lobby.svg | ||
[downloads-badge]: https://img.shields.io/npm/dm/remark-vdom.svg | ||
[chat]: https://gitter.im/remarkjs/Lobby | ||
[downloads]: https://www.npmjs.com/package/remark-vdom | ||
[license]: LICENSE | ||
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg | ||
[author]: http://wooorm.com | ||
[chat]: https://spectrum.chat/unified/remark | ||
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg | ||
[backers-badge]: https://opencollective.com/unified/backers/badge.svg | ||
[collective]: https://opencollective.com/unified | ||
[license]: license | ||
[author]: https://wooorm.com | ||
[npm]: https://docs.npmjs.com/cli/install | ||
@@ -212,0 +229,0 @@ |
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
10911
246
+ Addedhast-to-hyperscript@6.0.0(transitive)
+ Addedmdast-util-to-hast@4.0.0(transitive)
+ Addedproperty-information@5.6.0(transitive)
- Removedhast-to-hyperscript@5.0.0(transitive)
- Removedmdast-util-to-hast@3.0.4(transitive)
- Removedproperty-information@4.2.0(transitive)
Updatedhast-to-hyperscript@^6.0.0
Updatedmdast-util-to-hast@^4.0.0