omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Editorial
    3
    4
    3131
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Michael
      Michael last edited by

      Hi again!

      Is there a way to get an outline view of your document, assuming that it was written in markdown?

      Thanks,
      Michael

      1 Reply Last reply Reply Quote 0
      • Stefano
        Stefano last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • Michael
          Michael last edited by

          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!

          1 Reply Last reply Reply Quote 0
          • phillipsmn
            phillipsmn last edited by

            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)
            
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors