markdown-it-cjk-friendly 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import MarkdownIt from 'markdown-it';
|
|
2
2
|
|
|
3
|
-
declare function
|
|
3
|
+
declare function markdownItCjkFriendlyPlugin(md: MarkdownIt): void;
|
|
4
4
|
|
|
5
|
-
export {
|
|
5
|
+
export { markdownItCjkFriendlyPlugin as default };
|
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ function isNextCjk(uc) {
|
|
|
41
41
|
function nonEmojiGeneralUseVS(uc) {
|
|
42
42
|
return uc >= 65024 && uc <= 65038;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function markdownItCjkFriendlyPlugin(md) {
|
|
45
45
|
const PreviousState = md.inline.State;
|
|
46
46
|
class CjFriendlyState extends PreviousState {
|
|
47
47
|
scanDelims(start, canSplitWord) {
|
|
@@ -94,5 +94,5 @@ function markdownItCjFriendlyPlugin(md) {
|
|
|
94
94
|
md.inline.State = CjFriendlyState;
|
|
95
95
|
}
|
|
96
96
|
export {
|
|
97
|
-
|
|
97
|
+
markdownItCjkFriendlyPlugin as default
|
|
98
98
|
};
|