UNPKG

rehype-callouts

Version:

Rehype plugin for processing and rendering blockquote-based callouts (admonitions/alerts).

160 lines (159 loc) 4 kB
{ "name": "rehype-callouts", "version": "2.2.0", "description": "Rehype plugin for processing and rendering blockquote-based callouts (admonitions/alerts).", "author": "Stephanie Lin <norwaywoods047@gmail.com>", "license": "MIT", "keywords": [ "rehype-plugin", "callout", "callouts", "alerts", "admonitions", "github", "obsidian", "vitepress", "docusaurus", "unified", "hast" ], "repository": "github:lin-stephanie/rehype-callouts", "homepage": "https://github.com/lin-stephanie/rehype-callouts#readme", "bugs": "https://github.com/lin-stephanie/rehype-callouts/issues", "type": "module", "files": [ "dist" ], "main": "dist/index.js", "module": "dist/index.js", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "default": "./dist/index.js" }, "./theme/github": "./dist/themes/github/index.css", "./theme/obsidian": "./dist/themes/obsidian/index.css", "./theme/vitepress": "./dist/themes/vitepress/index.css", "./theme/docusaurus": "./dist/themes/docusaurus/index.css" }, "types": "./dist/index.d.ts", "sideEffects": [ "**/*.css" ], "scripts": { "test": "vitest && vitest run --coverage", "build": "rimraf dist && tsc", "postbuild": "copyfiles -u 1 'src/**/*.css' dist", "check": "publint", "typecheck": "tsc --noEmit", "typecheck:coverage": "type-coverage --strict --detail --min=100", "lint": "xo", "lint:fix": "xo --fix", "prepare": "simple-git-hooks", "release": "npx bumpp --tag %s --commit 'chore: release %s' --all" }, "dependencies": { "@types/hast": "^3.0.4", "hast-util-from-html": "^2.0.3", "hast-util-is-element": "^3.0.0", "hastscript": "^9.0.1", "unist-util-visit": "^5.1.0" }, "devDependencies": { "@types/node": "^25.9.3", "@vitest/coverage-v8": "^4.1.9", "copyfiles": "^2.4.1", "lint-staged": "^17.0.7", "prettier": "^3.8.4", "publint": "^0.3.21", "rehype-minify-whitespace": "^6.0.2", "rehype-parse": "^9.0.1", "rehype-stringify": "^10.0.1", "remark-parse": "^11.0.0", "remark-rehype": "^11.1.2", "rimraf": "^6.1.3", "simple-git-hooks": "^2.13.1", "to-vfile": "^8.0.0", "type-coverage": "^2.29.1", "typescript": "^5.9.3", "unified": "^11.0.5", "vitest": "^4.1.9", "xo": "^1.2.3" }, "xo": [ { "prettier": true, "space": true, "semicolon": false, "rules": { "complexity": "off", "capitalized-comments": "off", "import-x/order": [ "warn", { "groups": [ "builtin", "external", [ "internal", "parent", "sibling" ], "index", "type", "object", "unknown" ], "pathGroups": [ { "pattern": "{.,..}/types.js", "group": "type", "position": "after" } ], "distinctGroup": false, "newlines-between": "always", "alphabetize": { "order": "asc" } } ] } }, { "files": [ "**/*.{ts,tsx,cts,mts}" ], "languageOptions": { "parserOptions": { "projectService": false, "project": "./tsconfig.eslint.json" } }, "rules": { "@typescript-eslint/no-restricted-types": "off", "@typescript-eslint/consistent-type-definitions": [ "error", "interface" ] } } ], "simple-git-hooks": { "pre-commit": "npx lint-staged" }, "lint-staged": { "*": "xo" }, "pnpm": { "onlyBuiltDependencies": [ "esbuild", "simple-git-hooks", "unrs-resolver" ] }, "engines": { "node": ">=18.0.0" } }