Closed Bug 1850060 Opened 2 years ago Closed 2 years ago

Image disappears from the note preview if a width and/or height is specified

Categories

(Websites :: Nucleus, defect)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: RyanVM, Unassigned)

Details

When using an <img> tag, Nucleus' preview will show the image when just the src and alt are specified, but once width or height are added, the image disappears.

The images do load correctly on Bedrock, however.

Summary: Image disappears when specifying a width or height → Image disappears from the note preview if a width and/or height is specified

Added to our issue tracker in GitHub.

https://github.com/mozilla/nucleus/issues/783

Workaround/fix found with no code changes - please see https://github.com/mozilla/nucleus/issues/783#issuecomment-1704973765 to confirm whether this is good enough.

If not, we'll have to patch StackOverflow's pagedown library, because the same niggle exists there (and therefore on the StackExchange network - see the GH comment for more)

Flags: needinfo?(ryanvm)

Can we patch Nucleus to pop up a reminder if the <img> tag is specified? We'll add a note to our docs as well, though.

Flags: needinfo?(ryanvm)

Can we patch Nucleus to pop up a reminder if the <img> tag is specified?

We can try, and if it opens a can of worms, we can at least add a hint at the bottom of the markdown area. I have ticketed that over in https://github.com/mozilla/nucleus/issues/789

Can we call this resolved for the bug, and we'll track the reminder elsewhere?

Flags: needinfo?(ryanvm)

Sure

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(ryanvm)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.