Skip to content

refactor: mdx rehype plugin#47

Open
peppermintc wants to merge 1 commit intomintlify:mainfrom
peppermintc:peppermintc/refactor-rehype-plugin
Open

refactor: mdx rehype plugin#47
peppermintc wants to merge 1 commit intomintlify:mainfrom
peppermintc:peppermintc/refactor-rehype-plugin

Conversation

@peppermintc
Copy link

@peppermintc peppermintc commented Jan 21, 2026

Summary

  • Refactor rehype plugin, tried to improve maintainability
  • Test available with this PR
  • Tried to remain same functionalities, but if possible cross check would be nice

File Structure

src/
 ├─ index.ts          // plugin entry
 ├─ core.ts           // load options and visit hast
 ├─ handlers.ts       // handle pre code node logic
 ├─ utils.ts          // helper functions
 ├─ types.ts          // types
 ├─ constants.ts      // constants

Comments

  • As inspecting plugin logic, I thought maintainability could improve on this plugin part. So while understanding the code I made some changes
  • If this refactor doesn’t align with the project direction, please feel free to close this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant