TootSDK icon indicating copy to clipboard operation
TootSDK copied to clipboard

Renderer tests are not able to build using Foundation on Linux

Open kkostov opened this issue 2 years ago • 2 comments

kkostov avatar Jan 30 '23 15:01 kkostov

@kkostov is this still broken after https://github.com/TootSDK/TootSDK/pull/59 ?

davidgarywood avatar Feb 04 '23 07:02 davidgarywood

Yes it is, the renderer is not tested on Linux at the moment t because we use NSAttribitedString(markdown) in tests which Foundation doesn’t support on Linux.

kkostov avatar Feb 04 '23 08:02 kkostov

Btw, in my tootsdk fork I moved the renderer to the swiftui toot demo (I guess it needs to be in the vapor demo too, but I'm just freely breaking things), on the theory that tootsdk should be renderer independent, and I'm actually using the HTML2Markdown package from @divadretlaw (actually a fork with custom rendering) which you might consider using instead since you're also using his EmojiText package, and it's more exhaustive, e.g. paragraph breaks come out better.

technicat avatar Jul 01 '24 22:07 technicat