azdo-cli 0.15.0-bugfix-76.583 → 0.15.0-bugfix-76.587
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.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1310,7 +1310,7 @@ var ADO_NAMED_ENTITIES = {
|
|
|
1310
1310
|
lArr: "\u21D0"
|
|
1311
1311
|
};
|
|
1312
1312
|
function decodeAdoEntitiesInMarkdown(text) {
|
|
1313
|
-
return text.replace(/&([a-zA-Z]+);/g, (match, name) => ADO_NAMED_ENTITIES[name] ?? match).replace(/&#x([0-9a-fA-F]+);/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16))).replace(/&#(
|
|
1313
|
+
return text.replace(/&([a-zA-Z]+);/g, (match, name) => ADO_NAMED_ENTITIES[name] ?? match).replace(/&#x([0-9a-fA-F]+);/g, (_, hex) => String.fromCodePoint(Number.parseInt(hex, 16))).replace(/&#(\d+);/g, (_, dec) => String.fromCodePoint(Number.parseInt(dec, 10))).replaceAll("&", "&");
|
|
1314
1314
|
}
|
|
1315
1315
|
function htmlToMarkdown(html) {
|
|
1316
1316
|
return NodeHtmlMarkdown.translate(escapeAnglesInCodeElements(html));
|