Based on the source of flymd, you need to add `\.txt\'` to the option `flymd-markdown-file-type` as well, using M-x `customize-option`.