40ef43a59b
* deps: mdx github-slugger * feat: add getHeadings via rehype plugin * chore: stray console.log * test: getHeadings w/ & w/0 JSX expressions * docs: add generated exports * refactor: pass headings using vfile.data * deps: vfile * test: heading anchor IDs * docs: add collect-headings to default rehype plugins * chore: changeset * deps: estree-util-value-to-estree * refactor: inject getHeadings export the right way! * deps: switch to acorn * refactor: just use acorn * docs: `getHeadings` info structuring Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * docs: clarify `url` example Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * fix: move slugger inside plugin call * refactor: cleanup code reassignment * chore: lint * deps: mdast-util-mdx, test utils * refactor: add jsToTreeNode util * feat: expose utils for lib authors * test: rehype plugins w/ and w/o extends * test: fixture * refactor: remove utils from package exports Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
67 lines
1.8 KiB
JSON
67 lines
1.8 KiB
JSON
{
|
|
"name": "@astrojs/mdx",
|
|
"description": "Use MDX within Astro",
|
|
"version": "0.4.0",
|
|
"type": "module",
|
|
"types": "./dist/index.d.ts",
|
|
"author": "withastro",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/withastro/astro.git",
|
|
"directory": "packages/integrations/mdx"
|
|
},
|
|
"keywords": [
|
|
"astro-integration",
|
|
"astro-component",
|
|
"renderer",
|
|
"mdx"
|
|
],
|
|
"bugs": "https://github.com/withastro/astro/issues",
|
|
"homepage": "https://docs.astro.build/en/guides/integrations-guide/mdx/",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"scripts": {
|
|
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
|
|
"build:ci": "astro-scripts build \"src/**/*.ts\"",
|
|
"dev": "astro-scripts dev \"src/**/*.ts\"",
|
|
"test": "mocha --exit --timeout 20000"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/prism": "^0.6.1",
|
|
"@mdx-js/mdx": "^2.1.2",
|
|
"@mdx-js/rollup": "^2.1.1",
|
|
"acorn": "^8.8.0",
|
|
"es-module-lexer": "^0.10.5",
|
|
"github-slugger": "^1.4.0",
|
|
"gray-matter": "^4.0.3",
|
|
"mdast-util-mdx": "^2.0.0",
|
|
"prismjs": "^1.28.0",
|
|
"rehype-raw": "^6.1.1",
|
|
"remark-frontmatter": "^4.0.1",
|
|
"remark-gfm": "^3.0.1",
|
|
"remark-mdx-frontmatter": "^2.0.2",
|
|
"remark-shiki-twoslash": "^3.1.0",
|
|
"remark-smartypants": "^2.0.0",
|
|
"shiki": "^0.10.1",
|
|
"unist-util-visit": "^4.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/chai": "^4.3.1",
|
|
"@types/mocha": "^9.1.1",
|
|
"@types/yargs-parser": "^21.0.0",
|
|
"astro": "workspace:*",
|
|
"astro-scripts": "workspace:*",
|
|
"chai": "^4.3.6",
|
|
"linkedom": "^0.14.12",
|
|
"mdast-util-to-string": "^3.1.0",
|
|
"mocha": "^9.2.2",
|
|
"reading-time": "^1.5.0",
|
|
"remark-toc": "^8.0.1"
|
|
},
|
|
"engines": {
|
|
"node": "^14.18.0 || >=16.12.0"
|
|
}
|
|
}
|