Skip to content

<code> blocks get hyphens inserted sometimes #250

Open
@spollard

Description

@spollard

Thanks in advance for your bug report!

  • Have you reproduced this issue in incognito/private browsing?
  • Have you made sure you issue doesn't already exist?

Where is the URL that this occurs?

https://pulsar-edit.dev/docs/launch-manual/sections/behind-pulsar/#reading-config-settings

What's your issue?

Some of the code elements get split across lines and hyphens inserted in them, which breaks the code. I noticed it with the atom.config.get right before the first code block in https://pulsar-edit.dev/docs/launch-manual/sections/behind-pulsar/#reading-config-settings .

Which OS/Browser/Version does this happen on?

Debian 12
Firefox 115

Steps to Reproduce/Additional Details:

When you visit https://pulsar-edit.dev/docs/launch-manual/sections/behind-pulsar/#reading-config-settings at a width of 1146px (at least on my linux firefox), some of the code elements get split across lines and hyphens inserted in them, which breaks the code. I noticed it with the atom.config.get right before the first code block in that section.

Hyphenation is set in this CSS selector
.theme-hope-content:not(.custom) > p, .theme-hope-content:not(.custom) > ul p, .theme-hope-content:not(.custom) > ol p {
hyphens: auto;
}

And I hacked a fix like so

code {
hyphens: none;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions