Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加metadata支持 #376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

增加metadata支持 #376

wants to merge 1 commit into from

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