# 我们如何在 Ruby 中修复 YAML 注释保留（以及我们为何赞助它）

**URL:** https://meta.discourse.org/t/how-we-fixed-yaml-comment-preservation-in-ruby-and-why-we-sponsored-it/396592
**Category:** Blog
**Created:** [2026年二月20日 11:53 UTC](https://meta.discourse.org/t/how-we-fixed-yaml-comment-preservation-in-ruby-and-why-we-sponsored-it/396592 "2026-02-20T11:53:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ducks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ducks/32/518975_2.png) [@ducks](https://meta.discourse.org/u/ducks)
#### Post date: [2026年二月20日 11:53 UTC](https://meta.discourse.org/t/how-we-fixed-yaml-comment-preservation-in-ruby-and-why-we-sponsored-it/396592/1 "2026-02-20T11:53:51Z")

</div>

Discourse 通过赞助 psych-pure（一个在程序化编辑时保留注释的 Ruby YAML 库）解决了困扰五年的基础设施难题——这使得多年来辛勤积累的机构知识得以完整保留。

* * *
这是原始条目 [https://blog.discourse.org/2026/02/how-we-fixed-yaml-comment-preservation-in-ruby-and-why-we-sponsored-it](https://blog.discourse.org/2026/02/how-we-fixed-yaml-comment-preservation-in-ruby-and-why-we-sponsored-it) 的配套讨论主题
