Conversation
(cherry picked from commit 18883720443651b24b4d70635cc39f400fd9c21a)
✅ Deploy Preview for demo-firefly ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
审查者指南打赏页面现在可以将每种收款方式的描述解析为经过清理的 GFM Markdown,支持使用内联配置或 打赏描述 Markdown 渲染时序图sequenceDiagram
participant Config as sponsorConfig.methods
participant Page as sponsor.astro
participant Files as sponsor Markdown files
participant Marked
participant Sanitizer as sanitizeHtml
participant Markdown as Markdown component
Config->>Page: filter enabled methods
Page->>Files: import.meta.glob descriptionFile
Page->>Page: select descriptionFile over description
alt descriptionFile is missing
Page-->>Page: throw Error
else description source exists
Page->>Marked: parse(source, { async: false })
Marked-->>Page: GFM HTML
Page->>Sanitizer: sanitizeHtml(html, allowed img)
Sanitizer-->>Page: safe descriptionHtml
Page->>Markdown: render descriptionHtml
end
文件级变更
提示与命令与 Sourcery 交互
自定义使用体验访问你的控制面板以:
获取帮助Original review guide in EnglishReviewer's Guide打赏页面现可将每种收款方式的描述解析为经过清理的 GFM Markdown,支持内联配置或 src/content/sponsor/ 下的独立文件,并通过新增配置字段表达文件来源和优先级。 Sequence diagram for sponsor description Markdown renderingsequenceDiagram
participant Config as sponsorConfig.methods
participant Page as sponsor.astro
participant Files as sponsor Markdown files
participant Marked
participant Sanitizer as sanitizeHtml
participant Markdown as Markdown component
Config->>Page: filter enabled methods
Page->>Files: import.meta.glob descriptionFile
Page->>Page: select descriptionFile over description
alt descriptionFile is missing
Page-->>Page: throw Error
else description source exists
Page->>Marked: parse(source, { async: false })
Marked-->>Page: GFM HTML
Page->>Sanitizer: sanitizeHtml(html, allowed img)
Sanitizer-->>Page: safe descriptionHtml
Page->>Markdown: render descriptionHtml
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
每个收款方式的描述都支持 Markdown,有两种写法:
两者同时设置时,优先使用 descriptionFile。
Sourcery 摘要
为赞助商付款方式启用丰富的 Markdown 描述,包括可复用的外部内容文件。
新功能:
src/content/sponsor/下的专用文件中为赞助商付款方式添加 Markdown 描述,文件中的描述优先级更高。增强功能:
Original summary in English
Summary by Sourcery
Enable rich Markdown descriptions for sponsor payment methods, including reusable external content files.
New Features:
Enhancements: