bikeshed icon indicating copy to clipboard operation
bikeshed copied to clipboard

Wrap inlined/long bibliography entries

Open frivoal opened this issue 4 years ago • 1 comments

Bikeshed prevents bibliography references from wrapping.

[data-link-type=biblio] {
    white-space: pre;
}

For [[FOOBAR]], that's reasonable, but for [[FOOBAR inline]] or [[FOOBAR|some decently long replacement]] that's a lot less desirable.

Should that be fixed by adding a class=has-replacement-text (or similar) to such elements, and changing the selector to [data-link-type=biblio]:not(.has-replacement-text), or should we not mark such things as data-link-type=biblio, or something else?

frivoal avatar Apr 05 '21 05:04 frivoal

Yes, we should def distinguish between those cases; I had forgotten I had that CSS in place.

(It was there to prevent the [] from wrapping separately from the term, but any replacement text means it's just a normal link with text, so we should definitely not apply it there.)

tabatkins avatar Apr 05 '21 18:04 tabatkins