Hello. Have a markdown document created on Macbook that has inter-document link created via copy section link. Works when clicked on link on Macbook but doesn’t work when tap on link on DTG - look like DTG opens another copy of same document but won’t go to section below. Is it a limitation on DTG?
Did more testing, both these inter-document links work on DEVONthink but won’t work on DTG.
x-devonthink-item://C753B033-4135-4BC4-B011-42253D738261?section=markdate
x-devonthink-item://C753B033-4135-4BC4-B011-42253D738261#markdate
The result of markdown is formatted text. Usually rendered HTML, like a web page in a browser. “Source” means the plain text including markup characters.
Discourse (the software running this forum) also uses markdown to format text. So if you just copy & paste directly, we will see the rendered HTML, not the markdown itself. Use the </> button in the text box, which creates a code block:
## Example
This is **raw** markdown.
The markdown syntax was [originally created](https://daringfireball.net/projects/markdown/) by John Gruber.
The code block has syntax highlighting, which makes code easer to read. The default seems to be AppleScript, which can be confusing. You can specify a syntax after the opening backticks: ```txt for no highlighting at all, or ```md for markdown.
It’s not clear if you want to link to a section in a different document, or just in the same document (like with {{TOC}}).
If you want to link to a heading in the same document, I think it makes more sense to use standard MultiMarkdown syntax. That already works, no need to wait for a fix. And it’s compatible with other markdown editors that adhere to the standard.
If the link text is the same as the header, just surround it with brackets: Link to a [Heading]. If you want the link text to be different from the destination heading, use a variation of the normal link syntax: [link text](#heading).
For long/complicated headings, the latter option can be tricky. You can instead specify a custom id for a heading. Simply add [customid] at the end:
Updated to latest DTTG. Still doesn’t work and it’s worse, tapping on internal link opens same document in EDIT SOURCE mode… Tapping on internal links with {{TOC}} open up files in EDIT and jump to {{TOC}} line. Files without {{TOC}} open up files for EDITING and jump to heading of that internal link… Automatically changed into SOURCE mode is dangerous, could have accidentally overwrite or delete information without knowing.
Works perfectly on DEVONthink but doesn’t work on DTTG. I’m going to give up on DTTG and bring laptop when traveling… Have a lot of md files with internal links. Will check back forum in few months, hope it’ll be fixed by then…