This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
Releases: mkaz/code-syntax-block
Releases · mkaz/code-syntax-block
Force Loading
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
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
Language Filters
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
- 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
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
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
-
Build step removed from v0.7.0
-
i18n removed due to change in core
v0.6.1 - I Depend on You
- Adds explicitly setting wp-editor dependency, now required in recent Gutenberg (v4.5)
v0.6.0 - All the syntaxes
- 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