Skip to content

Commit 793075c

Browse files
authored
Make sure example keys are surrounded by quotes (#1246)
1 parent c53d444 commit 793075c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/generate-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function topicElement(key: string, value: JsonObject): boolean {
7979
* @returns the markdown string
8080
*/
8181
function exampleToMarkdown(key: string, example: string | object | number): string {
82-
return codeBlockMarkdown(`${key}: ${formatJSON(example)}`);
82+
return codeBlockMarkdown(`"${key}": ${formatJSON(example)}`);
8383
}
8484

8585
function codeBlockMarkdown(code: string, language = 'json'): string {

0 commit comments

Comments
 (0)