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

Add block content statistics template function statBlock #13438

Closed
1 task
TCOTC opened this issue Dec 11, 2024 · 5 comments
Closed
1 task

Add block content statistics template function statBlock #13438

TCOTC opened this issue Dec 11, 2024 · 5 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Dec 11, 2024

增加字符数和字数的模板函数

返回 ID 对应的文档或块的字数

关联需求 https://ld246.com/article/1733921523331

  • 补充用户指南
@88250 88250 self-assigned this Dec 11, 2024
@88250
Copy link
Member

88250 commented Dec 11, 2024

.action{ (statBlock .id).RuneCount} .action{ (statBlock .id).WordCount}

具体字段名:

  • RuneCount
  • WordCount
  • LinkCount
  • ImageCount
  • RefCount
  • BlockCount

@88250 88250 added this to the 3.1.16 milestone Dec 11, 2024
@88250 88250 changed the title 增加字符数和字数的模板函数 Add block content statistics template function statBlock Dec 11, 2024
@88250 88250 closed this as completed Dec 12, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Dec 12, 2024

@88250 话说能不能再加个模板用来统计字符串里的字数(主键没有绑定块的情况)

88250 added a commit that referenced this issue Dec 12, 2024
@88250
Copy link
Member

88250 commented Dec 12, 2024

加了个 runeLen

@TCOTC
Copy link
Contributor Author

TCOTC commented Dec 16, 2024

@88250 issue 标题要不要再加个 runeLen

@88250
Copy link
Member

88250 commented Dec 16, 2024

就这样吧,用户指南里有就行了。

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

No branches or pull requests

2 participants