Talewright Docs Open the app

Does the replacement's type go by the file's name or by its content?

By the stored type of the current version (mime), not by the extension in the file's name.