borismus / markdown-preview

Enables Chrome to render markdown files as HTML
http://smus.com
217 stars 42 forks source link

Recognize *.text files #6

Open moubry opened 12 years ago

moubry commented 12 years ago

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

borismus commented 12 years ago

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

moubry commented 12 years ago

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.

borismus commented 12 years ago

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

josemotanet commented 12 years ago

I have one, hold on.

josemotanet commented 12 years ago

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