Skip to content

Commit

Permalink
move generated from text outside of code example block
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJuanAndOnly99 committed Mar 7, 2024
1 parent 5423041 commit 11ad90f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schema2Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ function generateObjectMD(schema, title, schemaFolderName, filePath, version) {
markdownContent += `## Examples\n\n`;
markdownContent += '```json\n';
markdownContent += JSON.stringify(schema.examples, null, 2);
markdownContent += '\n```';
markdownContent += '\n```\n\n';
}
const url = filePath.replace("schemas/", `https://github.com/finos/FDC3/tree/master/schemas/`);
markdownContent += `Generated from ${url}`;

}

const frontMatter = generateFrontMatter(objectName, schema.description);
Expand Down

0 comments on commit 11ad90f

Please sign in to comment.