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

Custom processor with two arguments #186

Merged
merged 7 commits into from
Feb 14, 2024

Conversation

ITDancer13
Copy link
Contributor

Extend custom processors: Support callbacks with two arguments:

  1. Content to be processed
  2. Filename which is processed

Copy link
Owner

@adamreisnz adamreisnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a few suggested tweaks

lib/process-file.spec.js Outdated Show resolved Hide resolved
lib/process-file.spec.js Outdated Show resolved Hide resolved
lib/helpers/run-processors.js Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@adamreisnz adamreisnz merged commit e90c51f into adamreisnz:main Feb 14, 2024
@adamreisnz
Copy link
Owner

adamreisnz commented Feb 14, 2024

Thank you, I will include this in 8.0.0 and also convert to ESM module at the same time (in the coming days) 👍🏼

@adamreisnz
Copy link
Owner

This has been released in 7.2.0

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.

3 participants