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

feat: Add description_safe_mode config option #283

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

dblanchette
Copy link
Collaborator

Fixes #276

Add the option to set the safe_mode for markdown2 convert. Deprecate my earlier attempt with allow_html_description.

The default is escape which seems to cover the reported issues as it does not allow HTML and also not break the code examples

Screenshot 2024-11-29 at 1 10 23 PM

caveat: Non-markdown description will be allowed to have HTML

@dblanchette dblanchette merged commit a17ce95 into main Nov 29, 2024
8 checks passed
dblanchette pushed a commit that referenced this pull request Nov 29, 2024
# [1.2.0](v1.1.1...v1.2.0) (2024-11-29)

### Features

* Add `description_safe_mode` config option ([#283](#283)) ([a17ce95](a17ce95))
@dblanchette
Copy link
Collaborator Author

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dblanchette dblanchette deleted the feat/description-escape-mode branch November 29, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

markupsafe_escape breaks markdown code blocks
1 participant