- Discourse 网站是 chiahpa.be
- 我正在使用一个自定义插件来添加 ruby 文本(日文或汉字上方的短字母),使用了 GitHub - lostandfound/markdown-it-ruby: Ruby annotation plugin for markdown-it parser. 插件。
- 我的插件是 github.com/aiongg/discourse-ruby。它已经正常工作了好几年,但最近每次有人尝试发帖时都会抛出以下错误:
Started POST "/posts" for 172.17.0.1 at 2024-11-25 22:17:41 +0000
Processing by PostsController#create as JSON
Parameters: {"raw"=>"updated ruby plugin\n\ntesting ruby:\n\n{汝|lí}{好|hó}", "unlist_topic"=>"false", "category"=>"3", "topic_id"=>"71", "is_warning"=>"false", "archetype"=>"regular", "typing_duration_msecs"=>"200", "composer_open_duration_msecs"=>"2658", "featured_link"=>"", "shared_draft"=>"false", "draft_key"=>"topic_71", "nested_post"=>"true"}
[PrettyText] BAD MARKDOWN CALLBACK FOUND
[PrettyText] FEATURE IS: md-ruby
Completed 500 Internal Server Error in 76ms (ActiveRecord: 0.0ms | Allocations: 4230)
- 无论帖子中是否有 ruby 文本(
{...|...}),都会抛出错误。 - 这篇帖子
https://meta.discourse.org/t/discourse-markdown-extensions-not-working-after-latest-discourse-upgrade/294155/1似乎有类似的问题,但我已将扩展更新为.js,但问题并未解决。 - 我还通过将插件复制到我的仓库的
/assets/javascripts/vendor/markdown-it-ruby.js文件中,将markdown-it-ruby插件更新到了最新版本 1.1.1。
提前感谢。抱歉有链接,我只能发布 2 个。