mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Fix unescaping issue with HTML entities
This commit is contained in:
+6
-1
@@ -1,4 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "workspace-root",
|
"name": "workspace-root",
|
||||||
"private": true
|
"private": true,
|
||||||
|
"pnpm": {
|
||||||
|
"patchedDependencies": {
|
||||||
|
"mdsvex@0.11.2": "patches/mdsvex@0.11.2.patch"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
diff --git a/dist/browser-es.js b/dist/browser-es.js
|
||||||
|
index a0b50af984340ca02b8ab51e96571d4cb02e5d5f..58d143784c2a0be12ab30b5aaa84bf9b8cd49850 100644
|
||||||
|
--- a/dist/browser-es.js
|
||||||
|
+++ b/dist/browser-es.js
|
||||||
|
@@ -40143,6 +40143,10 @@ function parse$6(value, settings) {
|
||||||
|
|
||||||
|
namedEntity = type === name$1 ? decodeEntity(characters) : false;
|
||||||
|
|
||||||
|
+ // QUICKFIX https://github.com/pngwn/MDsveX/issues/296
|
||||||
|
+ if (namedEntity == '<') namedEntity = '<';
|
||||||
|
+ if (namedEntity == '>') namedEntity = '>';
|
||||||
|
+
|
||||||
|
if (namedEntity) {
|
||||||
|
entityCharacters = characters;
|
||||||
|
entity = namedEntity;
|
||||||
|
diff --git a/dist/browser-umd.js b/dist/browser-umd.js
|
||||||
|
index 10195fa23730cc1a6b3cdcbfc2bb02abf8974140..f105c1eb55b1ed999c0e451371fbe5ae8aed8d86 100644
|
||||||
|
--- a/dist/browser-umd.js
|
||||||
|
+++ b/dist/browser-umd.js
|
||||||
|
@@ -40149,6 +40149,10 @@
|
||||||
|
|
||||||
|
namedEntity = type === name$1 ? decodeEntity(characters) : false;
|
||||||
|
|
||||||
|
+ // QUICKFIX https://github.com/pngwn/MDsveX/issues/296
|
||||||
|
+ if (namedEntity == '<') namedEntity = '<';
|
||||||
|
+ if (namedEntity == '>') namedEntity = '>';
|
||||||
|
+
|
||||||
|
if (namedEntity) {
|
||||||
|
entityCharacters = characters;
|
||||||
|
entity = namedEntity;
|
||||||
|
diff --git a/dist/main.cjs.js b/dist/main.cjs.js
|
||||||
|
index 7c8cdc59fc04d05308d2799d283b01c934d6c46f..d68acf75b3382d38c6286a00ec71d9bd0e98a8af 100644
|
||||||
|
--- a/dist/main.cjs.js
|
||||||
|
+++ b/dist/main.cjs.js
|
||||||
|
@@ -6428,6 +6428,10 @@ function parse$6(value, settings) {
|
||||||
|
|
||||||
|
namedEntity = type === name$1 ? decodeEntity(characters) : false;
|
||||||
|
|
||||||
|
+ // QUICKFIX https://github.com/pngwn/MDsveX/issues/296
|
||||||
|
+ if (namedEntity == '<') namedEntity = '<';
|
||||||
|
+ if (namedEntity == '>') namedEntity = '>';
|
||||||
|
+
|
||||||
|
if (namedEntity) {
|
||||||
|
entityCharacters = characters;
|
||||||
|
entity = namedEntity;
|
||||||
|
diff --git a/dist/main.es.js b/dist/main.es.js
|
||||||
|
index f58fffbfddbb48410d4e442b679b5f18bdb89dcd..2f2bdbb9778faf6cfe8dc7da620a9292604550a1 100644
|
||||||
|
--- a/dist/main.es.js
|
||||||
|
+++ b/dist/main.es.js
|
||||||
|
@@ -6401,6 +6401,10 @@ function parse$6(value, settings) {
|
||||||
|
|
||||||
|
namedEntity = type === name$1 ? decodeEntity(characters) : false;
|
||||||
|
|
||||||
|
+ // QUICKFIX https://github.com/pngwn/MDsveX/issues/296
|
||||||
|
+ if (namedEntity == '<') namedEntity = '<';
|
||||||
|
+ if (namedEntity == '>') namedEntity = '>';
|
||||||
|
+
|
||||||
|
if (namedEntity) {
|
||||||
|
entityCharacters = characters;
|
||||||
|
entity = namedEntity;
|
||||||
Generated
+7
-2
@@ -4,6 +4,11 @@ settings:
|
|||||||
autoInstallPeers: true
|
autoInstallPeers: true
|
||||||
excludeLinksFromLockfile: false
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
patchedDependencies:
|
||||||
|
mdsvex@0.11.2:
|
||||||
|
hash: ms5oa5yo65j2h5hjycgqfevyce
|
||||||
|
path: patches/mdsvex@0.11.2.patch
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
.: {}
|
.: {}
|
||||||
@@ -179,7 +184,7 @@ importers:
|
|||||||
version: 4.0.0
|
version: 4.0.0
|
||||||
mdsvex:
|
mdsvex:
|
||||||
specifier: ^0.11.2
|
specifier: ^0.11.2
|
||||||
version: 0.11.2(svelte@4.2.18)
|
version: 0.11.2(patch_hash=ms5oa5yo65j2h5hjycgqfevyce)(svelte@4.2.18)
|
||||||
rehype-katex-svelte:
|
rehype-katex-svelte:
|
||||||
specifier: '1.2'
|
specifier: '1.2'
|
||||||
version: 1.2.0
|
version: 1.2.0
|
||||||
@@ -4499,7 +4504,7 @@ snapshots:
|
|||||||
|
|
||||||
mdn-data@2.0.30: {}
|
mdn-data@2.0.30: {}
|
||||||
|
|
||||||
mdsvex@0.11.2(svelte@4.2.18):
|
mdsvex@0.11.2(patch_hash=ms5oa5yo65j2h5hjycgqfevyce)(svelte@4.2.18):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/unist': 2.0.10
|
'@types/unist': 2.0.10
|
||||||
prism-svelte: 0.4.7
|
prism-svelte: 0.4.7
|
||||||
|
|||||||
Reference in New Issue
Block a user