Description
While working on support for the ST (Structured Text) format, it became clear that StrictDoc's detection is too simple to distinguish between languages or markup formats that share the same extension.
The immediate example: .st (Structured Text) and .st (Smalltalk).
Problem
The users will run into a situation at some point where they will need to disambiguate the content types strongly.
Solution
Either:
- Implement a custom detection mechanism where the source files are read and matched with known regexes.
- Find a good and fast Python/Rust library that does it well enough.
Additional Information
This ticket will be worked on when a serious conflict between extensions is detected and the feature is requested by one or more users.