skimlinks in pre tag
-
For displaying source code on my pages I use pre tag; recently I noticed that some text disappears if I visit my pages while logged out. It seems that the reason for this problem is <span class=”skimlinks-unlinked”> that are getting inserted inside the pre tag and mess up everything.
Looks like the same problem was previously fixed for code tag as described in here: https://en.forums.wordpress.com/topic/skimlinks-messed-up-inside-code-tags-an-actual-error
The blog I need help with is: (visible only to logged in users)
-
For example, this:
<pre> wss.on("connection", function(ws) { </pre>Becomes this on the page:
<span class="skimlinks-unlinked">wss.on("connection</span>nction(ws) { -
For displaying source code on my pages I use pre tag
Posting Source Code
https://en.support.wordpress.com/code/posting-source-code/ -
-
Thank you! Code tags seem to work normally now.
-
Yep, that’s what I said. Code tags do seem to work, but [pre] do not, which looks like a recently-introduced bug, because my pages had worked fine before with [pre] tags as well.
-
Code tags do seem to work, but [pre] do not
The question is: Why you use that tag (pre) for posting Source Code?
You should use this and not that tag:
https://en.support.wordpress.com/code/posting-source-code/
- The topic ‘skimlinks in pre tag’ is closed to new replies.