I use a KM palette with my DEVONthink markdown link script.
BTW, have you remapped command-n to your KM macro? Command-n is the default DEVONthink keyboard shortcut for Data > New > With Clipboard – perhaps there’s a conflict with your KM macro and that’s causing a failure?