引用文本在翻译时应清除格式

discourse-translator 0.2.0
discourse v2.4.0.beta1 +234
Microsoft API

当待翻译的帖子包含引用时,似乎会将包括格式在内的原始文本发送到 API。这会导致插件功能失效。

7 个赞

So what’s the status of this issue?

1 个赞

Not fixed, but I would like to see this improved.

The correct process here is a bit tricky.

We would need to hoist out all sorts of blocks (like quotes, code blocks), then strip out html tags, translate and finally reconstruct the html.

I estimate there are a few days in a proper fix here.

@codinghorror did you want us to slot this or just put a pr-welcome on this?

1 个赞

pr-welcome is fine for this

1 个赞