Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
SmartyPants
Okay Mark, as a simple exercise I thought I'd port SmartyPants as another extension for Vanilla. And it was fairly painless. However, because I don't understand your system well enough I need a couple of pointers.
I built it based on Markdown, but as I expected, when I installed and enabled it, it behaved in the same manner as the other editing "modes" -- in other words, you can only toggle between Markdown, HTML, SmartyPants, and so forth.
SmartyPants should really be enabled simply as a boolean filter, and it should filter the post only after any of the above extensions make their pass.
Suggestions?
Thanks, Doug
0
This discussion has been closed.
Comments
In the case of something like SmartyPants, you'd have to let the comment formatter do its thing first. I don't consider SP to be a formatter per se, all it does is look for certain characters, and tokens like '--' (converts to an em dash). The problem is, Markdown for instance, uses some of these same tokens. See what I'm saying? Personally, a hook into the system that allows you to filter comments after any formatter does its bit would be very powerful.
SmartyPants, Smilies, some sort of censoring plugin, etc..would all be examples of these filters.
I was thinking about this issue over the weekend. Why should you be responsible for 3rd party plugins? If the author knows what they're doing, they'll write quality code and test it. If there's a problem, they should provide feedback and bug fixes. Otherwise, it's open-source software. Fix it yourself, give something back to the community. Or piss on it, just remove the extension.
Off topic: I want to know who's been searching Google for:
Lussumo Vanilla intitle:sign in
and how the hell does loadaverageZero come up before this site? Baffles me. Google does some strange things with indexing.