Skip to content

Releases: torchbox/wagtail-markdown

v0.12.1 - Simpler with Wagtail 6

09 Mar 15:22
e3e1d28
Compare
Choose a tag to compare

What's Changed

  • Fix double MarkdownBlock EasyMDE initialisation by @zerolab in #142

Full Changelog: v0.12.0...v0.12.1

v0.12 - Official Wagtail 6 support, and drop Wagtail < 5.2

01 Mar 10:23
15e01cb
Compare
Choose a tag to compare

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

02 Aug 18:47
4dfd010
Compare
Choose a tag to compare

Added missing classifier, improve various tooling configuration, updated README. Switched to PyPI trusted publishing

What's Changed

Full Changelog: v0.11.0...v0.11.1

v0.11 - Wagtail 5 and darkmode ready

22 Apr 15:55
7966fb8
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v0.10.0...v0.11.0

v0.10 - Markdown 3.4+, inline links with pks, extend or override settings

18 Sep 16:16
ee86e2c
Compare
Choose a tag to compare

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.

⚠️ Previously values added in the 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

⚠️ We no longer customise tables, therefore the resulting table markup will no longer have the wftable class.

What's Changed

Full Changelog: v0.9.0...v0.10.0

v0.9.0 - cleaning up the house

01 Jul 17:18
Compare
Choose a tag to compare

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 core FieldPanel instead

Full Changelog: 0.8.0...v0.9.0

v0.8.0 - Wagtail 2.16 and Django 4.0 support

25 Feb 18:22
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.7.0...0.8.0

v0.7.0 - The Easy(MDE) release

19 Jun 10:44
Compare
Choose a tag to compare

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

15 Jun 18:34
Compare
Choose a tag to compare
Pre-release

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

28 Apr 17:47
Compare
Choose a tag to compare
v0.7.0-rc1 Pre-release
Pre-release

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: