Merge pull request #15257 from backstage/jhaals/quote-docs
repo-tools: Quote markdown headers in api-docs
This commit is contained in:
@@ -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('---');
|
||||
|
||||
Reference in New Issue
Block a user