Module:Lorebook: Difference between revisions

Remove nowiki tags - return plain text for use in non-wiki contexts
Tag: Reverted
Undo revision 65 by M4tsuri (talk)
Tag: Undo
Line 202: Line 202:
   local result = buildInjection(rows, triggered)
   local result = buildInjection(rows, triggered)
    
    
   -- Return raw result - the content is already plain text
   -- Wrap result in <nowiki><pre> to preserve formatting and prevent wiki parsing
  -- and will be used in contexts where wiki parsing is disabled
   if result and result ~= '' then
   return result or ''
    return '<nowiki>' .. result .. '</nowiki>'
  else
    return ''
  end
end
end