最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

pandoc - How to target footnote reference numbers with a lua filter? - Stack Overflow

programmeradmin2浏览0评论

If I want to apply a custom style to footnotes generated in a pandoc document, I can do something like this:

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

But what if I want to apply a custom style to the in-text and footer reference number that denotes each footnote?

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

What is the name of the element that I should be targeting? After much reading through the docs, I must be missing something.

发布评论

评论列表(0)

  1. 暂无评论