I’ve been doing a lot of writing in markdown lately and only just noticed that Spotlight wasn’t indexing my *.md files.

Googling for an answer there were quite a few hit’n’miss solutions that didn’t quite seem to work. One being A Yosemite Markdown Spotlight Importer which seemed perfect but for some reason didn’t nail it for me.

I eventually came across How to Force Spotlight to Index Markdown Files in El Capitan which tweaked Lipschitz’s solution, clarifying an important piece of the puzzle:

This is important: Don’t move it to the “user” directory as Lipschitz suggests (~/Library/Spotlight)—put it in the System’s Library folder (/Library/Spotlight)

This seemed to work flawlessly, and now all my Markdown files are being indexed.