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

Move sanitize filter forwards in the filter chain #429

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

dometto
Copy link
Member

@dometto dometto commented Sep 13, 2022

Resolves #408.

I couldn't move the Sanitize filter all the way to the front since that caused the TOC to render incorrectly. But now it's in front of (i.e. executed after) the Macro filter and others, which is safer. Removed the separate sanitization step in the Macro filter.

We could still try placing the BibTeX filter behind the Sanitize filter so that gets sanitized as well.

There is a separate sanitization call in the YAML filter too, but that's unfortunately necessary because metadata gets parsed independently from the rest of the page.

@dometto dometto changed the title Move sanitize Move sanitize filter forwards in the filter chain Sep 13, 2022
@dometto dometto added this to the 6.0 milestone Nov 27, 2022
@dometto dometto merged commit 1ffef5a into gollum:6.x Nov 27, 2022
@dometto dometto deleted the move_sanitize branch November 27, 2022 19:56
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.

1 participant