9gustin / react-notion-render

A library to render notion pages
MIT License
144 stars 20 forks source link

Open internal pages link on the new tab #181

Closed ixzzd closed 11 months ago

ixzzd commented 12 months ago

Link to the internal pages has a mention type in notion API:

{
            "type": "mention",
            "mention": {
                "type": "page",
                "page": {
                    "id": "2468a3-44a5-73dd-458c7-7863adc09"
                }
            },
            "plain_text": "link test",
            "href": "https://www.notion.so/2468a344a573dd458c77863adc09"
}

And there is no option to make it open on the new tab- this would be useful to have such behaviour by default, or on-demand.

9gustin commented 11 months ago

Hi! @ixzzd Version 3.11.3 is out, im really sorry for the delay 😢

Thanks for your PR again :)

Release: https://github.com/9gustin/react-notion-render/releases/tag/v3.11.3

ixzzd commented 11 months ago

I can confirm that the issue is resolved, now the nested links opens on the new tab as expected. Thank you @9gustin for the great package :)