Relying on what's setup in the pelican readers is a better idea in my opinion. Check https://github.com/getpelican/pelican/blob/master/pelican/readers.py#L149