-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exclamation mark spoilers are deprecated - this commit removes them in favour of their replacement
- Loading branch information
Showing
4 changed files
with
128 additions
and
40 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
.yarn/patches/@traptitech-markdown-it-spoiler-npm-1.1.6-ee0dc02626.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
diff --git a/index.js b/index.js | ||
index 601cb79ecd40dee024ee99e02da65937f1539e00..e9fbbb5f79840d0ab56586918db79f203168df92 100644 | ||
--- a/index.js | ||
+++ b/index.js | ||
@@ -24,7 +24,7 @@ | ||
* OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
'use strict' | ||
-const exMark = 0x21 /* ! */ | ||
+const exMark = 0x7C /* | */ | ||
|
||
const tokenize = frontPriorMode => (state, silent) => { | ||
if (silent) return false | ||
@@ -87,19 +87,19 @@ const postProcess = (state, delimiters) => { | ||
tokenO.tag = "span" | ||
tokenO.attrs = [["class", "spoiler"]] | ||
tokenO.nesting = 1 | ||
- tokenO.markup = "!!" | ||
+ tokenO.markup = "||" | ||
tokenO.content = "" | ||
|
||
const tokenC = state.tokens[endDelim.token] | ||
tokenC.type = "spoiler_close" | ||
tokenC.tag = "span" | ||
tokenC.nesting = -1 | ||
- tokenC.markup = "!!" | ||
+ tokenC.markup = "||" | ||
tokenC.content = "" | ||
|
||
if ( | ||
state.tokens[endDelim.token - 1].type === "text" && | ||
- state.tokens[endDelim.token - 1].content === "!" | ||
+ state.tokens[endDelim.token - 1].content === "|" | ||
) { | ||
loneMarkers.push(endDelim.token - 1) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
diff --git a/dist/index.cjs.js b/dist/index.cjs.js | ||
index 5ba2eaa14a8565465f40b453437b0226683b56e6..0df5c2690333873324da1f092427f027507e601c 100644 | ||
--- a/dist/index.cjs.js | ||
+++ b/dist/index.cjs.js | ||
@@ -3680,6 +3680,7 @@ function isTerminatorChar(ch) { | ||
case 0x5F /* _ */: | ||
case 0x60 /* ` */: | ||
case 0x7B /* { */: | ||
+ case 0x7C /* | */: | ||
case 0x7D /* } */: | ||
case 0x7E /* ~ */: | ||
return true; | ||
diff --git a/dist/markdown-it.js b/dist/markdown-it.js | ||
index 3a9d89cec6e1a56ee68a68a14103c516d5e8b864..33433e8aa18955ef0814b3f8a3db0fee94fef1a4 100644 | ||
--- a/dist/markdown-it.js | ||
+++ b/dist/markdown-it.js | ||
@@ -4292,6 +4292,7 @@ | ||
case 95 /* _ */ : | ||
case 96 /* ` */ : | ||
case 123 /* { */ : | ||
+ case 124 /* | */ : | ||
case 125 /* } */ : | ||
case 126 /* ~ */ : | ||
return true; | ||
diff --git a/lib/rules_inline/text.mjs b/lib/rules_inline/text.mjs | ||
index 9be42274c599ad2211de862104b979af134000d4..102f53550e11e82c6821dd3cf38b85ddddd2c708 100644 | ||
--- a/lib/rules_inline/text.mjs | ||
+++ b/lib/rules_inline/text.mjs | ||
@@ -31,6 +31,7 @@ function isTerminatorChar (ch) { | ||
case 0x5F/* _ */: | ||
case 0x60/* ` */: | ||
case 0x7B/* { */: | ||
+ case 0x7C/* | */: | ||
case 0x7D/* } */: | ||
case 0x7E/* ~ */: | ||
return true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,12 @@ | |
"@react-native-community/hooks": "^3.0.0", | ||
"@rexovolt/notifee": "^9.0.2", | ||
"@rexovolt/react-native-side-menu": "^2.0.0", | ||
"@traptitech/markdown-it-spoiler": "^1.1.6", | ||
"@traptitech/markdown-it-spoiler": "patch:@traptitech/markdown-it-spoiler@npm%3A1.1.6#~/.yarn/patches/@traptitech-markdown-it-spoiler-npm-1.1.6-ee0dc02626.patch", | ||
"@xmldom/xmldom": "^0.8.10", | ||
"babel-plugin-module-resolver": "^5.0.2", | ||
"date-fns": "^3.6.0", | ||
"i18next": "^23.14.0", | ||
"intl-pluralrules": "^2.0.1", | ||
"markdown-it-regexp": "^0.4.0", | ||
"mobx": "^6.13.1", | ||
"mobx-react-lite": "^4.0.7", | ||
"react": "^18.3.1", | ||
|
@@ -94,6 +93,7 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"resolutions": { | ||
"@react-native/gradle-plugin@npm:0.75.0-rc.6": "patch:@react-native/gradle-plugin@npm%3A0.75.0-rc.6#~/.yarn/patches/@react-native-gradle-plugin-npm-0.75.0-rc.6-3d2b8a2db4.patch" | ||
"@react-native/gradle-plugin@npm:0.75.0-rc.6": "patch:@react-native/gradle-plugin@npm%3A0.75.0-rc.6#~/.yarn/patches/@react-native-gradle-plugin-npm-0.75.0-rc.6-3d2b8a2db4.patch", | ||
"markdown-it": "patch:markdown-it@npm%3A14.1.0#~/.yarn/patches/markdown-it-npm-14.1.0-e337d75bfe.patch" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters