remark-rehype
Advanced tools
Comparing version 3.0.1 to 3.0.2
13
index.js
@@ -7,7 +7,5 @@ 'use strict' | ||
/* Attacher. | ||
* If a destination is given, runs the destination with | ||
* the new HAST tree (bridge-mode). | ||
* Without destination, returns the HAST tree: further | ||
* plug-ins run on that tree (mutate-mode). */ | ||
// Attacher. If a destination is given, runs the destination with the new hast | ||
// tree (bridge-mode). Without destination, returns the hast tree: further | ||
// plugins run on that tree (mutate-mode). | ||
function remark2rehype(destination, options) { | ||
@@ -22,4 +20,3 @@ if (destination && !destination.process) { | ||
/* Bridge-mode. Runs the destination with the new HAST | ||
* tree. */ | ||
// Bridge-mode. Runs the destination with the new hast tree. | ||
function bridge(destination, options) { | ||
@@ -37,3 +34,3 @@ return transformer | ||
/* Mutate-mode. Further transformers run on the HAST tree. */ | ||
// Mutate-mode. Further transformers run on the hast tree. | ||
function mutate(options) { | ||
@@ -40,0 +37,0 @@ return transformer |
{ | ||
"name": "remark-rehype", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "rehype support for remark", | ||
@@ -14,5 +14,5 @@ "license": "MIT", | ||
"bugs": "https://github.com/remarkjs/remark-rehype/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)" | ||
], | ||
@@ -27,13 +27,13 @@ "dependencies": { | ||
"browserify": "^16.0.0", | ||
"nyc": "^12.0.0", | ||
"nyc": "^13.0.0", | ||
"prettier": "^1.14.2", | ||
"rehype-stringify": "^4.0.0", | ||
"remark-cli": "^5.0.0", | ||
"remark-parse": "^5.0.0", | ||
"rehype-stringify": "^5.0.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-parse": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
"remark-stringify": "^5.0.0", | ||
"remark-stringify": "^6.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.4.3", | ||
"unified": "^7.0.0", | ||
"xo": "^0.22.0" | ||
"xo": "^0.23.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "scripts": { |
@@ -1,3 +0,10 @@ | ||
# remark-rehype [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
# remark-rehype | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
[![Chat][chat-badge]][chat] | ||
[![Sponsors][sponsors-badge]][collective] | ||
[![Backers][backers-badge]][collective] | ||
Bridge / mutate from [**remark**][remark] to [**rehype**][rehype]. | ||
@@ -117,15 +124,29 @@ | ||
[travis-badge]: https://img.shields.io/travis/remarkjs/remark-rehype.svg | ||
[build-badge]: https://img.shields.io/travis/remarkjs/remark-rehype.svg | ||
[travis]: https://travis-ci.org/remarkjs/remark-rehype | ||
[build]: https://travis-ci.org/remarkjs/remark-rehype | ||
[codecov-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-rehype.svg | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-rehype.svg | ||
[codecov]: https://codecov.io/github/remarkjs/remark-rehype | ||
[coverage]: https://codecov.io/github/remarkjs/remark-rehype | ||
[downloads-badge]: https://img.shields.io/npm/dm/remark-rehype.svg | ||
[downloads]: https://www.npmjs.com/package/remark-rehype | ||
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg | ||
[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 | ||
[npm-install]: https://docs.npmjs.com/cli/install | ||
[license]: LICENSE | ||
[license]: license | ||
[author]: http://wooorm.com | ||
[author]: https://wooorm.com | ||
@@ -132,0 +153,0 @@ [mdast]: https://github.com/syntax-tree/mdast |
8432
173
30