liquid_feedback_frontend
view env/format/wiki_text.lua @ 2:5c601807d397
Version alpha3
Dark green part of issue supporter bargraph represents all satisfied supporters, regardless of having seen the latest draft
Wiki formatting for drafts
Showing differences between two drafts of the same initiative
Display of outgoing delegation chains
Many other improvements
Dark green part of issue supporter bargraph represents all satisfied supporters, regardless of having seen the latest draft
Wiki formatting for drafts
Showing differences between two drafts of the same initiative
Display of outgoing delegation chains
Many other improvements
author | bsw |
---|---|
date | Mon Nov 23 12:00:00 2009 +0100 (2009-11-23) |
parents | |
children | 80c215dbf076 |
line source
1 function format.wiki_text(wiki_text)
2 local html, errmsg, exitcode = assert(
3 os.pfilter(wiki_text, config.wiki_parser_executeable)
4 )
5 if exitcode > 0 then
6 error("Wiki parser process returned with error code " .. tostring(exitcode))
7 elseif exitcode < 0 then
8 error("Wiki parser process was terminated by signal " .. tostring(-exitcode))
9 end
10 return html
11 end