Forum Archive

Markdown jump links and TOC

greiggy

Hi all, Editorial has an excellent tap-and-view TOC which brings up an outline based on the markdown headings, which navigate quickly and cleanly. Who would want more?

Well, I rely on navigation to find my way around longer docs when I am in a speaking or teaching situation. I am familiar with various Markdown conventions for links and TOC, including the latest Markdown 6. Also familiar with html links. I'm not having much success in Editorial.

If I need to (or want to!) set a link that is not already a ### heading, what works in Editorial?

greiggy

Just to elaborate a little, I have tried:

  • html link and target
  • markdown link with target
  • multimarkdown 6 convention Link [link] and [Target]{target]

Some of these appear as links in Preview, but none navigates.

gjohnhazel

I’m not aware of a way to do this by default in Editorial, however you could fairly easily create a workflow as follows, and assign an abbreviation to it to make it easy to follow:
- first make sure your titles are unique
1. Select line (and strip away extra characters & whitespace from beginning & end if needed)
2. Search for the line across the rest of the document and return an index of it
3. Move the cursor to that index

I may have time to build this at some point this week.