Plugs: Add command

This commit is contained in:
Zef Hemel
2022-11-20 10:56:52 +01:00
parent 7f7be814fc
commit 5d89e15959
4 changed files with 49 additions and 2 deletions
+5 -2
View File
@@ -43,7 +43,10 @@ export async function readYamlPage(
export async function writeYamlPage(
pageName: string,
data: any,
prelude = "",
): Promise<void> {
const text = YAML.stringify(data);
await space.writePage(pageName, "```yaml\n" + text + "\n```");
const text = YAML.stringify(data, {
noCompatMode: true,
});
await space.writePage(pageName, prelude + "```yaml\n" + text + "\n```");
}