I ran into an interesting problem this evening. It actually started a few days ago when I noticed that my qq script wasn’t returning searches within the @(metadata) I set up in the note bodies. I figured I’d come back to it when I had time. Then I got a couple of emails from readers who had also noticed this, so I started digging. It turned out that Spotlight had stopped indexing text content of all files with the .md
extension. If I renamed the file to .txt
or .mmd
, it would work fine, but something had convinced Spotlight that Markdown files were source code, not text. My source code importers don’t handle Markdown, so I was getting no content imported.
This is a companion discussion topic for the original entry at https://brettterpstra.com/2011/10/18/fixing-spotlight-indexing-of-markdown-content