feat: treat .md files as .txt (#498)
## Summary * Quick fix for markdown reading - open them as txt files
This commit is contained in:
committed by
GitHub
parent
5d369df6be
commit
0bc0baa966
@@ -120,7 +120,8 @@ void MyLibraryActivity::loadFiles() {
|
||||
} else {
|
||||
auto filename = std::string(name);
|
||||
if (StringUtils::checkFileExtension(filename, ".epub") || StringUtils::checkFileExtension(filename, ".xtch") ||
|
||||
StringUtils::checkFileExtension(filename, ".xtc") || StringUtils::checkFileExtension(filename, ".txt")) {
|
||||
StringUtils::checkFileExtension(filename, ".xtc") || StringUtils::checkFileExtension(filename, ".txt") ||
|
||||
StringUtils::checkFileExtension(filename, ".md")) {
|
||||
files.emplace_back(filename);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user