[][xs]: Add the ability to pass a preProcess function #621
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue Resolved
Summary
This pull request addresses two specific issues and introduces a valuable enhancement to the Flowershow project. It enables users to add custom functionality before processing files, thus making it more versatile and accommodating for custom plugins or other enhancements.
Details
Custom Pre-Processing Functionality
Introduced a pre-processing function,
preProcess
, which allows users to customize the content before further processing. Here is an example of this function:This enables users to define their own pre-processing logic, such as replacing characters with emojis, adding or removing content, and more.
Issue Auto-convert => and <= and <=> to nicer unicode versions (like obsidian preview does) to avoid errors on build #519
The introduced changes effectively address Issue #519 by providing a flexible pre-processing step.
Issue [Question] mdxjs error with Days: [[2023-06-22]] <== [[2023-06-23]] ==> [[2023-06-24]] #527
These changes also resolve Issue #527.
User Customization
The ability to define custom pre-processing logic empowers users to create unique enhancements to Flowershow, like custom plugins or features that were not possible before. This new capability makes Flowershow even more versatile and user-friendly, allowing for a wide range of content transformations.