CivilTongueEx can break rich format
Closed this issue · 3 comments
charrondev commented
The civil tongue runs on wrong content, and as a result can mangle rich output.
To reproduce
- Setup civil tongue to block the word
nonce
(apparently British slang for pedophile). - Create a Rich post with the following sentence.
Next enable the plugin.
Once you've done that...
- 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.
charrondev commented
Another report here: https://github.com/vanilla/support/issues/1077
This time the keyword "bullet" causing bullet list formatting to stop working.
charrondev commented
Another instance here https://github.com/vanilla/support/issues/1162#issue-535870854
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.