hdoc-tools 0.19.4 → 0.19.6

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-create.js CHANGED
@@ -47,7 +47,7 @@
47
47
  for (const navkey in nav_paths[key]) {
48
48
  if (nav_paths[key].hasOwnProperty(navkey)) {
49
49
  for (let i = 0; i < nav_paths[key][navkey].length; i++) {
50
- if (!processed_links[nav_paths[key][navkey][i].link]) {
50
+ if (nav_paths[key][navkey][i].link && !processed_links[nav_paths[key][navkey][i].link]) {
51
51
  nav_paths[key][navkey][i].path = path.join(source_path, nav_paths[key][navkey][i].link);
52
52
  await add_doc(nav_paths[key][navkey][i]);
53
53
  }
package/hdoc-db.js CHANGED
@@ -66,13 +66,13 @@
66
66
  sections: []
67
67
  };
68
68
 
69
- const divs = hdoc.getIDDivs(html_txt);
69
+ //const divs = hdoc.getIDDivs(html_txt);
70
70
 
71
71
  // Get frontmatter properties
72
72
  const fm_headers = hdoc.getHTMLFrontmatterHeader(html_txt);
73
73
  response.fm_props = fm_headers.fm_properties;
74
74
 
75
- if (divs.length > 0) {
75
+ /*if (divs.length > 0) {
76
76
  divs.forEach(div => {
77
77
  // Convert HTML into plain text
78
78
  let text = response.text = html2text.convert(div.html, {
@@ -96,7 +96,7 @@
96
96
  preview: preview
97
97
  })
98
98
  });
99
- } else {
99
+ } else { */
100
100
  // Convert HTML into plain text
101
101
  let text = response.text = html2text.convert(html_txt, {
102
102
  ignoreHref: true,
@@ -117,7 +117,7 @@
117
117
  text: text,
118
118
  preview: preview
119
119
  })
120
- }
120
+ //}
121
121
  return response;
122
122
  };
123
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.19.4",
3
+ "version": "0.19.6",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {