added markdown parser for @@ types used in typegen

This commit is contained in:
outfoxxed 2024-10-16 04:22:33 -07:00
parent 77e2d05d6f
commit 00feaca3d5
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 226 additions and 206 deletions

View file

@ -104,12 +104,12 @@ export function getQMLTypeLinkObject(unparsed: string) {
: linkSplit[0];
const linkObj: QMLTypeLinkObject = {
type: "qt",
module: linkModule,
module: linkModule.replace("_", "-"),
name: linkSplit[1].slice(1),
};
if (linkSplit.length > 2) {
linkObj.mname = linkSplit[3];
linkObj.mtype = linkSplit[4];
linkObj.mname = linkSplit[2].slice(1);
linkObj.mtype = linkSplit[3].slice(1);
}
return linkObj;
},