hdoc-tools 0.9.3 → 0.9.4

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/hdoc-validate.js +4 -1
  2. package/package.json +1 -1
package/hdoc-validate.js CHANGED
@@ -78,7 +78,10 @@
78
78
  const checkBritishSpellings = async function (htmlFile, excludes) {
79
79
  const htmlBody = fs.readFileSync(htmlFile.path, 'utf8');
80
80
  const text = html2text.convert(htmlBody, {
81
- wordwrap: null
81
+ wordwrap: null,
82
+ selectors: [
83
+ { selector: 'code', format: 'skip'}
84
+ ]
82
85
  });
83
86
  checkBritishSpelling(htmlFile.path, excludes, text);
84
87
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {