Multiple processors depending on file ending

Björn Antonsson's Avatar

Björn Antonsson

09 Mar, 2012 08:57 AM

Hi,
I'm constantly switching the processor back and forth depending on if I do Markdown, reST or Textile.

It would be great if you could have one processor configured per file ending (or per regular expression), or if the filename was available as either an argument or an environment variable to the processor.

/Björn

  1. Support Staff 1 Posted by Brett on 09 Mar, 2012 02:39 PM

    Brett's Avatar

    I agree, and this is on the roadmap. I haven't decided exactly how I want
    to implement it, but I do think it would be useful in many situations.

  2. 2 Posted by bjorn.antonsson on 22 Mar, 2012 09:12 AM

    bjorn.antonsson's Avatar

    A first step could be to make the filename or extension available as an
    environment variable that you could use in your scripts.

    /Björn

  3. Support Staff 3 Posted by Brett on 22 Mar, 2012 11:44 AM

    Brett's Avatar

    That would be easy enough to implement, and seems like a really good idea. I'll definitely look into it.

    Thanks,
    Brett

  4. 4 Posted by Dan Sharp on 23 Jan, 2014 11:34 PM

    Dan Sharp's Avatar

    Any progress on this?

    I too would love to have this option. I'm starting to write a lot more in asciidoc so I've got a custom processor for Marked to handle that, but I'm also still maintaining markdown docs. Having a configurable processor by file type/extension would be AWESOME!

    Thanks,
    Danimal

  5. Support Staff 5 Posted by Brett on 23 Jan, 2014 11:36 PM

    Brett's Avatar

    This is a large undertaking. I'm making progress, but it's been
    secondary to getting the App Store version ready. I'm definitely working
    on it, though.

    -Brett

  6. 6 Posted by Dan Sharp on 24 Jan, 2014 02:24 AM

    Dan Sharp's Avatar

    Brett,

    Thank you for the reply. No worries at all... glad to hear that it's a work in progress.

    :-)

    -Danimal

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac