asnunes / notion-page-to-html

NodeJS tool to convert public Notion pages to HTML from page ID
MIT License
161 stars 42 forks source link

Allow *.notion.site URLs #30

Closed smor closed 2 years ago

smor commented 2 years ago

Hi Alexandre,

This change allows to use either [www.]notion.so or adjective-noun-123.notion.site URL styles used by Notion. You may test the regex here : https://regex101.com/r/OFkPBO/1 All the tests pass.

Closes #28 It should also fix https://github.com/asnunes/notion-page-to-html-api/issues/2

Best regards, Stéphane

asnunes commented 2 years ago

Thanks for your contribution @smor. I tested it and it is working fine. Merging it