Merge pull request #69 from gns-ank/patch-1

Fix markdown.lua to work with LUA 5.2
This commit is contained in:
Steve J Donovan 2013-06-02 23:40:59 -07:00
commit d219d89449
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ THE SOFTWARE.
local M = {}
local MT = {__index = _G}
setmetatable(M, MT)
setfenv(1, M)
if setfenv then setfenv(1, M) end -- if true, we are using LUA 5.1
----------------------------------------------------------------------
-- Utility functions
@ -1134,7 +1134,7 @@ end
-- End of module
----------------------------------------------------------------------
setfenv(1, _G)
if setfenv then setfenv(1, _G) end
M.lock(M)
-- Expose markdown function to the world