markdown-preview icon indicating copy to clipboard operation
markdown-preview copied to clipboard

Recognize *.text files

Open moubry opened this issue 13 years ago • 5 comments

Many people who write in Markdown choose to use the .text file extension. Consider supporting this.

For example, John Gruber himself uses the .text file extension:

http://daringfireball.net/2011/11/getting_steve_jobs_wrong.text

moubry avatar Nov 29 '11 19:11 moubry

Hmm, potentially problematic since it would cause all .text files to be markdownified.

borismus avatar Dec 02 '11 01:12 borismus

http://superuser.com/questions/249436/file-extension-for-markdown-files

I suspect most Markdown Preview users would prefer to see .text files rendered as Markdown.

I believe the reason many writers choose .text is specifically because you can avoid conflicting file associations with .txt files yet still be recognized by any default configuration of an OS as plaintext. To the writer, .text is handled as Markdown. To the reader, it's handled just like any other plaintext file.

Thanks for your attention.

moubry avatar Dec 05 '11 20:12 moubry

You're very convincing :) I'll take a pull request?

borismus avatar Dec 06 '11 19:12 borismus

I have one, hold on.

josemotanet avatar Dec 06 '11 21:12 josemotanet

I guess this issue can be closed. Thanks @moubry for letting me contribute :)

josemotanet avatar Dec 08 '11 09:12 josemotanet