Module:Lang: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(synch from sandbox;)
No edit summary
Line 67: Line 67:
local seg = {};
local seg = {};


source = source:gsub ("%f[\']\'%f[^\']", '&'); -- protect single quote marks from being interpreted as bold markup
source = source:gsub ("%f[\']\'%f[^\']", '''); -- protect single quote marks from being interpreted as bold markup


seg[1] = source:match ('^(\'\'+%f[^\']).+') or ''; -- get leading markup, if any; ignore single quote
seg[1] = source:match ('^(\'\'+%f[^\']).+') or ''; -- get leading markup, if any; ignore single quote