Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Markdown jump links and TOC
-
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?
-
Just to elaborate a little, I have tried:
- html link <a href="#link"></a> and target <a name="link"></a>
- markdown link with <a name="link"></a> target
- multimarkdown 6 convention Link [link] and [Target]{target]
Some of these appear as links in Preview, but none navigates.
-
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
- Select line (and strip away extra characters & whitespace from beginning & end if needed)
- Search for the line across the rest of the document and return an index of it
- Move the cursor to that index
I may have time to build this at some point this week.