hdoc-tools 0.18.5 → 0.18.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-build.js CHANGED
@@ -451,7 +451,7 @@
451
451
  else html_txt = `${fm_header_content}\n${doc_header}\n${html_txt}`;
452
452
 
453
453
  // Wrap h2 and h3 tags, plus content, in id'd divs
454
- const h_html_txt = hdoc.wrapHContent(html_txt);
454
+ html_txt = hdoc.wrapHContent(html_txt);
455
455
 
456
456
  let relative_path = file_path.relativePath;
457
457
  if (
@@ -461,7 +461,7 @@
461
461
  relative_path = relative_path.replace("/index.html", "");
462
462
  }
463
463
 
464
- const index_data = hdoc_index.transform_html_for_index(h_html_txt);
464
+ const index_data = hdoc_index.transform_html_for_index(html_txt);
465
465
 
466
466
  index_data.sections.forEach(section => {
467
467
  index_records.push({
@@ -812,7 +812,7 @@
812
812
  else html_txt = `${fm_header}\n${doc_header}\n${html_txt}`;
813
813
 
814
814
  // Wrap h2 and h3 tags, plus content, in id'd divs
815
- const h_html_txt = hdoc.wrapHContent(html_txt);
815
+ html_txt = hdoc.wrapHContent(html_txt);
816
816
 
817
817
  // Save HTML into HTML file
818
818
  const target_file = file_path.path.replace(
@@ -836,7 +836,7 @@
836
836
  relative_path = relative_path.replace("/index.html", "");
837
837
  }
838
838
 
839
- const index_data = hdoc_index.transform_html_for_index(h_html_txt);
839
+ const index_data = hdoc_index.transform_html_for_index(html_txt);
840
840
 
841
841
  index_data.sections.forEach(section => {
842
842
  index_records.push({