cybercongress / cyb-ts

Immortal robot for the Great Web
https://cyb.ai
163 stars 40 forks source link

footnotes links are broken `/particle` #594

Open maxim-uvarov opened 2 years ago

maxim-uvarov commented 2 years ago

Markdown supports adding footnotes with [^1] syntax.

Cyb creates hrefs on the place of using footnotes with the destination #fn1, but in footer it creates <li id="user-content-fn1">demo<a href="#fnref1">↩</a></li> element. So it adds user-content-, which breaks link.

as well href on icon ↩ is created with anchor <a href="#fnref1">↩</a>, while on place it is id="user-content-fnref1".

Example page with the problem: https://cyb.ai/ipfs/QmQ9t7vMr9re3MvGjYi7Q3XR2EKKdrrPHrh4WDKzXPQZVv

image
saint-Joy commented 1 year ago

related to particle