We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f803cf commit f48fa6fCopy full SHA for f48fa6f
src/remark-plugins/remark-cleanup-readme/index.test.mjs
@@ -1,4 +1,4 @@
1
-import mdx from '@mdx-js/mdx';
+import { compileSync } from '@mdx-js/mdx';
2
import CleanupReadme from './index.mjs';
3
describe('cleanup readme', () => {
4
it('should clean up div[align="center"] block without paragraph', () => {
@@ -12,7 +12,7 @@ describe('cleanup readme', () => {
12
</a>
13
</div>
14
`;
15
- const html = mdx.sync(mdxText, {
+ const html = compileSync(mdxText, {
16
remarkPlugins: [CleanupReadme],
17
});
18
expect(html).toMatchSnapshot();
@@ -32,7 +32,7 @@ describe('cleanup readme', () => {
32
</p>
33
34
35
36
37
38
@@ -67,7 +67,7 @@ describe('cleanup readme', () => {
67
68
69
70
71
72
73
0 commit comments