Skip to content

support for hyper links #18

@abdulrehman898998

Description

@abdulrehman898998

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;

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;

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions