vanilla/addons

CivilTongueEx can break rich format

Closed this issue · 3 comments

The civil tongue runs on wrong content, and as a result can mangle rich output.

To reproduce

  1. Setup civil tongue to block the word nonce (apparently British slang for pedophile).
  2. Create a Rich post with the following sentence.
Next enable the plugin.
Once you've done that...
  1. Notice that the formatter fails.

What's happening?

This is the rich raw body for that sentence:

[{
   "insert": "Next enable the plugin.\nOnce you've done that...",
}]

This get's transformed by civil tongue into

[{
   "insert": "Next enable the plugin.\(bad word) you've done that...",
}]

This is not valid JSON.

The fix

Make sure civil tongue doesn't make invalid JSON.

Another report here: https://github.com/vanilla/support/issues/1077

This time the keyword "bullet" causing bullet list formatting to stop working.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.