hdoc-tools 0.11.8 → 0.11.9

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-serve.js +14 -17
  2. package/package.json +1 -1
package/hdoc-serve.js CHANGED
@@ -83,9 +83,9 @@
83
83
  md_txt = includes_processed.body;
84
84
  if (includes_processed.errors && includes_processed.errors.length > 0) {
85
85
  console.error(`Error(s) when processing includes in ${file_path}`);
86
- for (let i = 0; i < includes_processed.errors.length; i++) {
87
- console.error(includes_processed.errors[i]);
88
- }
86
+ for (let i = 0; i < includes_processed.errors.length; i++) {
87
+ console.error(includes_processed.errors[i]);
88
+ }
89
89
  } else {
90
90
  if (includes_processed.found > 0) {
91
91
  console.log(`Includes injected into document: ${includes_processed.success}`);
@@ -93,22 +93,19 @@
93
93
  }
94
94
 
95
95
  const md = require('markdown-it')({
96
- // enable everything
97
- html: true,
98
- linkify: true,
99
- typographer: true,
100
- // highlight: function (str, lang) {
101
- // if (lang && hljs.getLanguage(lang)) {
102
- // try {
103
- // return hljs.highlight(lang, str, true).value;
104
- // } catch (__) {}
105
- // }
106
- // }
107
- });
108
-
96
+ // enable everything
97
+ html: true,
98
+ linkify: true,
99
+ typographer: true
100
+ });
101
+ md.linkify.set({
102
+ fuzzyEmail: false,
103
+ fuzzyLink: false,
104
+ fuzzyIP: false
105
+ });
109
106
  var frontmatter_content = "";
110
107
  md.use(mdfm, function (fm) {
111
- frontmatter_content = fm;
108
+ frontmatter_content = fm;
112
109
  });
113
110
 
114
111
  const tips = require(__dirname + '/custom_modules/tips.js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.11.8",
3
+ "version": "0.11.9",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {