@bigbinary/neeto-editor 1.43.27 → 1.43.28
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.
|
@@ -15077,7 +15077,7 @@ var common = hljs;
|
|
|
15077
15077
|
var HighlightJS = /*@__PURE__*/getDefaultExportFromCjs(common);
|
|
15078
15078
|
|
|
15079
15079
|
/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */
|
|
15080
|
-
var highlightLinesScriptCDNPath = "
|
|
15080
|
+
var highlightLinesScriptCDNPath = "https://cdn.jsdelivr.net/gh/TRSasasusu/highlightjs-highlight-lines.js@1.2.0/highlightjs-highlight-lines.min.js";
|
|
15081
15081
|
var getHighlightedLines = function getHighlightedLines(preNode, codeNode) {
|
|
15082
15082
|
var _preNode$getAttribute, _highlightedLines$spl, _highlightedLines$spl2;
|
|
15083
15083
|
var highlightedLines = (_preNode$getAttribute = preNode === null || preNode === void 0 ? void 0 : preNode.getAttribute("data-highlighted-lines")) !== null && _preNode$getAttribute !== void 0 ? _preNode$getAttribute : codeNode === null || codeNode === void 0 ? void 0 : codeNode.getAttribute("data-highlighted-lines");
|
|
@@ -15134,7 +15134,7 @@ function applyCodeblockDecorations(codeElement) {
|
|
|
15134
15134
|
});
|
|
15135
15135
|
HighlightJS.highlightLinesElement(codeElement, highlightLinesOptions);
|
|
15136
15136
|
}
|
|
15137
|
-
|
|
15137
|
+
var fetchHighlightLinesScript = function fetchHighlightLinesScript() {
|
|
15138
15138
|
var script = document.createElement("script");
|
|
15139
15139
|
script.src = highlightLinesScriptCDNPath;
|
|
15140
15140
|
script.async = true;
|
|
@@ -15142,5 +15142,10 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
|
15142
15142
|
script.addEventListener("load", function () {
|
|
15143
15143
|
document.querySelectorAll("pre code").forEach(applyCodeblockDecorations);
|
|
15144
15144
|
});
|
|
15145
|
-
}
|
|
15145
|
+
};
|
|
15146
|
+
(function () {
|
|
15147
|
+
if (document.readyState === "loading") {
|
|
15148
|
+
document.addEventListener("DOMContentLoaded", fetchHighlightLinesScript);
|
|
15149
|
+
} else fetchHighlightLinesScript();
|
|
15150
|
+
})();
|
|
15146
15151
|
//# sourceMappingURL=codeBlockHighlight.js.map
|