Skip to content

fix: escape ambiguous Mfm marks from html

Linca requested to merge linca/catofish:fix/10918 into develop

What does this PR do?

Fix #10918 (closed) within the constraints of MfM

<plain></plain> is definitely a bad markup, but MfM doesn't provide any other way to escape the markup...

This isn't a perfect fix, and in the extreme case, if someone happens to be discussing MfM in a mastodon post and writes a </plain>, it will break the fix, but there's nothing we can do about it unless we switch to a full-fledged Markdown parser.

Contribution Guidelines

By submitting this merge request, you agree to follow our Contribution Guidelines

  • This change is reviewed in an issue / This is a minor bug fix
  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this pull request
  • I have made sure to run pnpm run format before submitting this pull request

If this merge request makes changes to the Firefish API, please update docs/api-change.md

  • I updated the document / This merge request doesn't include API changes
Edited by Linca

Merge request reports

Loading