repo-tools: Quote markdown headers

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-12-15 16:22:04 +01:00
parent b879c79bb9
commit ac440299ef
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/repo-tools': patch
---
Updated api docs generation to be compatible with Docusaurus 2-alpha and 2.x.
@@ -840,7 +840,9 @@ export async function buildDocs({
context.writer.writeLine('---');
for (const [name, value] of Object.entries(node.values)) {
if (value) {
context.writer.writeLine(`${name}: ${value}`);
context.writer.writeLine(
`${name}: "${String(value).replace(/\"/g, '')}"`,
);
}
}
context.writer.writeLine('---');