Skip to content

Commit

Permalink
0.8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Nov 6, 2023
1 parent 182f15c commit 68c4a94
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 34 deletions.
2 changes: 1 addition & 1 deletion examples/tokyo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nkzw/remdx-tokyo-example",
"description": "Beautiful Minimalist React & MDX Presentations",
"version": "0.7.0",
"version": "0.8.0",
"author": "Christoph Nakazawa <[email protected]>",
"private": true,
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nkzw/remdx-private",
"version": "0.7.0",
"version": "0.8.0",
"author": "Christoph Nakazawa <[email protected]>",
"private": true,
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-remdx/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-remdx",
"description": "Beautiful Minimalist React & MDX Presentations",
"version": "0.7.0",
"version": "0.8.0",
"author": "Christoph Nakazawa <[email protected]>",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/remdx/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nkzw/remdx",
"description": "Beautiful Minimalist React & MDX Presentations",
"version": "0.7.0",
"version": "0.8.0",
"author": "Christoph Nakazawa <[email protected]>",
"repository": {
"type": "git",
Expand Down
60 changes: 32 additions & 28 deletions packages/vite-plugin-remdx/__tests__/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,12 @@ theme: dark
export default [(() => {
function MDXContentWrapper(props) {
/*@jsxRuntime automatic @jsxImportSource react*/
function _createMdxContent(props) {
const _components = Object.assign({
h1: \\"h1\\"
}, _provideComponents(), props.components);
function _createMdxContent(props) {
const _components = {
h1: \\"h1\\",
..._provideComponents(),
...props.components
};
return _jsxDEV(_components.h1, {
children: \\"Slide 1\\"
}, undefined, false, {
Expand All @@ -55,32 +52,34 @@ theme: dark
}, this);
}
function MDXContent(props = {}) {
const {wrapper: MDXLayout} = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? _jsxDEV(MDXLayout, Object.assign({}, props, {
children: _jsxDEV(_createMdxContent, props, undefined, false, {
const {wrapper: MDXLayout} = {
..._provideComponents(),
...props.components
};
return MDXLayout ? _jsxDEV(MDXLayout, {
...props,
children: _jsxDEV(_createMdxContent, {
...props
}, undefined, false, {
fileName: \\"<source.js>\\"
}, this)
}), undefined, false, {
}, undefined, false, {
fileName: \\"<source.js>\\"
}, this) : _createMdxContent(props);
}
MDXContent;
return _jsxDEV(MDXContent, props);
};
MDXContentWrapper.isMDXComponent = true;
return {Component: MDXContentWrapper, data: {}};
})(),
(() => {
function MDXContentWrapper(props) {
/*@jsxRuntime automatic @jsxImportSource react*/
function _createMdxContent(props) {
const _components = Object.assign({
h1: \\"h1\\"
}, _provideComponents(), props.components);
function _createMdxContent(props) {
const _components = {
h1: \\"h1\\",
..._provideComponents(),
...props.components
};
return _jsxDEV(_components.h1, {
children: \\"Slide 2\\"
}, undefined, false, {
Expand All @@ -90,16 +89,21 @@ theme: dark
}, this);
}
function MDXContent(props = {}) {
const {wrapper: MDXLayout} = Object.assign({}, _provideComponents(), props.components);
return MDXLayout ? _jsxDEV(MDXLayout, Object.assign({}, props, {
children: _jsxDEV(_createMdxContent, props, undefined, false, {
const {wrapper: MDXLayout} = {
..._provideComponents(),
...props.components
};
return MDXLayout ? _jsxDEV(MDXLayout, {
...props,
children: _jsxDEV(_createMdxContent, {
...props
}, undefined, false, {
fileName: \\"<source.js>\\"
}, this)
}), undefined, false, {
}, undefined, false, {
fileName: \\"<source.js>\\"
}, this) : _createMdxContent(props);
}
MDXContent;
return _jsxDEV(MDXContent, props);
};
MDXContentWrapper.isMDXComponent = true;
Expand Down
1 change: 0 additions & 1 deletion packages/vite-plugin-remdx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ export default function remdx(): Plugin {
}

return await transform(code, {
// @ts-expect-error
rehypePlugins: [[rehypeRaw, { passThrough: nodeTypes }]],
// @ts-expect-error
remarkPlugins: [[shikiTwoslashFn, shikiOptions]],
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-remdx/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nkzw/vite-plugin-remdx",
"description": "Beautiful Minimalist React & MDX Presentations",
"version": "0.7.0",
"version": "0.8.0",
"author": "Christoph Nakazawa <[email protected]>",
"repository": {
"type": "git",
Expand Down

0 comments on commit 68c4a94

Please sign in to comment.