diff --git a/code-block-pro.php b/code-block-pro.php index a44423e..ee82383 100644 --- a/code-block-pro.php +++ b/code-block-pro.php @@ -4,7 +4,7 @@ * Description: Code highlighting powered by the VS Code engine * Requires at least: 6.0 * Requires PHP: 7.0 - * Version: 1.11.2 + * Version: 1.11.3 * Author: Kevin Batdorf * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/package.json b/package.json index a3eb8ab..ff52532 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "code-block-pro", "version": "0.1.0", - "description": "My amazing block", + "description": "Code Block Pro - Beautiful syntax highlighting", "author": "Kevin Batdorf", "license": "GPL-2.0-or-later", "main": "build/index.js", diff --git a/readme.txt b/readme.txt index d28279f..d8b4b8a 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: kbat82 Tags: block, code, syntax, snippet, highlighter, JavaScript, php, vs code Tested up to: 6.1 -Stable tag: 1.11.2 +Stable tag: 1.11.3 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -238,7 +238,8 @@ Themes are rendered inside the editor as you type or make changes, so the code b == Changelog == -- Fix: encode and deocde html entities += 1.11.3 - 2023-01-08 = +- Fix: Encode and decode html entities to prevent script tag bug = 1.11.2 - 2023-01-04 = - Fix: Update shiki renderer wasm loader to use ArrayBuffer diff --git a/src/block.json b/src/block.json index 51421a9..4699e0a 100644 --- a/src/block.json +++ b/src/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 2, "name": "kevinbatdorf/code-block-pro", - "version": "1.2.0", + "version": "1.11.3", "title": "Code Block Pro - Beautiful syntax highlighting", "category": "common", "description": "Code highlighting powered by the VS Code engine. No overhead.", @@ -29,7 +29,7 @@ "startingLineNumber": { "type": "number", "default": 1 }, "lineNumbersWidth": { "type": "number" }, "enableHighlighting": { "type": "boolean" }, - "lineHighlights": { "type":"string" }, + "lineHighlights": { "type": "string" }, "lineHighlightColor": { "type": "string" }, "enableBlurring": { "type": "boolean" }, "lineBlurs": { "type": "string" }, diff --git a/src/hooks/useTheme.ts b/src/hooks/useTheme.ts index 6098789..2dd1513 100644 --- a/src/hooks/useTheme.ts +++ b/src/hooks/useTheme.ts @@ -1,6 +1,5 @@ import { useEffect, useState } from '@wordpress/element'; import { applyFilters } from '@wordpress/hooks'; -import { __ } from '@wordpress/i18n'; import { getHighlighter, Lang, setCDN, Theme, setWasm } from 'shiki'; import useSWRImmutable from 'swr/immutable';