children.push(
new Paragraph({
children: [
new Hyperlink({
children: [
new TextRun({
text: linkToken.text,
font: "Arial",
size: 24,
color: "0000FF", // Optional: Blue color for links
underline: true, // Optional: Underline for links
}),
],
href: linkToken.href,
}),
],
spacing: {
before: 60,
after: 60,
line: 300,
lineRule: "auto",
},
})
);
break;
IT IS THE only method works..you are the best
brother please add the feature to render links as hyperlink
case "link": {
consecutiveBreaks = 0;
const linkToken = token as Tokens.Link;
}