svivian / q2a-markdown-editor

Markdown editor plugin for Question2Answer
55 stars 24 forks source link

Tell It's All Text! that file textarea is markdown. #6

Closed docwhat closed 11 years ago

docwhat commented 11 years ago

The It's All Text! Firefox extension lets you edit textareas in your favorite desktop editor.

This change tells IAT that it should use an extension of .md when creating the file for the desktop editor; which allows syntax highlighting and indenting to work in most editors.

FYI: I'm the author of IAT. I'm using this plugin for Q2A and like it very much. This change makes it even more useful for me and my users. :-)

svivian commented 11 years ago

Hi Christian, thanks for the effort and the nice comments about the plugin.

However I won't be adding this to the core plugin as it simply does not benefit many users (I don't know how many people use your plugin but it's at most a small fraction of Firefox users, which in turn is a fraction of all browsers).

docwhat commented 11 years ago

I've never tried figuring out a percentage of all users but I have seen repeatedly at business that IAT spreads fast among wiki users.

May I ask what the downside is for including this change is?

It's just an attribute ignored by non-IAT enabled browsers. (Other browsers coming soon!)

svivian commented 11 years ago

The downside is that it bloats the code with things that have no effect for 99% of visitors. For now it's only one attribute supporting one browser extension. But I'm sure there are dozens of browser plugins that could benefit from some specific attribute somewhere, which would greatly add up to a lot of bloat for very little benefit.

The other problem is it introduces additional maintenance headache for me and any other contributors. What if you change your plugin to use a different attribute or format? Or stop developing the plugin down the line?

Perhaps the way forward for your plugin would be to auto-detect Markdown fields from the IDs/classes and presence of the Markdown Javascript?