Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat (advanced): split next-markdown into smaller modules #9

Open
frouo opened this issue Mar 29, 2022 · 1 comment
Open

feat (advanced): split next-markdown into smaller modules #9

frouo opened this issue Mar 29, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@frouo
Copy link
Owner

frouo commented Mar 29, 2022

Split the lib in several parts

  • npm install @nextmarkdown/core : contains everything but the markdownToHtml logic (commonjs lib)
  • npm install @nextmarkdown/markdown-to-html : will contain all the logic to convert markdown to html with remark / rehype plugins dependencies (esm module lib because rehype-stringify is ESM only).
  • npm install @nextmarkdown/mdx : will contain the next-mdx-remote logic.

Finally npm install next-markdown would install, by default, both @nextmarkdown/core and @nextmarkdown/markdown-to-html so it is really easy to get started with next-mardown + covers 80% of the usage cases.

@frouo frouo changed the title Allow remark and rehype plugins customization feat: allow remark and rehype plugins customization Apr 4, 2022
@frouo frouo added the enhancement New feature or request label Apr 4, 2022
@edvincandon
Copy link
Collaborator

option 2 🎉

@frouo frouo changed the title feat: allow remark and rehype plugins customization feat: introduce plugins to allow custom behavior (remark, rehype, file parsing, etc.) Apr 7, 2022
@frouo frouo added the help wanted Extra attention is needed label Apr 11, 2022
@frouo frouo changed the title feat: introduce plugins to allow custom behavior (remark, rehype, file parsing, etc.) feat (advanced): split next-markdown into smaller module Apr 11, 2022
@frouo frouo changed the title feat (advanced): split next-markdown into smaller module feat (advanced): split next-markdown into smaller modules Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants