Skip to content

Commit 9ff6d50

Browse files
authored
Convert heading anchors in markdown links to lowercase (#416)
1 parent 3c95e51 commit 9ff6d50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/exportAs/documentation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { databases } from "../../data/databases";
55
export function jsonToDocumentation(obj) {
66
const documentationSummary = obj.tables
77
.map((table) => {
8-
return `\t- [${table.name}](#${table.name})`;
8+
return `\t- [${table.name}](#${table.name.toLowerCase()})`;
99
})
1010
.join("\n");
1111

@@ -84,7 +84,7 @@ export function jsonToDocumentation(obj) {
8484

8585
return (
8686
`# ${obj.title} documentation\n## Summary\n\n- [Introduction](#introduction)\n- [Database Type](#database-type)\n` +
87-
`- [Table Structure](#table-structure)\n${documentationSummary}\n- [Relationships](#relationships)\n- [Database Diagram](#database-Diagram)\n\n` +
87+
`- [Table Structure](#table-structure)\n${documentationSummary}\n- [Relationships](#relationships)\n- [Database Diagram](#database-diagram)\n\n` +
8888
`## Introduction\n\n## Database type\n\n- **Database system:** ` +
8989
`${databases[obj.database].name}\n## Table structure\n\n${documentationEntities}` +
9090
`\n## Relationships\n\n${documentationRelationships}\n` +

0 commit comments

Comments
 (0)