hdoc-tools 0.7.25 → 0.7.26
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 +6 -1
- package/hdoc-serve.js +6 -1
- package/package.json +1 -1
package/hdoc-build.js
CHANGED
|
@@ -55,8 +55,13 @@
|
|
|
55
55
|
var frontmatter_content = "";
|
|
56
56
|
md.use(mdfm, function (fm) {
|
|
57
57
|
frontmatter_content = fm;
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const tips = require(__dirname + '/custom_modules/tips.js');
|
|
61
|
+
md.use(tips, {
|
|
62
|
+
links: true
|
|
58
63
|
});
|
|
59
|
-
|
|
64
|
+
|
|
60
65
|
// Render markdown into HTML
|
|
61
66
|
var html_txt = md.render(md_txt.toString());
|
|
62
67
|
|
package/hdoc-serve.js
CHANGED
|
@@ -106,12 +106,17 @@
|
|
|
106
106
|
// }
|
|
107
107
|
// }
|
|
108
108
|
});
|
|
109
|
-
|
|
109
|
+
|
|
110
110
|
var frontmatter_content = "";
|
|
111
111
|
md.use(mdfm, function (fm) {
|
|
112
112
|
frontmatter_content = fm;
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
+
const tips = require(__dirname + '/custom_modules/tips.js');
|
|
116
|
+
md.use(tips, {
|
|
117
|
+
links: true
|
|
118
|
+
});
|
|
119
|
+
|
|
115
120
|
// Render markdown into HTML
|
|
116
121
|
var html_txt = md.render(md_txt.toString());
|
|
117
122
|
|