Improve markup detection, fixes #4695
Created by: Razer6
If file extension isn't given in lower case markup fails. Avoid this by downcasing before comparing with supported extensions.
Created by: Razer6
If file extension isn't given in lower case markup fails. Avoid this by downcasing before comparing with supported extensions.