wagtailcodeblock

StreamField code blocks for the Wagtail CMS with real-time PrismJS Syntax Highlighting.

BSD-3-CLAUSE License

Downloads
4K
Stars
154
Committers
13
wagtailcodeblock - 1.29.0.2 Latest Release

Published by FlipperPA 8 months ago

What's Changed

  • Wagtail 6 compatibility by @gabigab117
  • Update trove classifiers by @FlipperPA

Full Changelog: https://github.com/FlipperPA/wagtailcodeblock/compare/1.29.0.1...1.29.0.2

wagtailcodeblock - 1.29.0.1

Published by FlipperPA about 1 year ago

What's Changed

  • Confirm Wagtail 5 compatibility and update trove classifiers.
  • Bugfix to remove nonexistent CDNJS files by @fourfridays in #39

Full Changelog: https://github.com/FlipperPA/wagtailcodeblock/compare/1.29.0.0...1.29.0.1

wagtailcodeblock - 1.29.0.0

Published by FlipperPA over 1 year ago

What's Changed

  • Use pytest-django for the test suite; switch to a Wagtail Page fixture.
  • Upgrade PrismJS to 1.29.0.

Full Changelog: https://github.com/FlipperPA/wagtailcodeblock/compare/1.28.0.1...1.29.0.0

wagtailcodeblock - 1.28.0.1

Published by FlipperPA over 1 year ago

What's Changed

  • Wagtail 4.2 support has been added and is required, by @Arturinsh in PR #36.
    • For Wagtail 3.x, pip install wagtailcodeblock==1.28.0.0
  • Switch to pyproject.toml from setup.py for installation.
  • Updates and improvements to README.

Full Changelog: https://github.com/FlipperPA/wagtailcodeblock/compare/1.28.0.0...1.28.0.1

wagtailcodeblock - 1.28.0.0

Published by FlipperPA over 2 years ago

What's Changed

  • Wagtail 3.0 support has been added and is required, by @bstepa in PR #32.
    • For Wagtail 2.x, pip install wagtailcodeblock==1.25.0.2
  • Copy to clipboard functionality has been added by @ramiboutas in PR #33
  • Upgrade to PrismJS 1.28.0 has been added by @ramiboutas in PR #33.

Full Changelog: https://github.com/FlipperPA/wagtailcodeblock/compare/1.25.0.2...1.28.0.0

wagtailcodeblock - 1.25.0.2

Published by FlipperPA about 3 years ago

  • Fixed a bug pulling in CSS when theme is overridden to None.
wagtailcodeblock - 1.25.0.1

Published by FlipperPA about 3 years ago

  • Injects an event into the editor textarea to force a resize.
  • Makes WAGTAIL_CODE_BLOCK_LINE_NUMBERS a new setting; set it to False if you'd prefer not to have line numbers show up.
wagtailcodeblock - 1.25.0.0

Published by FlipperPA about 3 years ago

  • Only supports Wagtail 2.13 or greater; for previous version of Wagtail, please use wagtailcodeblock<1.25.0.0.
  • Support for Wagtail 2.13 and above, and conversion to telepath. (@cybelew)
  • Major performance improvements: (@FlipperPA)
    • All JavaScript assets are now pulled from CDNJS.
    • Only the necessary assets are loaded for the languages highlighted in a page.
    • This will save about 500 KB of assets required to load the page.
    • This will also save about 1.5 seconds of load time per code block on a page, as PrismJS is only loaded once per page, instead of once per block.
  • Initial work for removal of jQuery; this will be completed in the next release.
wagtailcodeblock - 1.17.1.0

Published by FlipperPA about 3 years ago

1.17.1.0

  • Ensure compatibility with new ReactJS StreamFields with Wagtail 2.7.
  • Update to PrismJS 1.17.1
  • Add pytest-django for a basic test suite.
  • Switch to using setuptools_scm instead of a MANIFEST.in file. Use tagging for PyPI version.
wagtailcodeblock - 1.15.0.0

Published by FlipperPA about 3 years ago

1.15.0.0

  • Update to PrismJS 1.15.0
  • Bug fix: do not key off of Language label, as it is translatable.

1.14.0.0

  • Upgrade to PrismJS 1.14.0
  • Allow passing a language code as an attribute, only allowing the single language to be used.
  • Fix conflict in CSS between tag class for Wagtail and markup syntax types.

1.11.0.0

  • Upgrade to PrismJS 1.11.0
    • Changed version numbers to match the included PrismJS release
  • Patch to add support for natively included PrismJS languages ['html', 'mathml', 'svg', 'xml']

0.4

  • Support for Wagtail 2.0

0.4.1

  • Upgrade to PrismJS 1.9.0, which includes a patch we made to the 'coy' theme we use as a default.

0.3

  • Support for PrismJS themes

0.3.1

  • Bug fixes for some front-end issues. Update documentation.