azdo-cli 0.14.0 → 0.15.0-bugfix-76.581

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1250,6 +1250,9 @@ function decodeEntitiesInMarkdownCodeSpans(text) {
1250
1250
  return "`" + decoded + "`";
1251
1251
  });
1252
1252
  }
1253
+ function decodeAdoEntitiesInMarkdown(text) {
1254
+ return text.replaceAll("—", "\u2014").replaceAll("–", "\u2013").replace(/&#x([0-9a-fA-F]+);/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16))).replace(/&#([0-9]+);/g, (_, dec) => String.fromCodePoint(parseInt(dec, 10))).replace(/^(> ?)+/gm, (match) => match.replaceAll(">", ">"));
1255
+ }
1253
1256
  function htmlToMarkdown(html) {
1254
1257
  return NodeHtmlMarkdown.translate(escapeAnglesInCodeElements(html));
1255
1258
  }
@@ -1257,7 +1260,7 @@ function toMarkdown(content) {
1257
1260
  if (isHtml(content)) {
1258
1261
  return htmlToMarkdown(content);
1259
1262
  }
1260
- return decodeEntitiesInMarkdownCodeSpans(content);
1263
+ return decodeEntitiesInMarkdownCodeSpans(decodeAdoEntitiesInMarkdown(content));
1261
1264
  }
1262
1265
 
1263
1266
  // src/services/command-helpers.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azdo-cli",
3
- "version": "0.14.0",
3
+ "version": "0.15.0-bugfix-76.581",
4
4
  "description": "Azure DevOps CLI tool",
5
5
  "type": "module",
6
6
  "bin": {