UNPKG

rehype-callouts

Version:

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

137 lines (136 loc) 3.53 kB
{ "name": "rehype-callouts", "version": "2.1.2", "description": "Rehype plugin for processing and rendering blockquote-based callouts (admonitions/alerts).", "author": "Stephanie Lin <norwaywoods047@gmail.com>", "license": "MIT", "keywords": [ "rehype-plugin", "obsidian", "callout", "callouts", "alerts", "admonitions", "github", "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" }, "types": "./dist/index.d.ts", "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 --prettier", "lint:fix": "xo --prettier --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.0.0" }, "devDependencies": { "@vitest/coverage-v8": "^3.2.4", "copyfiles": "^2.4.1", "lint-staged": "^15.5.0", "prettier": "^3.6.2", "publint": "^0.3.12", "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.0.1", "simple-git-hooks": "^2.13.0", "to-vfile": "^8.0.0", "type-coverage": "^2.29.1", "typescript": "^5.8.3", "unified": "^11.0.5", "vitest": "^3.2.4", "xo": "^0.60.0" }, "xo": { "space": true, "semicolon": false, "rules": { "complexity": "off", "capitalized-comments": "off", "unicorn/prevent-abbreviations": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/consistent-type-definitions": [ "error", "interface" ], "import/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" } } ] } }, "simple-git-hooks": { "pre-commit": "npx lint-staged" }, "lint-staged": { "*": "xo --prettier" }, "pnpm": { "onlyBuiltDependencies": [ "esbuild", "simple-git-hooks" ] }, "engines": { "node": "^18.0.0 || ^20.0.0 || >=22.0.0" } }