Fix source code documentation with locco

Update markdown to use with Lua 5.2 and make some fixes
to locco to properly escape % in non-strings.