Skip to content

Commit

Permalink
Ensure wagtail-markdown can render images (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejalim authored Feb 15, 2024
1 parent 3d8f8c4 commit 1f2ad38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Update YouTube video embeds to use the youtube-nocookie.com domain instead of regular youtube.com
* Do not load analytics JS (if allowed based on DNT) on 40x pages
* Dependency updates for security and stability
* Configure wagtail-markdown so that bleach does not strip anchor element attributes.
* Configure wagtail-markdown so that bleach does not strip anchor element attributes
* Configure wagtail-markdown so that bleach does not strip img element attributes

## [1.3.0]

Expand Down
7 changes: 6 additions & 1 deletion birdbox/birdbox/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,18 @@ def path_from_root(*args):
"br",
],
"allowed_styles": [], # a list of CSS attributes - nothing allowed
"allowed_attributes": { # optional. a dict with HTML tag as key and a list of attributes as value
"allowed_attributes": { # optional. a dict with HTML tag as key and a list of attributes as value
"a": [
"href",
"target",
"rel",
"title",
],
"img": [
"src",
"alt",
"title",
],
},
"allowed_settings_mode": "override", # optional. Possible values: "extend" or "override". Defaults to "extend".
"extensions": [], # optional. a list of python-markdown supported extensions
Expand Down

0 comments on commit 1f2ad38

Please sign in to comment.