One of the things I really like about Andy’s working notes is the ability to preview a note by placing the cursor over the note’s link. Fortunately, with a little bit of JavaScript and CSS this same functionality can be implemented for Markdown notes in DEVONthink.
You can snag the JavaScript from here, and the CSS from here.
The JavaScript and CSS files need to be referenced in the Preferences… > Files > Markdown “Style Sheet” and “JavaScript” input boxes.
There’s a few known issues with the note preview functionality, which are:
The script will only preview text files that start with a Markdown h1 header (e.g. # Note Title)
Because Remarkable is being used to convert Markdown to HTML, wiki internal links are not rendered as links in previews. This really isn’t a big deal because links in previews are not clickable.
The Preview popup placement code attempts to position the preview so that it’s on the screen. If your DT3 window is quite small, the placement algorithm may not make the best choice.
Hmm…it doesn’t look like there’s an official CDN for PrismJS, so I’m going to need to do some further sluething. FWIW, with MathJAX enabled, PrismJS did not break for me when specifying a custom JavaScript file.