Releases: torchbox/wagtail-markdown
v0.12.1 - Simpler with Wagtail 6
What's Changed
Full Changelog: v0.12.0...v0.12.1
v0.12 - Official Wagtail 6 support, and drop Wagtail < 5.2
Warning
This release supports Wagtail 5.2+ only.
It also removes the long deprecated MarkdownPanel
What's Changed
- Tidy ups for Wagtail 6.0 by @katdom13 in #139
- Allow customizing tab_length by @bjackson in #136
- Prep release v0.12 by @zerolab in #140
- Various tooling tweaks
- Drop support for Wagtail < 5.2, and the long deprecated
MarkdownPanel
New Contributors
Full Changelog: v0.11.1...v0.12.0
v0.11.1 - A handful of maintenance jobs
Added missing classifier, improve various tooling configuration, updated README. Switched to PyPI trusted publishing
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #126
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #129
- Wagtail 5.1 and tooling by @zerolab and @nickmoreton in #130
Full Changelog: v0.11.0...v0.11.1
v0.11 - Wagtail 5 and darkmode ready
This release changes the minimum Wagtail version to 4.1, and makes various tweaks to be Wagtail 5+ ready. This includes tweaks for dark mode, and upgrading EasyMDE to v2.18
What's Changed
- Fixed a small typo by @ramonakira in #114
- Wagtail 4.2 compatibility by @nickmoreton in #120
- Tooling updates by @zerolab in #123
- use flit for packaging
- switch to ruff for linting (replacing isort, flake8)
New Contributors
- @ramonakira made their first contribution in #114
Full Changelog: v0.10.0...v0.11.0
v0.10 - Markdown 3.4+, inline links with pks, extend or override settings
This release bring a number of fixes and improvements.
🔗 Inline links
Markdown | Result |
---|---|
[page link](page:1) |
<a href="/path/to/page-1/">page link</a> |
[document link](doc:3) |
<a href="/documents/1/the-document.pdf">document link</a> |
![image](image:37) |
<img alt="image" class="left" src="https://thing.public.s3.amazonaws.com/images/foo.png\"> |
![image](image:37,class=full-width) |
<img alt="image" class="full-width" src="https://thing.public.s3.amazonaws.com/images/foo.width-500.png"> |
![image](image:37,filter=fill-1000x1000) |
<img alt="image" class="left" src="https://thing.public.s3.amazonaws.com/images/foo.fill-1000x1000.png"> |
![image](image:37,class=full-width,filter=width-100|format-webp) |
<img alt="image" class="full-with" src="https://thing.public.s3.amazonaws.com/images/foo.width-100.format-webp.webp"> |
If you have wagtailmedia installed, you can link to a media item via [media item link text](media:123)
which will produce a link to the media file.
⚙️ Additional EasyMDE options
You can now customise the EasyMDE options. To do this, create a JavaScript file in your app (for example my_app_name/static/js/easymde_custom.js) and add the following:
// my_app/static/js/easymde_custom.js
window.wagtailMarkdown = window.wagtailMarkdown || {};
window.wagtailMarkdown.options = window.wagtailMarkdown.options || {};
window.wagtailMarkdown.options.spellChecker = false;
# my_app/wagtail_hoos.py
from django.templatetags.static import static
from django.utils.html import format_html
from wagtail import hooks
@hooks.register("insert_global_admin_js", order=100)
def global_admin_js():
"""Add /static/js/admin/easymde_custom.js to the admin."""
return format_html('<script src="{}"></script>', static("js/easymde_custom.js"))
🎛️ Settings mode
You can now change how wagtail-markdown inteprets the options you provide in the WAGTAILMARKDOWN
setting via allowed_settings_mode
(optional. "extend" or "override". default: "extend") for allowed_tags
, allowed_styles
and allowed_attributes
options. And extensions_settings_mode
(optional. "extend" or "override". default: "extend") for extensions
and extension_configs
options.
allowed_attributes
option would replace the default ones, so you had to provide all values. With this change, they should be extended. (original issue)
Dropped custom tables plugin
wftable
class.
What's Changed
- Add option to pass additional EasyMDE options by @frcroth in #104
- Markdown 3.4 compatibility and tidyups by @zerolab in #106 with thanks to @vegaelle for the work started in #105
- Page and media linking by @zerolab in #107 with many thanks to @richtier for the initial work in #44
- Add
allowed_*
andextension*
settings control mode by @zerolab in #108
Full Changelog: v0.9.0...v0.10.0
v0.9.0 - cleaning up the house
What's Changed
- Adds django-compressor example by @benjaoming in #99
- Dropped support for Wagtail < 2.15
- Removed deprecated code, including the
wagtailmarkdown.fields.MarkdownBlock
import. - Deprecated the
MarkdownPanel
. Use the Wagtail coreFieldPanel
instead
Full Changelog: 0.8.0...v0.9.0
v0.8.0 - Wagtail 2.16 and Django 4.0 support
What's Changed
- Fix pygments code highlight instructions by @elcuy in #87
- Fix etree deprecation warnings by @nickmoreton in #93
- Tidy ups and updates by @zerolab in #94
- Update EasyMDE to 2.16.1 by @zerolab in #95
- Move package code to src for smaller releases by @zerolab in #96
New Contributors
- @elcuy made their first contribution in #87
- @nickmoreton made their first contribution in #93
Full Changelog: 0.7.0...0.8.0
v0.7.0 - The Easy(MDE) release
This release brings a new (and maintained) Markdown editor 📝 , custom extensions support 📦, ability to tweak the allowed tags and the extensions configuration 🛠️ and brings in tests too.
See the documentation on the new configuration options.
Thank you all for the contributions!
Changes
- Added test suite
- Moved all options in a single setting and allowed further customisations (#82) - Thanks @rokdd
- Added Wagtail 2.13 StreamField block compatibility (#81)
- Switched to using EasyMDE (#76) - Thanks @StefanUlbrich
- Added support for extensions config (#77) - Thanks @StefanUlbrich and by extension @abrunyate
- Removed deprecations
- Added pre-commit support
- Switched to SemVer and GitHub Actions
- Updated bleach minimum version to 3.3.0
v0.7-rc2 - Wagtail 2.13 compatibility
Adds a new MarkdownTextarea adapter that takes care of the magic. Wagtail 2.13 now uses the telepath library to map data between the widget and the StreamField representation. More at https://docs.wagtail.io/en/latest/reference/streamfield/widget_api.html
v0.7.0-rc1
This Release Candidate brings a number of exciting changes, with the switch to EasyMDE as the main one.
Do run pip install wagtail-markdown==0.7.0-rc1
and test it in your builds! 🚀
Changelog:
- Switched to using EasyMDE #76 - Thank you @StefanUlbrich
- Added support for extensions config via
WAGTAILMARKDOWN_EXTENSIONS_CONFIG
#77 - Thank you @StefanUlbrich, as well as @nrempel for #75 - Removed deprecations
- Added pre-commit support.
When contributing, runpre-commit install
in the wagtail-markdown directory, if you haven't already - Switched to SemVer and GitHub Actions
- Updated bleach minimum version to 3.3.0. See GHSA-vv2x-vrpj-qqpq