fsr-de / myHPI

Django/Wagtail page serving myhpi.de
https://myhpi.de
11 stars 11 forks source link

Simplify referencing headers within one page #539

Open lukasrad02 opened 3 months ago

lukasrad02 commented 3 months ago

It is possible to create links to headers on the same page using #<header-slug>, e.g.

Link to [other section](#other-section).

# Other Section

Lorem ipsum

However, creating such links by hand is cumbersome and error-prone.

It would be nice if there would be a button in the markdown editor that can be used to insert a link to some other section of the current page. When clicked, it should show a list of all current headers in the editor and insert a link with the correct href of the selected header.

Additionally, it would be helpful if the href could automatically be adjusted to the translated slug when translating pages or the URL translation editor would at least show a selection, too.