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.


    API to perform 'Show HTML' directly from Python?

    Editorial
    3
    4
    1897
    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.
    • emkay
      emkay last edited by

      Hello,

      I like to develop my workflows purely in Python (so, I can write unit tests for them on my Mac (using mocks for editor, workflow, etc), get the plugin working, then wrap it in json and deploy to Editorial).

      Anyway, I was wondering if the 'Show HTML' workflow action was available as a call from Python? This would enable my latest workflow to be pure Python (and makes wrapping up the json easier, rather than have to add the 'Show HTML" action as a special case).

      Thanks

      Martin

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

        As another Martin :-) I'd like to take HTML generated and post-process it (also in Python) in the same workflow.

        This page shows how to take Markdown (not MultiMarkdown) and convert it:

        markdown.markdown()

        but I'd really rather have MMD.

        So I guess it's a case of building a multipart workflow. :-(

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

          No, the Show HTML action doesn't have a Python equivalent, sorry.

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

            As a matter of interest how would people suggest I post-process the HTML that is generated? Some kind of XML parser? Or just use regular expression matching?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors