Challenges with the automatic “RTF to Markdown” converter [solved in DEVONthink 3.8]

Yes, of course. The whole situation is of course not your fault. Sorry if it came across like that.

For those who use Markdown and RTF and who use Keyboard Maestro.

Menu View > Document Display > Source View is available in Markdown records but not in RTF.

Again it’s a trade-off as with this marco it’s not possible anymore to paste the path of an image that’s on the clipboard. Don’t know what else is lost.

Edit:

With the above macro it’s not possible to paste into Alfred while DEVONthink is frontmost.
Using a Type a Keystroke action that sends ⌘V works.

Final Edit:

Nope, the previous Edit (of course) doesn’t work with Alfred if DEVONthink is frontmost and a Markdown record is selected.

This finally works:

  • Set a variable to the clipboard
  • Set the clipboard to the variable
  • Send ⌘V via Type a Keystroke action

Scratch that, having not needed to paste a URL into a MD file for a few days, when I did so today, it still escapes the : character.

I’m now moving my MD workflow out of DT as it’s causing to many problems. As I post these MD files online the URLs create an error, because I failed to recognise that DT escapes :. It’s creating more work.

I could never reproduce this using the same Firefox version (without extensions). Could you please post an example URL? Thanks!

Apologies, this is pasting a url from apple messages app.

Seems that the stuff copied by Messages on Big Sur is somewhat weird, e.g. after copying a URL and pasting it into a TextEdit document the URL is inserted twice. I’ll check this.

1 Like

Yeah, noticed that too!

Added both a workaround for Messages.app on Big Sur and a better rich text recognition.

1 Like

This has been solved with DEVONthink 3.8.

Release notes:

Added hidden preference RawMarkdownPasting to avoid the conversion or formatting of links or rich text content when pasting into a Markdown file. This option is off by default.

From help Documentation > Appendix > Hidden preferences:

RawMarkdownPasting: When pasting rich content into a Markdown file, the formatting is converted to Markdown. Enable this to ignore formatting and paste as raw plain text.

Click the link in the help to enable the hidden preference.

Thanks for listening to users!

3 Likes

This was a great post. Just to add a comment that the RawMarkdownPasting in Markdown is exactly how I use the link in templates. So having this is a great feature.

Thanks for posting it since it saves me from having to redo a lot of templates or having to delete a bunch of characters when pasting links.

1 Like

Welcome @rowlanjr

Glad to hear the hidden preference is useful to you :slight_smile: