Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2-character single-line does not display #247

Open
cena opened this issue Jul 29, 2022 · 3 comments
Open

2-character single-line does not display #247

cena opened this issue Jul 29, 2022 · 3 comments

Comments

@cena
Copy link

cena commented Jul 29, 2022

Regardless of language/brush, entering a single line consisting of a 2-character string does not display on the frontend or in Preview.

The following do display correctly:

  • Entries of 1 character and 3 characters
  • 2/+ lines consisting of 2-character strings:

SCR-20220729-fy2

See also: https://a8c.slack.com/archives/C6GGX896G/p1659100898753839?thread_ts=1659085924.820659&cid=C6GGX896G

Reported in https://wordpress.org/support/topic/two-letters-text-doesnt-show/

@StefMattana
Copy link

I looped @merkushi, and this is what's been shared so far:

  • To fix it we'd need to edit the script, which looks not really doable.
  • As a workaround, we could add a comment to the code to increase the number of symbols in the excerpt.
  • The simplest solution, especially for plain text, is to use Code block.

@merkushin
Copy link
Member

merkushin commented Aug 2, 2022

Just want to add, the problem is inside shCore.js which is part of syntaxhighlighter3.
The code of this script is obfuscated. I attach a screenshot of the method that removes content (in the last string, after auto-formatting):
CleanShot 2022-07-29 at 17 45 00@2x

@StefMattana
Copy link

@merkushin the user in the forum thread explained that they need this to recreate a tutorial page for a cloud server.
The tutorial separately shows code/command in order and displays those two letters as one of the commands.

Not sure if it's useful but I thought it was worth sharing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants