Skip to content

Commit 5771938

Browse files
committed
Add special type link handling for fixed-length char type
1 parent 30b05b3 commit 5771938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/format.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const generateCompositeTypeMarkdown = (
137137

138138
const maybeCreateTypeLink = (type: string, customTypeNames: Set<string>) => {
139139
if (customTypeNames.has(type)) return `[${type}](#${type})`
140-
const docsUrl = TYPES[type]
140+
const docsUrl = type.match(/character \(\d+\)/) ? TYPES['character'] : TYPES[type]
141141
if (docsUrl) return `<a href="${docsUrl}">${type}</a>`
142142
return type
143143
}

0 commit comments

Comments
 (0)