@canopycanopycanopy/b-ber-markdown-renderer 3.0.10-link-targets.4 → 3.0.10-react-19.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/highlightjs/highlight.js +11 -11
- package/package.json +17 -17
|
@@ -280,7 +280,7 @@ https://highlightjs.org/
|
|
|
280
280
|
return ret;
|
|
281
281
|
}
|
|
282
282
|
function compileMode(mode, parent) {
|
|
283
|
-
var _context8, _context9,
|
|
283
|
+
var _context8, _context9, _context0, _context1, _context10, _context11;
|
|
284
284
|
if (mode.compiled) return;
|
|
285
285
|
mode.compiled = true;
|
|
286
286
|
mode.keywords = mode.keywords || mode.beginKeywords;
|
|
@@ -334,9 +334,9 @@ https://highlightjs.org/
|
|
|
334
334
|
if (mode.starts) {
|
|
335
335
|
compileMode(mode.starts, parent);
|
|
336
336
|
}
|
|
337
|
-
var terminators = (0, _filter.default)(
|
|
337
|
+
var terminators = (0, _filter.default)(_context0 = (0, _map.default)(_context1 = (0, _concat.default)(_context10 = (0, _map.default)(_context11 = mode.contains).call(_context11, function (c) {
|
|
338
338
|
return c.beginKeywords ? '\\.?(?:' + c.begin + ')\\.?' : c.begin;
|
|
339
|
-
})).call(
|
|
339
|
+
})).call(_context10, [mode.terminator_end, mode.illegal])).call(_context1, reStr)).call(_context0, Boolean);
|
|
340
340
|
mode.terminators = terminators.length ? langRe(joinRe(terminators, '|'), true) : {
|
|
341
341
|
exec: function /*s*/ () {
|
|
342
342
|
return null;
|
|
@@ -550,8 +550,8 @@ https://highlightjs.org/
|
|
|
550
550
|
top: top
|
|
551
551
|
};
|
|
552
552
|
} catch (e) {
|
|
553
|
-
var
|
|
554
|
-
if (e.message && (0, _indexOf.default)(
|
|
553
|
+
var _context12;
|
|
554
|
+
if (e.message && (0, _indexOf.default)(_context12 = e.message).call(_context12, 'Illegal') !== -1) {
|
|
555
555
|
return {
|
|
556
556
|
relevance: 0,
|
|
557
557
|
value: escape(value)
|
|
@@ -572,14 +572,14 @@ https://highlightjs.org/
|
|
|
572
572
|
detected language, may be absent)
|
|
573
573
|
*/
|
|
574
574
|
function highlightAuto(text, languageSubset) {
|
|
575
|
-
var
|
|
575
|
+
var _context13, _context14;
|
|
576
576
|
languageSubset = languageSubset || options.languages || objectKeys(languages);
|
|
577
577
|
var result = {
|
|
578
578
|
relevance: 0,
|
|
579
579
|
value: escape(text)
|
|
580
580
|
};
|
|
581
581
|
var second_best = result;
|
|
582
|
-
(0, _forEach.default)(
|
|
582
|
+
(0, _forEach.default)(_context13 = (0, _filter.default)(_context14 = (0, _filter.default)(languageSubset).call(languageSubset, getLanguage)).call(_context14, autoDetection)).call(_context13, function (name) {
|
|
583
583
|
var current = highlight(name, text, false);
|
|
584
584
|
current.language = name;
|
|
585
585
|
if (current.relevance > second_best.relevance) {
|
|
@@ -612,7 +612,7 @@ https://highlightjs.org/
|
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
614
|
function buildClassName(prevClassName, currentLang, resultLang) {
|
|
615
|
-
var
|
|
615
|
+
var _context15;
|
|
616
616
|
var language = currentLang ? aliases[currentLang] : resultLang,
|
|
617
617
|
result = [(0, _trim.default)(prevClassName).call(prevClassName)];
|
|
618
618
|
if (!prevClassName.match(/\bhljs\b/)) {
|
|
@@ -621,7 +621,7 @@ https://highlightjs.org/
|
|
|
621
621
|
if ((0, _indexOf.default)(prevClassName).call(prevClassName, language) === -1) {
|
|
622
622
|
result.push(language);
|
|
623
623
|
}
|
|
624
|
-
return (0, _trim.default)(
|
|
624
|
+
return (0, _trim.default)(_context15 = result.join(' ')).call(_context15);
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
/*
|
|
@@ -689,8 +689,8 @@ https://highlightjs.org/
|
|
|
689
689
|
var lang = languages[name] = language(hljs);
|
|
690
690
|
restoreLanguageApi(lang);
|
|
691
691
|
if (lang.aliases) {
|
|
692
|
-
var
|
|
693
|
-
(0, _forEach.default)(
|
|
692
|
+
var _context16;
|
|
693
|
+
(0, _forEach.default)(_context16 = lang.aliases).call(_context16, function (alias) {
|
|
694
694
|
aliases[alias] = name;
|
|
695
695
|
});
|
|
696
696
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-markdown-renderer",
|
|
3
|
-
"version": "3.0.10-
|
|
3
|
+
"version": "3.0.10-react-19.1+9972cac6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"rimraf": "^2.7.1"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@canopycanopycanopy/b-ber-grammar-audio-video": "3.0.10-
|
|
29
|
-
"@canopycanopycanopy/b-ber-grammar-dialogue": "3.0.10-
|
|
30
|
-
"@canopycanopycanopy/b-ber-grammar-footnotes": "3.0.10-
|
|
31
|
-
"@canopycanopycanopy/b-ber-grammar-frontmatter": "3.0.10-
|
|
32
|
-
"@canopycanopycanopy/b-ber-grammar-gallery": "3.0.10-
|
|
33
|
-
"@canopycanopycanopy/b-ber-grammar-iframe": "3.0.10-
|
|
34
|
-
"@canopycanopycanopy/b-ber-grammar-image": "3.0.10-
|
|
35
|
-
"@canopycanopycanopy/b-ber-grammar-logo": "3.0.10-
|
|
36
|
-
"@canopycanopycanopy/b-ber-grammar-media": "3.0.10-
|
|
37
|
-
"@canopycanopycanopy/b-ber-grammar-pullquote": "3.0.10-
|
|
38
|
-
"@canopycanopycanopy/b-ber-grammar-section": "3.0.10-
|
|
39
|
-
"@canopycanopycanopy/b-ber-grammar-spread": "3.0.10-
|
|
40
|
-
"@canopycanopycanopy/b-ber-grammar-vimeo": "3.0.10-
|
|
41
|
-
"@canopycanopycanopy/b-ber-parser-footnotes": "3.0.10-
|
|
42
|
-
"@canopycanopycanopy/b-ber-parser-gallery": "3.0.10-
|
|
28
|
+
"@canopycanopycanopy/b-ber-grammar-audio-video": "3.0.10-react-19.1+9972cac6",
|
|
29
|
+
"@canopycanopycanopy/b-ber-grammar-dialogue": "3.0.10-react-19.1+9972cac6",
|
|
30
|
+
"@canopycanopycanopy/b-ber-grammar-footnotes": "3.0.10-react-19.1+9972cac6",
|
|
31
|
+
"@canopycanopycanopy/b-ber-grammar-frontmatter": "3.0.10-react-19.1+9972cac6",
|
|
32
|
+
"@canopycanopycanopy/b-ber-grammar-gallery": "3.0.10-react-19.1+9972cac6",
|
|
33
|
+
"@canopycanopycanopy/b-ber-grammar-iframe": "3.0.10-react-19.1+9972cac6",
|
|
34
|
+
"@canopycanopycanopy/b-ber-grammar-image": "3.0.10-react-19.1+9972cac6",
|
|
35
|
+
"@canopycanopycanopy/b-ber-grammar-logo": "3.0.10-react-19.1+9972cac6",
|
|
36
|
+
"@canopycanopycanopy/b-ber-grammar-media": "3.0.10-react-19.1+9972cac6",
|
|
37
|
+
"@canopycanopycanopy/b-ber-grammar-pullquote": "3.0.10-react-19.1+9972cac6",
|
|
38
|
+
"@canopycanopycanopy/b-ber-grammar-section": "3.0.10-react-19.1+9972cac6",
|
|
39
|
+
"@canopycanopycanopy/b-ber-grammar-spread": "3.0.10-react-19.1+9972cac6",
|
|
40
|
+
"@canopycanopycanopy/b-ber-grammar-vimeo": "3.0.10-react-19.1+9972cac6",
|
|
41
|
+
"@canopycanopycanopy/b-ber-parser-footnotes": "3.0.10-react-19.1+9972cac6",
|
|
42
|
+
"@canopycanopycanopy/b-ber-parser-gallery": "3.0.10-react-19.1+9972cac6",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
44
|
"markdown-it": "^8.4.1",
|
|
45
45
|
"markdown-it-front-matter": "^0.1.2",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"url": "https://maxwellsimmer.com"
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "9972cac6f5865326004d3f752e62d7a166a65e6a"
|
|
66
66
|
}
|