Skip to content

Commit

Permalink
add markdown mermaid tag
Browse files Browse the repository at this point in the history
  • Loading branch information
qiksar committed Nov 23, 2022
1 parent d3ba36f commit 789ae48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CrudioDataModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ export default class CrudioDataModel {
* @returns {string}
*/
public ToMermaid(): string {
var output = "erDiagram\r";
var output = "```mermaid\rerDiagram\r";

this.entityDefinitions.map(e => {
output += `${e.Name} {\r`;
Expand All @@ -952,7 +952,7 @@ export default class CrudioDataModel {
});
});

return output;
return output + "\r```\r";
}

/**
Expand Down

0 comments on commit 789ae48

Please sign in to comment.