Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@babel/plugin-proposal-class-properties": "^7.17.12",
"@babel/preset-env": "^7.19.4",
"@babel/preset-react": "^7.23.3",
"@mdx-js/loader": "^2.0.0-next.9",
"@mdx-js/loader": "^3.0.0",
"@octokit/auth-action": "^4.0.1",
"@octokit/rest": "^20.0.2",
"@pmmmwh/react-refresh-webpack-plugin": "next",
Expand Down
8 changes: 4 additions & 4 deletions src/remark-plugins/remark-cleanup-readme/index.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mdx from '@mdx-js/mdx';
import { compileSync } from '@mdx-js/mdx';
import CleanupReadme from './index.mjs';
describe('cleanup readme', () => {
it('should clean up div[align="center"] block without paragraph', () => {
Expand All @@ -12,7 +12,7 @@ describe('cleanup readme', () => {
</a>
</div>
`;
const html = mdx.sync(mdxText, {
const html = compileSync(mdxText, {
remarkPlugins: [CleanupReadme],
});
expect(html).toMatchSnapshot();
Expand All @@ -32,7 +32,7 @@ describe('cleanup readme', () => {
</p>
</div>
`;
const html = mdx.sync(mdxText, {
const html = compileSync(mdxText, {
remarkPlugins: [CleanupReadme],
});
expect(html).toMatchSnapshot();
Expand Down Expand Up @@ -67,7 +67,7 @@ describe('cleanup readme', () => {
</div>
</div>
`;
const html = mdx.sync(mdxText, {
const html = compileSync(mdxText, {
remarkPlugins: [CleanupReadme],
});
expect(html).toMatchSnapshot();
Expand Down
Loading