On v2.13.2 (189) from F-Droid - text in some <pre> elements runs together.
For example:
It shows:
<pre itemscopeitemtype=https://schema.org/SoftwareSourceCodetranslate=no>
But it should be:
<pre itemscope itemtype=https://schema.org/SoftwareSourceCode translate=no>
The website mastodon.social renders it correctly:
The HTML content sent via the WordPress ActivityPub plugin is:
<p>It takes some plaintext content. But how to get that content? My code samples look like this:</p><pre><span class=\"tempest-highlight-language\"><img src=\"https://shkspr.mobi/blog/wp-content/plugins/tempest-highlight/svg/html.svg\" width=\"32\" height=\"32\" alt=\"\"><span> HTML</span></span><code><<span>pre</span> itemscope <span>itemtype</span>=https://schema.org/SoftwareSourceCode <span>translate</span>=no>\n <<span>button</span> <span>onclick</span>=\"navigator.clipboard.writeText( this.parentNode.getElementsByTagName('code')[0].textContent );\">⧉</<span>button</span>>\n <<span>span</span>>\n <<span>img</span> alt <span>height</span>=32 <span>src</span>=html.svg <span>width</span>=32>\n <<span>span</span> <span>itemprop</span>=programmingLanguage> HTML</<span>span</span>>\n </<span>span</span>>\n <<span>code</span> <span>itemprop</span>=text>[…]</<span>code</span>>\n</<span>pre</span>>\n</code></pre>
Original post: https://shkspr.mobi/blog/2026/08/a-simple-copy-this-code-button-in-javascript/
I suspect something might be trimming the whitespace around <span> elements - but I'm not familiar enough with the codebase.
On v2.13.2 (189) from F-Droid - text in some
<pre>elements runs together.For example:
It shows:
But it should be:
The website mastodon.social renders it correctly:
The HTML content sent via the WordPress ActivityPub plugin is:
Original post:
https://shkspr.mobi/blog/2026/08/a-simple-copy-this-code-button-in-javascript/I suspect something might be trimming the whitespace around
<span>elements - but I'm not familiar enough with the codebase.