Content formatting when federating out

Further closing the loop, the Discourse plugin now also supports pre:

2 Likes

Yes, it’s worth pursuing, although it’s not urgent.

@angus I updated our sanitizer to now allow figure, picture, and source, which are used in WordPress (or at least on @pfefferle’s blog) to display images.

Specifically, those three tags are now allowed, along with the following attributes for each:

  • source: ['type', 'src', 'srcset', 'sizes', 'media', 'height', 'width']
  • img: ['alt', 'height', 'ismap', 'src', 'usemap', 'width', 'srcset'],
1 Like

Nice! We’re looking to add image support in the next batch of work (starting soon).

2 Likes