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 f8b77f0 commit 7e65f6eCopy full SHA for 7e65f6e
publish/collect.mjs
@@ -26,7 +26,7 @@ for (const [name, path] of Object.entries(parts)) {
26
}
27
28
parts.abnf = "## message.abnf\n\n```abnf\n" + parts.abnf + "\n```";
29
-parts.json = "## message.json\n\n```json\n" + parts.json + "\n```";
+parts.json = "### message.json\n\n```json\n" + parts.json + "\n```";
30
31
// Strip title + table of contents
32
const introStart = parts.intro.indexOf("## Introduction");
@@ -40,7 +40,7 @@ parts.functions = parts.functions.replace(
40
41
const result = Object.values(parts)
42
.join("\n\n")
43
- .replace(/ +$/g, "")
+ .replace(/ +$/gm, "")
44
.replace(/\n{3,}/g, "\n\n")
45
.replace(/\[(.+?)\]\((.+?)\)/g, fixLink);
46
console.log(result);
0 commit comments