leoncvlt / loconotion

📄 Python tool to turn Notion.so pages into lightweight, customizable static websites
839 stars 132 forks source link

Links not work #43

Open fortunto2 opened 3 years ago

fortunto2 commented 3 years ago

Hi! I try create landing for bashair.ru But links in page not work. Example

<div class="notranslate" data-root="true" placeholder="List" spellcheck="false" style="max-width: 100%; width: 100%; white-space: pre-wrap; word-break: break-word; caret-color: transparent; padding: 3px 2px; text-align: left;" contenteditable="true">
<a class="notion-link-token notion-enable-hover" data-token-index="0" href="https://vk.com/vozduh_str" rel="noopener noreferrer" style="cursor:pointer;color:inherit;word-wrap:break-word;text-decoration:inherit" target="_blank">
<span style="border-bottom:0.05em solid;border-color:rgba(55,53,47,0.4);opacity:0.7">https://vk.com/vozduh_str</span></a></div></a></div>

if delete attribute in div - 'contenteditable', then works!

leoncvlt commented 3 years ago

Good catch, I assume that you manually changed all the contenteditable on your page to false since it seems to be working fine on bashair.ru?

ijsbol commented 3 years ago

Is there a way to fix this from occurring entirely?

2m commented 2 years ago

I also noticed the same problem. When clicking on regular links in the generated website nothing happens. The workaround of deleting the contenteditable attribute in the parent div still works.