Merge pull request #69 from gns-ank/patch-1
Fix markdown.lua to work with LUA 5.2
Steve J Donovan
10 years ago
120 | 120 | local M = {} |
121 | 121 | local MT = {__index = _G} |
122 | 122 | setmetatable(M, MT) |
123 | setfenv(1, M) | |
123 | if setfenv then setfenv(1, M) end -- if true, we are using LUA 5.1 | |
124 | 124 | |
125 | 125 | ---------------------------------------------------------------------- |
126 | 126 | -- Utility functions |
1133 | 1133 | -- End of module |
1134 | 1134 | ---------------------------------------------------------------------- |
1135 | 1135 | |
1136 | setfenv(1, _G) | |
1136 | if setfenv then setfenv(1, _G) end | |
1137 | 1137 | M.lock(M) |
1138 | 1138 | |
1139 | 1139 | -- Expose markdown function to the world |