Skip to content

Conversation

@reddishz
Copy link

@reddishz reddishz commented Jul 14, 2024

支持从markdown的头部metadata中读取headerTemplate和footerTemplate,已实现每个文件自定义的页眉和页脚。

例子如下:

---
headerTemplate: >-
   <div style="font-size: 9px; margin-left: 1cm;">东山项目可行性分析报告</div> <div style="font-size: 9px; margin-left: auto; margin-right: 1cm; "><img src="data:image/png;base64,II=" alt="" width=20/></div>
footerTemplate: >-
  <div style="font-size: 9px; margin: 0 auto;"> 20240711 </div>
---
# 东山项目可行性分析报告
......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant