How to disable DT adding additional elements on pasting code in markdown?

When I copy paste code from Xcode to DEVONthink markdown file code block it is adding additional elements in it. I have to copy paste the code to a text editor first and then copy paste it from there to the DT markdown file.

{==APP\_NAME = Foo==}  
{==APP\_BUNDLE\_ID = co.example.foo==}  
{==APP\_ENVIRONMENT = prod==}  

{==\#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"==}  
{==\#include "Generated.xcconfig"==}  

It’s supposed to be like:

APP_NAME = Foo
APP_BUNDLE_ID = co.example.foo
APP_ENVIRONMENT = prod

#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"

Either by using Edit > Paste and Match Style or enabling the hidden preference RawMarkdownPasting.

1 Like

Thanks. I enabled this using hidden preference. The shortcut is not that friendly to type for me.

defaults write com.devon-technologies.think3 RawMarkdownPasting -bool TRUE