- Il sito Discourse è chiahpa.be
- Sto utilizzando un plugin personalizzato per aggiungere testo ruby (piccole lettere sopra caratteri giapponesi o cinesi), utilizzando il plugin GitHub - lostandfound/markdown-it-ruby: Ruby annotation plugin for markdown-it parser..
- Il mio plugin è GitHub - aiongg/discourse-ruby. Ha funzionato bene per alcuni anni, ma recentemente ha iniziato a generare il seguente errore ogni volta che qualcuno tenta di pubblicare:
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)
- L’errore viene generato indipendentemente dal fatto che ci sia o meno del testo ruby (
{...|...}) nel post. - Questo post
https://meta.discourse.org/t/discourse-markdown-extensions-not-working-after-latest-discourse-upgrade/294155/1sembrava avere un problema simile, ma ho aggiornato l’estensione a.jse non si è risolto. - Ho anche aggiornato il plugin
markdown-it-rubyall’ultima versione 1.1.1 copiando il plugin nel file/assets/javascripts/vendor/markdown-it-ruby.jsnel mio repository.
Grazie in anticipo. Scusa per i link, posso postarne solo 2.