From 825194d0e5a1c16d3c3170a90a9a2679146044a7 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 22 May 2022 12:52:41 -0500 Subject: allow ignoring the content field in marigold.h --- marigold.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'marigold.lua') diff --git a/marigold.lua b/marigold.lua index 3ed0f59..16aa054 100644 --- a/marigold.lua +++ b/marigold.lua @@ -58,6 +58,11 @@ end marigold.h = function(tag_type, content, tbl) + if type(content) == 'table' and tbl == nil then + tbl = content + content = '' + end + local tag = {} tag.tag = tag_type tag.content = content -- cgit v1.2.1