mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 22:36:18 +08:00
10 lines
232 B
JavaScript
10 lines
232 B
JavaScript
Discourse.Dialect.inlineBetween({
|
|
start: '[poll]',
|
|
stop: '[/poll]',
|
|
rawContents: true,
|
|
emitter: function(contents) {
|
|
var list = Discourse.Dialect.cook(contents, {});
|
|
return ['div', {class: 'poll-ui'}, list];
|
|
}
|
|
});
|