hdoc-tools 0.8.36 → 0.8.38

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/hdoc-build.js CHANGED
@@ -280,6 +280,7 @@
280
280
  linkify: true,
281
281
  typographer: true
282
282
  });
283
+ md.linkify.set({ fuzzyEmail: false, fuzzyLink: false, fuzzyIP: false });
283
284
 
284
285
  // Process Frontmatter tags
285
286
  let frontmatter_content = "";
package/hdoc-validate.js CHANGED
@@ -41,11 +41,6 @@
41
41
  continue;
42
42
  }
43
43
 
44
- // Skip mailto links
45
- if (links[i].startsWith('mailto:')) {
46
- continue;
47
- }
48
-
49
44
  try {
50
45
  await axios.get(links[i], { httpsAgent: agent });
51
46
  messages[htmlFile.relativePath].push(`Link is a valid external URL: ${links[i]}`);
@@ -176,8 +171,8 @@
176
171
  // Get a list of HTML files in source_path
177
172
  dree.scan(source_path, dreeOptions, fileCallback);
178
173
 
179
- if (hdocbook_project.linkValidation && hdocbook_project.linkValidation.exclude_links && hdocbook_project.linkValidation.exclude_links instanceof Array) {
180
- hdocbook_project.linkValidation.exclude_links.forEach(function(excl_link) {
174
+ if (hdocbook_project.validation && hdocbook_project.validation.exclude_links && hdocbook_project.validation.exclude_links instanceof Array) {
175
+ hdocbook_project.validation.exclude_links.forEach(function(excl_link) {
181
176
  exclude_links[excl_link] = true;
182
177
  });
183
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.8.36",
3
+ "version": "0.8.38",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {