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.
- package/hdoc-serve.js +14 -17
- 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
|
-
|
87
|
-
|
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
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
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
|
-
|
108
|
+
frontmatter_content = fm;
|
112
109
|
});
|
113
110
|
|
114
111
|
const tips = require(__dirname + '/custom_modules/tips.js');
|