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: prepare transform_insideRendering #63

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

s-light
Copy link

@s-light s-light commented Mar 5, 2025

Description

this pr adds the transform function insideRendering.
this runs after the parse and before the rendererer.render function.

this way you can tweak / manipulate the token Array -
including async operations.

Linked Issues

fixes #62

Additional context

please review my changes carefully.
i have a minimal working test at
https://github.com/s-light/unplugin-vue-markdown-playground
https://codesandbox.io/p/github/s-light/unplugin-vue-markdown-playground/main

Copy link

stackblitz bot commented Mar 5, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

socket-security bot commented Mar 5, 2025

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected]2.1.0 None 0 11.8 kB antfu

View full report↗︎

@s-light
Copy link
Author

s-light commented Mar 5, 2025

i have no idea where the prismjs dependencie comes from 🙈

@s-light
Copy link
Author

s-light commented Mar 6, 2025

currently the dependency plugin-frontmatter needs to be fixed first - otherwise this breaks the frontmatter parsing 🙈

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.

async transforms between parse and render call
2 participants