@karmaniverous/jeeves-watcher 0.9.6 → 0.9.7
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
|
-
|
|
1155
|
-
|
|
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
|
-
|
|
472
|
-
|
|
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