liquid_feedback_frontend

diff env/format/wiki_text.lua @ 4:80c215dbf076

Version alpha5

Many optical changes and improved usability

Support for different wiki-formatting-engines

Help system
author bsw/jbe
date Thu Dec 10 12:00:00 2009 +0100 (2009-12-10)
parents 5c601807d397
children f49cdfb72567
line diff
     1.1 --- a/env/format/wiki_text.lua	Mon Nov 30 12:00:00 2009 +0100
     1.2 +++ b/env/format/wiki_text.lua	Thu Dec 10 12:00:00 2009 +0100
     1.3 @@ -1,6 +1,7 @@
     1.4 -function format.wiki_text(wiki_text)
     1.5 +function format.wiki_text(wiki_text, formatting_engine)
     1.6 +  local formatting_engine = formatting_engine or "rocketwiki"
     1.7    local html, errmsg, exitcode = assert(
     1.8 -    os.pfilter(wiki_text, config.wiki_parser_executeable)
     1.9 +    os.pfilter(wiki_text, config.formatting_engine_executeables[formatting_engine])
    1.10    )
    1.11    if exitcode > 0 then
    1.12      error("Wiki parser process returned with error code " .. tostring(exitcode))

Impressum / About Us