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

Process HTML comments as markdown in 'escape' safe mode #569

Merged
merged 3 commits into from Mar 4, 2024

Conversation

Crozzers
Copy link
Contributor

Following on from the discussion in #563, this PR changes how HTML comments are dealt with when safe_mode='escape'.
Previously, HTML comments would be entirely escaped and the contents hashed to prevent further processing. Now, the comment will be detected. The opening and closing tags will be sanitised and hashed as normal but the contents of the comment will only be sanitised, not hashed. This allows for further markdown processing to happen on the comment's contents.

@nicholasserra
Copy link
Collaborator

Needs a rebase or merge in

@Crozzers Crozzers force-pushed the process-escaped-html-comments branch from 85b4822 to 2390b87 Compare February 28, 2024 17:59
@Crozzers
Copy link
Contributor Author

Rebased onto master

@nicholasserra nicholasserra merged commit 54a9dd2 into trentm:master Mar 4, 2024
18 checks passed
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.

None yet

2 participants