tricycle/lesswrong — pull request #43 by johnsoft (2012-09-09 02:46:19+00:00)
Title: Polls

This adds poll functionality to comments, as per [issue 321][issue-321]. Sorry it took so long to get out the door.

Patch notes:
- User help not yet added. It should be added to the wiki sometime after deployment.
- wiki page - http://wiki.lesswrong.com/wiki/Lesswrong:Commentmarkuphelp
- old commit with help - e8acd830238fe6ba3bcbaa75c19033e430468edc
- The old code had partial support for polls in links as well as comments. I coded around that possibility, but since the support was only half-there and the issue only mentioned comments, I didn't fully implement it.
- The supplied design didn't mesh well with the existing HTML/CSS, so it was mostly rewritten. (Is there interest in copying over the circled parts of [http://i.imgur.com/ziQKT.png](http://i.imgur.com/ziQKT.png)?)
- I didn't add a way for poll syntax to be escaped - I couldn't think of a scheme that wouldn't be parsed as a poll the second time you edited a comment. Something like `[fakepoll]{A}{B}{C} (delee the word "fake")` might have to do, unless you have any ideas.

[issue-321]: http://code.google.com/p/lesswrong/issues/detail?id=321&colspec=ID%20Estimate%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Contributions