Skip to content

Commit

Permalink
Refactor some more
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 18, 2023
1 parent a362bb4 commit 780fa02
Show file tree
Hide file tree
Showing 12 changed files with 468 additions and 411 deletions.
2 changes: 1 addition & 1 deletion docs/_asset/editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function Playground() {

return (
<>
<form className="playground-editor">
<form>
<div className="playground-area">
<div className="playground-inner">
<div className="playground-draw">
Expand Down
9 changes: 0 additions & 9 deletions docs/_asset/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1205,15 +1205,6 @@ button.success {
}
}

/* To do: clean from here */
.playground {
display: grid;
grid-template-columns: 49% 49%;
min-height: 40rem;
gap: calc(1em + 1ex);
margin-inline: calc(1em + 1ex);
}

.playground-area,
.playground-controls,
.playground-result {
Expand Down
23 changes: 6 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"@types/mdx": "^2.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/ungap__structured-clone": "^0.3.0",
"@ungap/structured-clone": "^1.0.0",
"@vue/babel-plugin-jsx": "^1.0.0",
"@vue/server-renderer": "^3.0.0",
"@wooorm/starry-night": "^3.0.0",
Expand All @@ -51,7 +53,10 @@
"eslint-plugin-react-hooks": "^4.0.0",
"estree-util-value-to-estree": "^3.0.0",
"globby": "^13.0.0",
"hast-util-from-html": "^2.0.0",
"hast-util-sanitize": "^5.0.0",
"hast-util-select": "^6.0.0",
"hast-util-to-html": "^9.0.0",
"hast-util-to-jsx-runtime": "^2.0.0",
"hast-util-to-text": "^4.0.0",
"hastscript": "^8.0.0",
Expand All @@ -78,7 +83,6 @@
"rehype-preset-minify": "^7.0.0",
"rehype-raw": "^7.0.0",
"rehype-remove-comments": "^6.0.0",
"rehype-sanitize": "^6.0.0",
"rehype-shift-heading": "^2.0.0",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.0",
Expand All @@ -99,8 +103,7 @@
"rollup": "^4.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"unified": "^11.0.3",
"unist-builder": "^4.0.0",
"unified": "^11.0.0",
"unist-util-remove-position": "^5.0.0",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/register/lib/index.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* @typedef {import('node:module').Module} Module
* @typedef {import('mdx/types.js').MDXModule} MDXModule
*/

/**
Expand Down Expand Up @@ -67,8 +68,7 @@ function register(options) {
*/
function mdx(module, path) {
const file = processSync(fs.readFileSync(path))
// To do: type `run`.
/** @type {{default: unknown}} */
/** @type {MDXModule} */
const result = runSync(file, runtime)
// Something going weird here w/ `type-coverage`.
// type-coverage:ignore-next-line
Expand Down

1 comment on commit 780fa02

@vercel
Copy link

@vercel vercel bot commented on 780fa02 Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mdx – ./

mdx-mdx.vercel.app
mdxjs.com
mdx-git-main-mdx.vercel.app
v2.mdxjs.com

Please sign in to comment.