WordPress.org

Making WordPress.org

Opened 14 months ago

Closed 14 months ago

Last modified 14 months ago

#3483 closed defect (fixed)

Markdown parser: Stop <code> element from hyphenating

Reported by: xmic Owned by: obenland
Milestone: Plugin Directory v3.0 Priority: normal
Component: Plugin Directory Keywords: has-screenshots
Cc:

Description

The plugin’s description for the markdown code element is hyphenating.

May we specify to add CSS hyphens: none; for the <code> element?

Please see attached screenshot of the hyphenation that should not be taking place on a single-line <code> element. The reason for this is that a hyphen does not normally exist in this URL, which is used within the <code> element. There does not seem to be any other markdown styling that would suit a URL which is not supposed to be hyphenated.

Kind regards,

Mic

Attachments (1)

screenshot-1.png (54.5 KB) - added by xmic 14 months ago.
Example of a <code> element being hyphenated for a described URL.

Download all attachments as: .zip

Change History (5)

@xmic
14 months ago

Example of a <code> element being hyphenated for a described URL.

#2 @xmic
14 months ago

Thank you @netweb I'll update this in the trac ticket now.

Whoops sorry I forgot trac tickets can’t be amended.

Last edited 14 months ago by xmic (previous) (diff)

#3 @obenland
14 months ago

  • Owner set to obenland
  • Resolution set to fixed
  • Status changed from new to closed

In 6773:

Plugin: Don't hyphenate phrase tags.

Props xmic.
Fixes #3483.

#4 @xmic
14 months ago

Cheers @obenland you're a champion!

Kind regards,

Mic

Note: See TracTickets for help on using tickets.