UNPKG

rehype-smart-links

Version:

A rehype plugin for Astro that adds different styling for internal and external links

83 lines 2.36 kB
{ "name": "rehype-smart-links", "type": "module", "version": "0.3.0", "description": "A rehype plugin for Astro that adds different styling for internal and external links", "author": "EveSunMaple", "license": "MIT", "homepage": "https://rehype-smart-links.vercel.app/", "repository": { "type": "git", "url": "https://github.com/EveSunMaple/rehype-smart-links" }, "bugs": "https://github.com/EveSunMaple/rehype-smart-links/issues", "keywords": [ "rehype", "rehype-plugin", "astro", "astro-integration", "links", "external-links", "markdown", "html", "smart-links" ], "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "rehype-smart-links": "dist/cli.js" }, "files": [ "LICENSE", "README.md", "README.zh-CN.md", "dist" ], "engines": { "node": ">=18.0.0" }, "dependencies": { "commander": "^11.1.0" }, "devDependencies": { "@antfu/eslint-config": "^3.16.0", "@types/hast": "^3.0.4", "@types/node": "^18.19.86", "@typescript-eslint/eslint-plugin": "^8.29.0", "@typescript-eslint/parser": "^8.29.0", "@vitest/ui": "3.1.1", "cheerio": "^1.0.0", "eslint": "^9.24.0", "eslint-plugin-astro": "^1.3.1", "eslint-plugin-format": "^1.0.1", "eslint-plugin-import": "^2.31.0", "globals": "^16.0.0", "hast-util-is-element": "^3.0.0", "hastscript": "^9.0.1", "rehype-parse": "^9.0.1", "rehype-remark": "^10.0.1", "rehype-smart-links": "^0.2.0", "rehype-stringify": "^10.0.1", "remark-parse": "^11.0.0", "tsup": "^7.2.0", "typescript": "^5.8.3", "unified": "^11.0.5", "unist-util-visit": "^5.0.0", "vfile": "^6.0.3", "vitest": "^3.1.1" }, "scripts": { "build": "tsup src/index.ts src/cli.ts --format esm --dts", "dev": "tsup src/index.ts src/cli.ts --format esm --dts --watch", "example": "cd example && pnpm dev", "example:build": "cd example && pnpm build", "example:build:with-routes": "cd example && pnpm build:with-routes", "example:build:with-routes:local": "cd example && pnpm build:with-routes:local", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "test": "vitest run", "test:dev": "node tests/serve-report.js", "test:watch": "vitest", "test:ui": "vitest --ui" } }