Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Releases: mkaz/code-syntax-block

Force Loading

27 Feb 14:18
50b7653
Compare
Choose a tag to compare

Adds a filter mkaz_code_syntax_force_loading that allows skipping the conditional loading introduced in last version and force the loading of assets. Feature requested in #61

Conditional Loading

23 Feb 14:29
c68db6a
Compare
Choose a tag to compare

v1.2.3

  • Adds conditional loading of assets checking for has_block in index/single views
  • Adds Hack to front of line for default font
  • Remove !important in font declaration so it can be over-written
  • Bump default font-size to 15px for usability

v1.2.2

  • Fix alignment issue with TwentyTwenty theme

v1.2.1

03 Jan 15:23
90271e7
Compare
Choose a tag to compare

v1.2.1

  • Add Java and Kotlin to default language list

v1.2.0

  • Upgrade Prism to 1.17.1

Language Filters

03 Nov 14:55
4370521
Compare
Choose a tag to compare

Features

  • Add filter mkaz_code_syntax_language_list to filter languages
  • Add filter mkaz_code_syntax_default_lang to set a default lang

Code Quality

  • Refactor code to ES6 syntax
  • Switch edit to use class component to support default language filter
  • Move languages list file to PHP to support filters

v1.0.0 - One Oh Oh

25 Jun 18:19
5ef72fa
Compare
Choose a tag to compare
  • Upgrade Prism to 1.16.0
  • Switch default theme to One Dark
  • Add Title / Filename option to side bar
  • Specify styles for .comment padding/border fixes issues #41 #46
  • Update readmes, and touches of cleanup

Note: if you use your own theme, you will likely need to style the title. See the definition in prism.css, the class name used is prism-titlename

v0.9.0 - Lines Numbered

12 Jan 15:59
594d2a8
Compare
Choose a tag to compare

props to @onny

  • New Toggle for Line Numbers
  • includes Prism plugin for line numbers

Misc

  • Cleanup whitespace, remove old function
  • Wrap entire JS using IIFE to avoid scope issues

v0.8.2 - Theme Filter

22 Dec 14:25
d4938d8
Compare
Choose a tag to compare

props to @ethanclevenger91

  • Adds a check for prism.css file in a default location in active theme, assets/prism/prism.css
  • Adds new filter mkaz_prism_css_path which allows you to specify a different path, relative to the theme, to check for a css file

props to @yearliny

  • Sort language list
  • Improve editor CSS

From v.0.8.1:

props to @jeherve

  • Add filter mkaz_prism_css_url to specify URL to override prism.css file

v0.8.0 - Mālama

05 Dec 17:33
4179e9b
Compare
Choose a tag to compare
  • Build step removed from v0.7.0

  • i18n removed due to change in core

v0.6.1 - I Depend on You

23 Nov 16:28
30b254b
Compare
Choose a tag to compare
  • Adds explicitly setting wp-editor dependency, now required in recent Gutenberg (v4.5)

v0.6.0 - All the syntaxes

12 Nov 18:33
753b1d0
Compare
Choose a tag to compare
  • Adds syntax support for all Prism grammars #20 Thanks @jazanne !
  • Changes prism.css to use system font and fixed font-size

Includes changes from 0.5.1 which it appears no zip release was created

  • Removes CodeMirror
  • Better WordPress support (code style, translation) Thanks @westonruter