Brett on 18 Apr, 2013 05:28 PM
Exactly like that. You'd need to have a custom processor that read the OPML and then passed it to MultiMarkdown itself, returning just the resulting HTML. The problem is going to be that the OPML extension will trigger a warning from Marked, so you'd probably have to rename the OPML files with a different (e.g. txt or md) extension. I'll work on a fix for that in the near future.
Hi Brett, I haven't actually given this a shot yet but I wanted
to check to see if the kind of preprocessor that we discussed in
this thread is now possible with marked? Still trying to get OPML
to marked preview.
Sorry to keep needling you about this, but I'm trying to use
OPML2MMD perl script so that I can preview/export OPML files
without having to first go to MMD Composer, exporting as MMD, then
sending through Marked.
I have /Users/tsvoronos/Library/Application\
Support/MultiMarkdown/bin/mmd2OPML.pl as the preprocessor,
but still getting the rich text fail dialog. Does this mean that
it’s just not possible, or is there something wrong with how
I’m specifying this?
Brett on 14 Nov, 2014 02:53 PM
Marked does a quick check based on file extension, and throws that error
if "opml" is detected. Would it be possible to use a different extension
on the files you're previewing? "opmlmd" or something? Or just "md"?
Bummer. Changing the file extension sort of defeats the purpose because then omnioutliner/mindnode say they can't open it anymore.
That said, even if I do that my strategy isn't working as it only produces the first few lines of the OPML file itself (not converted to MMD), which makes me think that my preprocessor is being specified wrong:
Brett on 14 Nov, 2014 03:19 PM
Yeah, your preprocessor is being bypassed, probably due to an error. Try
putting the script in /usr/local/bin/, making sure it's executable and
works from the command line with `cat filename.opml |
/usr/local/bin/opml2mmd`, and then drag the entire /usr/local/bin folder
to Marked to make sure it has permissions. Then try opening a renamed
OPML file in Marked and see what happens.
I'm happy to remove the extension name restriction in the next update,
but the only way around it right now is to change the extension.
Fantastic! Works like a charm. It was just a permissions error as you thought.
If you can remove that extension name restriction that would be fantastic, as that would let me write an outline in OmniOutliner and preview/export it in marked directly. Thanks a lot for your help Brett.