1
1
mirror of https://github.com/mdx-js/mdx.git synced 2024-10-03 19:07:42 +03:00

Miscellaneous cleaning tasks (#1721)

This commit is contained in:
Titus 2021-10-07 08:55:27 +02:00 committed by GitHub
parent bc0a841e32
commit fcdd6debce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 94 additions and 296 deletions

3
.gitignore vendored
View File

@ -1,4 +1,3 @@
.parcel-cache/
.DS_Store
coverage/
node_modules/
@ -20,4 +19,4 @@ node_modules/
/packages/vue/lib/**/*.d.ts
/packages/vue/test/**/*.d.ts
/packages/vue/index.d.ts
/public
/public/

View File

@ -1 +0,0 @@
packages/remark-mdx/test/fixtures/

View File

@ -1,2 +1 @@
examples
node_modules
node_modules/

View File

@ -46,7 +46,7 @@ Heres a YouTube shortcode wrapped in TomatoBox:
Thats it.
🎉 🚀
[Try it on CodeSandbox](https://codesandbox.io/s/github/mdx-js/mdx/tree/master/examples/shortcodes)
[Try it on CodeSandbox](https://github.com/mdx-js/mdx/tree/9a0fe3a/examples/shortcodes)
***

View File

@ -157,7 +157,7 @@ Were delighted that **we now have an alpha version for Vue working**.
Wed love it if anyone from the Vue community wants to give it a try and provide
feedback.
[See the Vue example](https://github.com/mdx-js/mdx/tree/master/examples/vue)
[See the Vue example](https://github.com/mdx-js/mdx/tree/36cb41b/examples/vue)
### Blocks project

View File

@ -98,7 +98,7 @@ To release a new version, do:
* [Using pull requests](https://help.github.com/articles/about-pull-requests/)
* [GitHub help](https://help.github.com)
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[unit-test]: https://twitter.com/sindresorhus/status/579306280495357953

View File

@ -33,7 +33,7 @@ Here are some tips:
or a video
* The more time you put into asking your question, the better we can help you
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[rubberduck]: https://rubberduckdebugging.com

View File

@ -140,7 +140,7 @@ All our APIs are fully typed with
To enable types for imported `.mdx`, `.md`, etcetera files, first make sure
the TypeScript `JSX` namespace is typed (such as by importing the `react`
types if youre using that) and then install and use
[`@types/mdx`](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mdx).
[`@types/mdx`](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mdx).
<details>
<summary>Show example of types in JavaScript</summary>
@ -531,7 +531,7 @@ on how to use MDX with Razzle.
#### React Static
[React Static](https://www.gatsbyjs.com) has their own plugin to support MDX.
See [`react-static-plugin-mdx`](https://github.com/react-static/react-static/tree/master/packages/react-static-plugin-mdx)
See [`react-static-plugin-mdx`](https://github.com/react-static/react-static/tree/HEAD/packages/react-static-plugin-mdx)
on how to use MDX with React Static.
### JSX runtimes

View File

@ -1,204 +0,0 @@
export const navExclude = true
{/* To do: remove */}
Paragraph lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
# Markdown
## h2
### h3
#### h4
##### h5
###### h6
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
## Code
{/* lint disable fenced-code-flag */}
```
code w/o flag
```
```js
console.log('js')
```
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
## Thematic break
Thematic break:
***
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
## HTML (MDX)
<div style={{backgroundColor: 'tomato', padding: '1px calc(1ex + 1em)', color: '#fff'}}>
HTML (or well, for us, MDX)
</div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
## List
* List
* Items
1. List
2. Items
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
4. List
5. Items
6. * Item
* Other Item
* More list
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
## Block quote
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
> tempor incididunt ut labore et dolore magna aliqua.
> Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
> aliquip ex ea commodo consequat.
> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
> eu fugiat nulla pariatur.
> Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
> deserunt mollit anim id est laborum.
>
> ```js
> console.log('code')
> ```
>
> * List item
>
> > Another quote.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
## Phrasing
A `code` span.
Some *emphasis*, **strong**, and ***both***.
A [link](https://example.com).
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
## GFM
| |
| - |
| a | b | c | d |
| - | :- | -: | :-: |
| e | f | g | h |
| i | j | k | l |
| m | n | o | p |
| q | r | s | t |
* [x] checked
* [ ] unchecked
~~strikethrough~~.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
## Other
A keyboard: <kbd>cmd+f</kbd>.
A <button>button</button>.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.

137
package-lock.json generated
View File

@ -75,6 +75,7 @@
"rehype-minify-url": "^4.0.0",
"rehype-parse": "^8.0.0",
"rehype-preset-minify": "^6.0.0",
"rehype-raw": "^6.1.0",
"rehype-remove-comments": "^5.0.0",
"rehype-sanitize": "^5.0.0",
"rehype-shift-heading": "^1.0.0",
@ -112,9 +113,9 @@
}
},
"node_modules/@babel/code-frame": {
"version": "7.14.5",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz",
"integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.15.8.tgz",
"integrity": "sha512-2IAnmn8zbvC/jKYhq5Ki9I+DwjlrtMPUCH/CpHvqI4dNnlwHwsxoIhlc8WcYY5LSYknXQtAlFYuHfqAFCvQ4Wg==",
"dev": true,
"dependencies": {
"@babel/highlight": "^7.14.5"
@ -133,20 +134,20 @@
}
},
"node_modules/@babel/core": {
"version": "7.15.5",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.5.tgz",
"integrity": "sha512-pYgXxiwAgQpgM1bNkZsDEq85f0ggXMA5L7c+o3tskGMh2BunCI9QUwB9Z4jpvXUOuMdyGKiGKQiRe11VS6Jzvg==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.8.tgz",
"integrity": "sha512-3UG9dsxvYBMYwRv+gS41WKHno4K60/9GPy1CJaH6xy3Elq8CTtvtjT5R5jmNhXfCYLX2mTw+7/aq5ak/gOE0og==",
"dev": true,
"dependencies": {
"@babel/code-frame": "^7.14.5",
"@babel/generator": "^7.15.4",
"@babel/code-frame": "^7.15.8",
"@babel/generator": "^7.15.8",
"@babel/helper-compilation-targets": "^7.15.4",
"@babel/helper-module-transforms": "^7.15.4",
"@babel/helper-module-transforms": "^7.15.8",
"@babel/helpers": "^7.15.4",
"@babel/parser": "^7.15.5",
"@babel/parser": "^7.15.8",
"@babel/template": "^7.15.4",
"@babel/traverse": "^7.15.4",
"@babel/types": "^7.15.4",
"@babel/types": "^7.15.6",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
@ -172,9 +173,9 @@
}
},
"node_modules/@babel/eslint-parser": {
"version": "7.15.7",
"resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.15.7.tgz",
"integrity": "sha512-yJkHyomClm6A2Xzb8pdAo4HzYMSXFn1O5zrCYvbFP0yQFvHueLedV8WiEno8yJOKStjUXzBZzJFeWQ7b3YMsqQ==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.15.8.tgz",
"integrity": "sha512-fYP7QFngCvgxjUuw8O057SVH5jCXsbFFOoE77CFDcvzwBVgTOkMD/L4mIC5Ud1xf8chK/no2fRbSSn1wvNmKuQ==",
"dev": true,
"dependencies": {
"eslint-scope": "^5.1.1",
@ -221,12 +222,12 @@
}
},
"node_modules/@babel/generator": {
"version": "7.15.4",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.4.tgz",
"integrity": "sha512-d3itta0tu+UayjEORPNz6e1T3FtvWlP5N4V5M+lhp/CxT4oAA7/NcScnpRyspUMLK6tu9MNHmQHxRykuN2R7hw==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.8.tgz",
"integrity": "sha512-ECmAKstXbp1cvpTTZciZCgfOt6iN64lR0d+euv3UZisU5awfRawOvg07Utn/qBGuH4bRIEZKrA/4LzZyXhZr8g==",
"dev": true,
"dependencies": {
"@babel/types": "^7.15.4",
"@babel/types": "^7.15.6",
"jsesc": "^2.5.1",
"source-map": "^0.5.0"
},
@ -336,9 +337,9 @@
}
},
"node_modules/@babel/helper-module-transforms": {
"version": "7.15.7",
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.7.tgz",
"integrity": "sha512-ZNqjjQG/AuFfekFTY+7nY4RgBSklgTu970c7Rj3m/JOhIu5KPBUuTA9AY6zaKcUvk4g6EbDXdBnhi35FAssdSw==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.8.tgz",
"integrity": "sha512-DfAfA6PfpG8t4S6npwzLvTUpp0sS7JrcuaMiy1Y5645laRJIp/LiLGIBbQKaXSInK8tiGNI7FL7L8UvB8gdUZg==",
"dev": true,
"dependencies": {
"@babel/helper-module-imports": "^7.15.4",
@ -461,9 +462,9 @@
}
},
"node_modules/@babel/parser": {
"version": "7.15.7",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.7.tgz",
"integrity": "sha512-rycZXvQ+xS9QyIcJ9HXeDWf1uxqlbVFAUq0Rq0dbc50Zb/+wUe/ehyfzGfm9KZZF0kBejYgxltBXocP+gKdL2g==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.8.tgz",
"integrity": "sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==",
"dev": true,
"bin": {
"parser": "bin/babel-parser.js"
@ -3704,16 +3705,16 @@
}
},
"node_modules/c8": {
"version": "7.9.0",
"resolved": "https://registry.npmjs.org/c8/-/c8-7.9.0.tgz",
"integrity": "sha512-aQ7dC8gASnKdBwHUuYuzsdKCEDrKnWr7ZuZUnf4CNAL81oyKloKrs7H7zYvcrmCtIrMToudBSUhq2q+LLBMvgg==",
"version": "7.10.0",
"resolved": "https://registry.npmjs.org/c8/-/c8-7.10.0.tgz",
"integrity": "sha512-OAwfC5+emvA6R7pkYFVBTOtI5ruf9DahffGmIqUc9l6wEh0h7iAFP6dt/V9Ioqlr2zW5avX9U9/w1I4alTRHkA==",
"dev": true,
"dependencies": {
"@bcoe/v8-coverage": "^0.2.3",
"@istanbuljs/schema": "^0.1.2",
"find-up": "^5.0.0",
"foreground-child": "^2.0.0",
"istanbul-lib-coverage": "^3.0.0",
"istanbul-lib-coverage": "^3.0.1",
"istanbul-lib-report": "^3.0.0",
"istanbul-reports": "^3.0.2",
"rimraf": "^3.0.0",
@ -5096,9 +5097,9 @@
"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
},
"node_modules/electron-to-chromium": {
"version": "1.3.860",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.860.tgz",
"integrity": "sha512-gWwGZ+Wv4Mou2SJRH6JQzhTPjL5f95SX7n6VkLTQ/Q/INsZLZNQ1vH2GlZjozKyvT0kkFuCmWTwIoCj+/hUDPw==",
"version": "1.3.861",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.861.tgz",
"integrity": "sha512-GZyflmpMnZRdZ1e2yAyvuFwz1MPSVQelwHX4TJZyXypB8NcxdPvPNwy5lOTxnlkrK13EiQzyTPugRSnj6cBgKg==",
"dev": true
},
"node_modules/elliptic": {
@ -9667,9 +9668,9 @@
}
},
"node_modules/istanbul-reports": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz",
"integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==",
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.3.tgz",
"integrity": "sha512-0i77ZFLsb9U3DHi22WzmIngVzfoyxxbQcZRqlF3KoKmCJGq9nhFHoGi8FqBztN2rE8w6hURnZghetn0xpkVb6A==",
"dev": true,
"dependencies": {
"html-escaper": "^2.0.0",
@ -23014,9 +23015,9 @@
},
"dependencies": {
"@babel/code-frame": {
"version": "7.14.5",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz",
"integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.15.8.tgz",
"integrity": "sha512-2IAnmn8zbvC/jKYhq5Ki9I+DwjlrtMPUCH/CpHvqI4dNnlwHwsxoIhlc8WcYY5LSYknXQtAlFYuHfqAFCvQ4Wg==",
"dev": true,
"requires": {
"@babel/highlight": "^7.14.5"
@ -23029,20 +23030,20 @@
"dev": true
},
"@babel/core": {
"version": "7.15.5",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.5.tgz",
"integrity": "sha512-pYgXxiwAgQpgM1bNkZsDEq85f0ggXMA5L7c+o3tskGMh2BunCI9QUwB9Z4jpvXUOuMdyGKiGKQiRe11VS6Jzvg==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.8.tgz",
"integrity": "sha512-3UG9dsxvYBMYwRv+gS41WKHno4K60/9GPy1CJaH6xy3Elq8CTtvtjT5R5jmNhXfCYLX2mTw+7/aq5ak/gOE0og==",
"dev": true,
"requires": {
"@babel/code-frame": "^7.14.5",
"@babel/generator": "^7.15.4",
"@babel/code-frame": "^7.15.8",
"@babel/generator": "^7.15.8",
"@babel/helper-compilation-targets": "^7.15.4",
"@babel/helper-module-transforms": "^7.15.4",
"@babel/helper-module-transforms": "^7.15.8",
"@babel/helpers": "^7.15.4",
"@babel/parser": "^7.15.5",
"@babel/parser": "^7.15.8",
"@babel/template": "^7.15.4",
"@babel/traverse": "^7.15.4",
"@babel/types": "^7.15.4",
"@babel/types": "^7.15.6",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
@ -23060,9 +23061,9 @@
}
},
"@babel/eslint-parser": {
"version": "7.15.7",
"resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.15.7.tgz",
"integrity": "sha512-yJkHyomClm6A2Xzb8pdAo4HzYMSXFn1O5zrCYvbFP0yQFvHueLedV8WiEno8yJOKStjUXzBZzJFeWQ7b3YMsqQ==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.15.8.tgz",
"integrity": "sha512-fYP7QFngCvgxjUuw8O057SVH5jCXsbFFOoE77CFDcvzwBVgTOkMD/L4mIC5Ud1xf8chK/no2fRbSSn1wvNmKuQ==",
"dev": true,
"requires": {
"eslint-scope": "^5.1.1",
@ -23095,12 +23096,12 @@
}
},
"@babel/generator": {
"version": "7.15.4",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.4.tgz",
"integrity": "sha512-d3itta0tu+UayjEORPNz6e1T3FtvWlP5N4V5M+lhp/CxT4oAA7/NcScnpRyspUMLK6tu9MNHmQHxRykuN2R7hw==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.8.tgz",
"integrity": "sha512-ECmAKstXbp1cvpTTZciZCgfOt6iN64lR0d+euv3UZisU5awfRawOvg07Utn/qBGuH4bRIEZKrA/4LzZyXhZr8g==",
"dev": true,
"requires": {
"@babel/types": "^7.15.4",
"@babel/types": "^7.15.6",
"jsesc": "^2.5.1",
"source-map": "^0.5.0"
},
@ -23182,9 +23183,9 @@
}
},
"@babel/helper-module-transforms": {
"version": "7.15.7",
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.7.tgz",
"integrity": "sha512-ZNqjjQG/AuFfekFTY+7nY4RgBSklgTu970c7Rj3m/JOhIu5KPBUuTA9AY6zaKcUvk4g6EbDXdBnhi35FAssdSw==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.8.tgz",
"integrity": "sha512-DfAfA6PfpG8t4S6npwzLvTUpp0sS7JrcuaMiy1Y5645laRJIp/LiLGIBbQKaXSInK8tiGNI7FL7L8UvB8gdUZg==",
"dev": true,
"requires": {
"@babel/helper-module-imports": "^7.15.4",
@ -23277,9 +23278,9 @@
}
},
"@babel/parser": {
"version": "7.15.7",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.7.tgz",
"integrity": "sha512-rycZXvQ+xS9QyIcJ9HXeDWf1uxqlbVFAUq0Rq0dbc50Zb/+wUe/ehyfzGfm9KZZF0kBejYgxltBXocP+gKdL2g==",
"version": "7.15.8",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.8.tgz",
"integrity": "sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==",
"dev": true
},
"@babel/plugin-syntax-jsx": {
@ -26623,16 +26624,16 @@
}
},
"c8": {
"version": "7.9.0",
"resolved": "https://registry.npmjs.org/c8/-/c8-7.9.0.tgz",
"integrity": "sha512-aQ7dC8gASnKdBwHUuYuzsdKCEDrKnWr7ZuZUnf4CNAL81oyKloKrs7H7zYvcrmCtIrMToudBSUhq2q+LLBMvgg==",
"version": "7.10.0",
"resolved": "https://registry.npmjs.org/c8/-/c8-7.10.0.tgz",
"integrity": "sha512-OAwfC5+emvA6R7pkYFVBTOtI5ruf9DahffGmIqUc9l6wEh0h7iAFP6dt/V9Ioqlr2zW5avX9U9/w1I4alTRHkA==",
"dev": true,
"requires": {
"@bcoe/v8-coverage": "^0.2.3",
"@istanbuljs/schema": "^0.1.2",
"find-up": "^5.0.0",
"foreground-child": "^2.0.0",
"istanbul-lib-coverage": "^3.0.0",
"istanbul-lib-coverage": "^3.0.1",
"istanbul-lib-report": "^3.0.0",
"istanbul-reports": "^3.0.2",
"rimraf": "^3.0.0",
@ -27700,9 +27701,9 @@
"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
},
"electron-to-chromium": {
"version": "1.3.860",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.860.tgz",
"integrity": "sha512-gWwGZ+Wv4Mou2SJRH6JQzhTPjL5f95SX7n6VkLTQ/Q/INsZLZNQ1vH2GlZjozKyvT0kkFuCmWTwIoCj+/hUDPw==",
"version": "1.3.861",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.861.tgz",
"integrity": "sha512-GZyflmpMnZRdZ1e2yAyvuFwz1MPSVQelwHX4TJZyXypB8NcxdPvPNwy5lOTxnlkrK13EiQzyTPugRSnj6cBgKg==",
"dev": true
},
"elliptic": {
@ -31087,9 +31088,9 @@
}
},
"istanbul-reports": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz",
"integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==",
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.3.tgz",
"integrity": "sha512-0i77ZFLsb9U3DHi22WzmIngVzfoyxxbQcZRqlF3KoKmCJGq9nhFHoGi8FqBztN2rE8w6hURnZghetn0xpkVb6A==",
"dev": true,
"requires": {
"html-escaper": "^2.0.0",

View File

@ -78,6 +78,7 @@
"rehype-minify-url": "^4.0.0",
"rehype-parse": "^8.0.0",
"rehype-preset-minify": "^6.0.0",
"rehype-raw": "^6.0.0",
"rehype-remove-comments": "^5.0.0",
"rehype-sanitize": "^5.0.0",
"rehype-shift-heading": "^1.0.0",

View File

@ -212,7 +212,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/community/support/
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/esbuild/license

View File

@ -189,7 +189,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/support
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/loader/license

View File

@ -916,7 +916,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/community/support/
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/mdx/license

View File

@ -199,7 +199,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/community/support/
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/node-loader/license

View File

@ -211,7 +211,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/community/support/
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/preact/license

View File

@ -211,7 +211,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/community/support/
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/react/license

View File

@ -167,7 +167,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/community/support/
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/register/license

View File

@ -222,7 +222,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/community/support/
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/remark-mdx/license

View File

@ -186,7 +186,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/community/support/
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/rollup/license
@ -198,7 +198,7 @@ abide by its terms.
[options-source-map-generator]: https://v2.mdxjs.com/packages/mdx/#optionssourcemapgenerator
[rollup-plugin-babel]: https://github.com/rollup/plugins/tree/master/packages/babel
[rollup-plugin-babel]: https://github.com/rollup/plugins/tree/HEAD/packages/babel
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

View File

@ -180,7 +180,7 @@ abide by its terms.
[support]: https://v2.mdxjs.com/community/support/
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mit]: https://github.com/mdx-js/mdx/blob/main/packages/vue/license

View File

@ -179,7 +179,7 @@ Join us on [GH Discussions][chat]!
[tweet]: https://twitter.com/chrisbiscardi/status/1022304288326864896
[remark-plugins]: https://github.com/remarkjs/remark/blob/master/doc/plugins.md
[remark-plugins]: https://github.com/remarkjs/remark/blob/main/doc/plugins.md
[website]: https://mdxjs.com
@ -211,7 +211,7 @@ Join us on [GH Discussions][chat]!
[support]: https://mdxjs.com/support
[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/mdx-js/.github/blob/HEAD/code-of-conduct.md
[mdx-deck]: https://github.com/jxnblk/mdx-deck

View File

@ -22,10 +22,12 @@ import rehypeInferTitleMeta from 'rehype-infer-title-meta'
import rehypeSlug from 'rehype-slug'
import rehypeShiftHeading from 'rehype-shift-heading'
import rehypePresetMinify from 'rehype-preset-minify'
import rehypeRaw from 'rehype-raw'
import rehypeMinifyUrl from 'rehype-minify-url'
import {s} from 'hastscript'
import {analyze} from 'periscopic'
import {valueToEstree} from 'estree-util-value-to-estree'
import {nodeTypes} from '@mdx-js/mdx'
import {config} from '../docs/_config.js'
const own = {}.hasOwnProperty
@ -47,6 +49,7 @@ const options = {
]
],
rehypePlugins: [
[rehypeRaw, {passThrough: nodeTypes}],
unifiedInferRemoteMeta,
unifiedInferGitMeta,
[