a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[backend/libmfm] Implement incoming ruby

Kopper 4f47f630 aa522675

+13 -1
+13 -1
Iceshrimp.Backend/Core/Helpers/LibMfm/Parsing/HtmlParser.cs
··· 91 91 ? $"\n> {string.Join("\n> ", node.TextContent.Trim().Split("\n"))}" 92 92 : null; 93 93 } 94 + case "RUBY": 95 + { 96 + var rt = node.ChildNodes.QuerySelector("rt"); 97 + if (rt == null) return ParseChildren(node); 98 + 99 + // we know how to handle rt, so these aren't necessary 100 + foreach (var rp in node.ChildNodes.QuerySelectorAll("rp")) 101 + rp.Remove(); 94 102 95 - case "VIDEO": 103 + node.RemoveChild(rt); // so ParseChildren(node) below does not see it 104 + return $"$[ruby {ParseChildren(node)} {ParseChildren(rt)}]"; 105 + } 106 + 107 + case "VIDEO": 96 108 case "AUDIO": 97 109 case "IMG": 98 110 {