Different preprocessor based on file extension
I used Marked to preview files with different extensions.
I want to use a different pre-processor script on the file, depending on the extension.
But the processor scripts use stdin/stdout, so I don't have a filename to inspect. Is it available somewhere?
-Jason
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
Support Staff 1 Posted by Brett on 31 Jan, 2014 07:43 PM
It's in an environment variable called MARKED_EXT.
-Brett
2 Posted by jmay on 31 Jan, 2014 07:59 PM
Awesome. That worked perfectly. Thanks!