Skip to content

Commit

Permalink
Merge pull request #229 from KevinBatdorf/release/1.22.1
Browse files Browse the repository at this point in the history
Release 1.22.1
  • Loading branch information
KevinBatdorf committed Jul 31, 2023
2 parents 7bbed14 + ce2c0cc commit b38aa10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code-block-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://code-block-pro.com/?utm_campaign=plugin&utm_source=author-uri
* Requires at least: 6.0
* Requires PHP: 7.0
* Version: 1.22.0
* Version: 1.22.1
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: code-block-pro
Expand Down
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: kbat82, dcooney
Tags: block, code, syntax, snippet, highlighter, JavaScript, php, js, vs code
Tested up to: 6.3
Stable tag: 1.22.0
Stable tag: 1.22.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -305,6 +305,7 @@ Themes are rendered inside the editor as you type or make changes, so the code b

== Changelog ==

= 1.22.1 - 2023-07-30 =
- Fix: Theme previews now respect the tabSize setting
- Fix: Added escapeHTML wrapper on code to code pro transform function
- Fix: Added some clarify on encoding, and added better edge cases handling
Expand Down
4 changes: 2 additions & 2 deletions src/editor/Edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export const Edit = ({
(code: string) => {
if (useDecodeURI) {
try {
// Here for bw compatability
return decodeURIComponent(code);
} catch (e) {
// Covers sequences that fail the above
return code;
}
}
Expand All @@ -79,9 +79,9 @@ export const Edit = ({
(code: string) => {
if (useDecodeURI) {
try {
// Here for bw compatability
return encodeURIComponent(code);
} catch (e) {
// Covers sequences that fail the above
return code;
}
}
Expand Down

0 comments on commit b38aa10

Please sign in to comment.