summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-tag.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/strc-tag.lua')
-rw-r--r--tex/context/base/mkiv/strc-tag.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/strc-tag.lua b/tex/context/base/mkiv/strc-tag.lua
index 9d1fec33e..1be44821e 100644
--- a/tex/context/base/mkiv/strc-tag.lua
+++ b/tex/context/base/mkiv/strc-tag.lua
@@ -60,7 +60,7 @@ tags.specifications = specifications
local p_splitter = C((1-S(">"))^1) * P(">") * C(P(1)^1)
tagpatterns.splitter = p_splitter
-local properties = allocate {
+local properties = allocate { -- todo: more "record = true" to improve formatting
document = { pdf = "Div", nature = "display" },
@@ -71,6 +71,7 @@ local properties = allocate {
highlight = { pdf = "Span", nature = "inline" },
section = { pdf = "Sect", nature = "display" },
+ sectioncaption = { pdf = "Div", nature = "display", record = true },
sectiontitle = { pdf = "H", nature = "mixed" },
sectionnumber = { pdf = "H", nature = "mixed" },
sectioncontent = { pdf = "Div", nature = "display" },
@@ -282,6 +283,10 @@ function tags.registermetadata(data)
end
end
+function tags.getmetadata()
+ return documentdata or { }
+end
+
function tags.start(tag,specification)
if not enabled then
codeinjections.enabletags()