You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何用Lua过滤器定位Pandoc脚注引用编号?

自定义Pandoc脚注及引用编号样式的Lua过滤器疑问

我已经能用以下Lua过滤器给Pandoc生成的脚注文本应用自定义样式:

function Note(el)
    return pandoc.Div(el.content, {['custom-style'] = 'Footnote Text'})
end

但现在需要给正文中的脚注引用编号和脚注区的对应编号都应用自定义样式,不清楚应该定位哪个Pandoc元素。我预想的代码框架如下:

function WhatIsTheElement(el)
    return pandoc.Span(el.content, {['custom-style'] = 'Footnote Reference'})
end

查阅Pandoc Lua过滤器官方文档后仍未找到答案,特此求助。

内容的提问来源于stack exchange,提问作者Andy Harvey

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 13:30:56