remark-relative-links
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -15,4 +15,3 @@ const visit = require('unist-util-visit'); | ||
function transform(tree) { | ||
visit(tree, 'link', visitor); | ||
visit(tree, 'linkReference', visitor); | ||
visit(tree, ['link', 'linkReference'], visitor); | ||
} | ||
@@ -19,0 +18,0 @@ |
{ | ||
"name": "remark-relative-links", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Rewrites absolute URLs to relative ones.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,3 +43,3 @@ # remark-relative-links | ||
###### `options.domainRegex` | ||
###### `options.domainRegex` **Required** | ||
@@ -46,0 +46,0 @@ Regex used to decipher what domain to "relative-ize". The example provided should handle most cases. |
3246
14