# Link of table of contents not working

**URL:** <https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584>\
**Category:** DEVONthink To Go\
**Created:** [September 28, 2020, 1:41pm UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584 "2020-09-28T13:41:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kzh125](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/k/85f322/32.png) [@kzh125](https://discourse.devontechnologies.com/u/kzh125)\
**Post date:** [September 28, 2020, 1:41pm UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/1 "2020-09-28T13:41:33Z")

</div>

Hello,

When I have large markdown page, I will make table of contents. When I click the link, it will jump to corresponding header.

But in my iphone, it doesn’t work.

Please fix, thanks.

![1](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/c/7/c7f139925869b65b52eea9343cc93a766844a2fb.png)

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [September 28, 2020, 3:13pm UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/2 "2020-09-28T15:13:24Z")

</div>

Welcome @kzh125

I’m not sure where you got that format for a table of contents but the hyphen is incorrect. `(#header1)` would be the proper anchor here.

However, I have an issue filed on the behavior of table of contents in DEVONthink To Go. Thanks for your patience and understanding.

---

<div class="post-metadata">

**Author:** ![kzh125](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/k/85f322/32.png) [@kzh125](https://discourse.devontechnologies.com/u/kzh125)\
**Post date:** [September 28, 2020, 7:49pm UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/3 "2020-09-28T19:49:54Z")

</div>

hello, I use vscode markdown-all-in-one extension.

```auto
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one

```

And in other software, such as VSCode / typora , the link with hyphen works.

But DEVONthink don’t support the hyphen, I think it’s also a problem…

---

<div class="post-metadata">

**Author:** ![kzh125](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/k/85f322/32.png) [@kzh125](https://discourse.devontechnologies.com/u/kzh125)\
**Post date:** [September 28, 2020, 7:55pm UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/4 "2020-09-28T19:55:21Z")

</div>

```auto
https://gist.github.com/asabaylus/3071099

```

links with hypen is github flavored markdown.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [September 28, 2020, 10:36pm UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/5 "2020-09-28T22:36:24Z")

</div>

DEVONthink uses MultiMarkdown.

---

<div class="post-metadata">

**Author:** ![Poromies](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@Poromies](https://discourse.devontechnologies.com/u/Poromies)\
**Post date:** [October 8, 2026, 4:23pm UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/6 "2026-10-08T16:23:59Z")

</div>

I created a simple table of contents/index for rapid access to my most frequently needed files and groups. I used “copy item link” for the target item, then added that link to an entry in a rich text file. This worked well for a very long time, but recently many of the links simply do not work, but others do. I have not reorganised my file structure. Links have been a very valuable feature of DEVONthink to me and it is disappointing that many no longer work for no obvious reason.

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [October 8, 2026, 5:07pm UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/7 "2026-10-08T17:07:20Z")

</div>

> [@Poromies](#):
>
> This worked well for a very long time, but recently many of the links simply do not work, but others do.

What’s the difference between the working and not working links? Do the referenced items still exist, are they in different, maybe closed databases?

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [October 8, 2026, 8:13pm UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/8 "2026-10-08T20:13:29Z")

</div>

Links don’t spontaneously break. And…

> This worked well for a very long time

Many things happen over _“a very long time”_.  
When was it last working?

You could duplicate the table of contents file then select it and run this code snippet. This will validate the item links on if they can’t be found, beep, strike through the text, and log a message.

```applescript
tell application id "DNtp"
	if (selected records) is {} then return
	tell rich text of content record
		repeat with theRun in (attribute runs whose (URL is not missing value))
			set matchingRecord to (get record with uuid (get theRun's URL as string))
			if matchingRecord is missing value then
				beep
				log message (theRun as string) info "Linked document couldn't be located."
				strike theRun
			end if
		end repeat
	end tell
end tell

```

---

<div class="post-metadata">

**Author:** ![Poromies](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@Poromies](https://discourse.devontechnologies.com/u/Poromies)\
**Post date:** [October 9, 2026, 8:20am UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/9 "2026-10-09T08:20:37Z")

</div>

I have spent some time this morning checking my links. Actually, the majority still work, but the section I needed urgently yesterday did not. I can only think that I must have edited or moved the target files and forgotten about it. I am now editing/replacing the links and will check them regularly to see if the links “break” again.

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [October 9, 2026, 8:38am UTC](https://discourse.devontechnologies.com/t/link-of-table-of-contents-not-working/58584/10 "2026-10-09T08:38:35Z")

</div>

If you use item links, they should not break. Are your files indexed?
