Automattic / Automattic/syntaxhighlighter

2-character single-line does not display

Open
#247 3 comments 0 reactions 0 assignees View on GitHub
[Type] Bug
Dominant language
CSS
Stars
251
Forks
81
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/19334/181804129-7cdaad96-2126-4736-9bc9-904519a493d1.png)

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/

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported cases in both the frontend and Preview: a single line with exactly two characters versus one- or three-character lines and multiple two-character lines. Trace the rendering path responsible for those views, then confirm that the two-character single-line case displays without regressing the working cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.