We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ef5ca commit c4eef9fCopy full SHA for c4eef9f
webhook/index.js
@@ -60,8 +60,9 @@ function getContent(filename, data) {
60
traversalArticle(data['nav'], (key, value) => {
61
if(value == filename) title = key;
62
});
63
- const h2 = lines.filter(e => e.match(h2reg));
+ const h2 = lines.filter(e => e.match(h2reg)).map(e => `<h2>${e.replace(/^## /, '')}</h2>`);
64
65
+ others = others.map(e => e.replace(/^##+ /, ''));
66
67
remark.process(others.join('\n'), (err, file) => {
68
if (err) {
@@ -73,6 +74,8 @@ function getContent(filename, data) {
73
74
.replace("\\n\\n", "\\n");
75
76
77
+ others.replace()
78
+
79
return [title, others, h2];
80
}
81
0 commit comments