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.
Outline view
-
Hi again!
Is there a way to get an outline view of your document, assuming that it was written in markdown?
Thanks,
Michael -
Not quite what you are looking for, but
tap
on the file's name and you get a list of the existing headings — sort of outline.Otherwise you need to define a dedicated workflow for it.
-
Oh. Well. While this is not exactly what I was looking for (especially since I can't esxport it...) I must admit that the more I get known to Editorial the more I find it absolutely sensational. Thanks!
-
Michael,
You can add a TOC to your document. You basically use the markdown library to render your document. A simple example is to pass your document text to this script and then show the result in an HTML panel. You will also need to add [TOC] in your document where you want your TOC to show.
import workflow import markdown action_in = workflow.get_input() md = markdown.Markdown(extensions=['toc','footnotes']) html = md.convert(action_in) action_out = html workflow.set_out(action_out)