In a support thread titled “Markdown links to anchors not working?”, Paul_King reports that internal anchor links in his Discourse post (e.g., #heading--important-terms) aren’t functioning as expected. xrav3nz clarifies that standard Markdown doesn’t support anchor creation in headings and recommends using raw HTML like <h2 id='heading--important-terms'>Important Terms</h2>, providing a working demo. Paul_King confirms he’s using HTML as a workaround but notes the syntax in Discourse’s default Terms of Service page looks different, suspecting copying between sites may have added extraneous URLs. xrav3nz reviews the official template and finds no syntax difference, noting links use relative anchors like #heading--important-terms and headers use HTML with anchor links. Paul_King realizes his issue may stem from copying formatted content, and finds the provided template link helpful. Finally, JammyDodger offers a modern solution: using plain Markdown headings (e.g., ### My Heading), then copying the auto-generated anchor link that appears when clicking next to the heading — e.g., #my-heading-1 — which Discourse generates dynamically and reliably.
does not skip to this heading further down the page: ## [Important Terms](https://nzarchitecture.net.nz/t/terms-of-service/15076#heading--important-terms)
What am I missing?
Looking at the markdown in the standard/original Discourse Terms of Service page as my example, this appears to be the correct syntax
thanks xrax3nz
That is what I am resorting to right now as it happens - but if you check out the markdown in the standard Terms of Use page of this forum, the syntax looks quite different. Trying to understand why
Hmm, interesting.
I was deriving the markdown by copying and pasting a copy of this forum’s terms of service into a new post on my own forum - which generated a quite different looking syntax (long story - but basically my built in terms of service were somehow deleted, and this is all an effort to recreate)
Perhaps that was my problem, and extraneous url information is being added when I try pasting between sites.
.
Edit - thanks for that link - those templates were pretty handy. Shame no easy way to put them in the original built-in category