UNPKG

gatsby-remark-relative-images

Version:

Convert image src(s) in markdown to be relative to their node's parent directory. This will help gatsby-remark-images match images outside the node folder. For example, use with NetlifyCMS.

55 lines (54 loc) 1.56 kB
{ "name": "gatsby-remark-relative-images", "version": "2.0.5", "description": "Convert image src(s) in markdown to be relative to their node's parent directory. This will help gatsby-remark-images match images outside the node folder. For example, use with NetlifyCMS.", "main": "dist/index.js", "files": [ "dist", "*.js" ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "npm run clean && tsc -d", "watch": "npm run clean && tsc --watch", "clean": "rimraf ./dist", "prepare": "npm run build" }, "keywords": [ "gatsby", "gatsby-plugin", "image", "markdown", "relative", "netlifycms", "remark", "responsive images" ], "author": "Daniel Mahon <daniel@mahonstudios.com>", "license": "0BSD", "dependencies": { "cheerio": "^1.0.0-rc.12", "is-invalid-path": "^1.0.2", "lodash": "^4.17.21", "traverse": "^0.6.6", "unist-util-select": "^3.0.4" }, "devDependencies": { "@types/cheerio": "^0.22.21", "@types/lodash": "^4.14.160", "@types/node": "^14.6.0", "@types/slash": "^3.0.0", "@types/traverse": "^0.6.32", "@types/unist": "^2.0.3", "rimraf": "^3.0.2", "typescript": "^4.0.2" }, "repository": { "type": "git", "url": "git+https://github.com/danielmahon/gatsby-remark-relative-images.git" }, "bugs": { "url": "https://github.com/danielmahon/gatsby-remark-relative-images/issues" }, "homepage": "https://github.com/danielmahon/gatsby-remark-relative-images#readme" }