@karmaniverous/jeeves-watcher 0.9.6 → 0.9.8

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.
@@ -1151,8 +1151,11 @@ function renderValueAsMarkdown(hbs, section, value) {
1151
1151
  const md = callFormatHelper(hbs, section.format, value, section.formatArgs);
1152
1152
  return rebaseHeadings(md, section.heading);
1153
1153
  }
1154
- const strValue = typeof value === 'string' ? value : JSON.stringify(value, null, 2);
1155
- return hbs.Utils.escapeExpression(strValue);
1154
+ // Return string values as-is renderDoc produces markdown, not HTML.
1155
+ // HTML escaping (if needed) happens downstream when the markdown is rendered.
1156
+ if (typeof value === 'string')
1157
+ return value;
1158
+ return JSON.stringify(value, null, 2);
1156
1159
  }
1157
1160
  function renderEach(hbs, section, value) {
1158
1161
  if (!Array.isArray(value))
package/dist/index.js CHANGED
@@ -468,8 +468,11 @@ function renderValueAsMarkdown(hbs, section, value) {
468
468
  const md = callFormatHelper(hbs, section.format, value, section.formatArgs);
469
469
  return rebaseHeadings(md, section.heading);
470
470
  }
471
- const strValue = typeof value === 'string' ? value : JSON.stringify(value, null, 2);
472
- return hbs.Utils.escapeExpression(strValue);
471
+ // Return string values as-is renderDoc produces markdown, not HTML.
472
+ // HTML escaping (if needed) happens downstream when the markdown is rendered.
473
+ if (typeof value === 'string')
474
+ return value;
475
+ return JSON.stringify(value, null, 2);
473
476
  }
474
477
  function renderEach(hbs, section, value) {
475
478
  if (!Array.isArray(value))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-watcher",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "Filesystem watcher that keeps a Qdrant vector store in sync with document changes",
6
6
  "license": "BSD-3-Clause",