- Discourse 사이트는 chiahpa.be입니다.
- 저는 ruby 텍스트(일본어나 한자 위에 작은 글자를 표시하는 것)를 추가하기 위한 커스텀 플러그인을 사용하고 있으며, GitHub - lostandfound/markdown-it-ruby: Ruby annotation plugin for markdown-it parser. · GitHub 플러그인을 활용하고 있습니다.
- 제 플러그인은 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개까지만 게시할 수 있습니다.