Don't rebuild preprocessor map during test #2980
Merged
+14
−5
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.
This fixes a problem where custom preprocessors were not being registered when running tests. This was caused by the test function rebuilding the preprocessor map.
This removes the code that was rebuilding the preprocessors and removing the IndexPreprocessor when running tests. Skipping IndexPreprocessor was added back in #741 to fix #724 which was caused by #685 which added the IndexPreprocessor.
Additionally, #1986 added running all preprocessors.
The IndexPreprocessor was removed because in the past the code was testing against the source directly, and the path from
chapter.pathis the convertedindex.mdfile, and that filename does not exist in the source. This isn't a problem anymore because due to #891 it is not reading from thesrcdirectory.Note that this results in a minor change where the chapter path changes from
README.mdtoindex.mdin the output and the--chapteroption. I think I'm ok with that change, though it would be easy to switch it back if that's an issue.