Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
eek
  • Loading branch information
kellyjosephprice committed May 31, 2024
commit 876a53e828e30a0008cd508190bd001ae57e760f
5 changes: 2 additions & 3 deletions lib/mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import rehypeRemark from 'rehype-remark';
import remarkStringify from 'remark-stringify';

import compilers from '../processor/compile';
import readmeToMdx from 'processor/transform/readme-to-mdx';

import readmeToMdx from '../processor/transform/readme-to-mdx';

export const mdx = (tree: any, { hast = false } = {}) => {
const processor = unified()
Expand All @@ -20,4 +19,4 @@ export const mdx = (tree: any, { hast = false } = {}) => {
return processor.stringify(processor.runSync(tree));
};

export default mdx
export default mdx;
2 changes: 0 additions & 2 deletions lib/run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ const makeUseMDXComponents = (more: RunOpts['components']): (() => ComponentOpts
...headings,
};

console.log(headings);

return () => components;
};

Expand Down