aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2022-08-10 15:27:10 +0200
committerY. Wang <yw05@forksworld.de>2022-08-10 15:41:39 +0200
commit46cc19964a59dcbbf17b0f14adf47122fbbc6aa5 (patch)
treef3f64ba2553178850c2f7e91a39ae9a53b361d8e
parent69d8388c672d695f2031ebc13ac4a83ab220b93f (diff)
downloadadvtrains-46cc19964a59dcbbf17b0f14adf47122fbbc6aa5.tar.gz
advtrains-46cc19964a59dcbbf17b0f14adf47122fbbc6aa5.tar.bz2
advtrains-46cc19964a59dcbbf17b0f14adf47122fbbc6aa5.zip
Fix CI error with RawInline in lists
-rw-r--r--assets/manual/filter_man.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/manual/filter_man.lua b/assets/manual/filter_man.lua
index 0178462..bdb1b33 100644
--- a/assets/manual/filter_man.lua
+++ b/assets/manual/filter_man.lua
@@ -19,16 +19,16 @@ add_filter {
for k, v in pairs(seealso) do
seealso[k] = v[1].text
end
- blocks:insert(pandoc.Str(table.concat(seealso, ", ")))
+ blocks:insert(pandoc.Plain(table.concat(seealso, ", ")))
else
local list = {}
for _, i in ipairs(seealso) do
local page = i[1].text
local pgname, pgsection = string.match(page, "^([^%)]+)%(([^%)]+)%)$")
- local item = pandoc.Str(page)
+ local item = pandoc.Plain(page)
if is_latex and pgname and pgsection then
pgname = pgname:gsub("_","\\string_")
- item = pandoc.RawInline("latex", string.format("\\manref{%s}{%s}", pgname, pgsection))
+ item = pandoc.RawBlock("latex", string.format("\\manref{%s}{%s}", pgname, pgsection))
end
table.insert(list, item)
end