openlibhums / janeway

A web-based platform for publishing journals, preprints, conference proceedings, and books
https://janeway.systems/
GNU Affero General Public License v3.0
171 stars 63 forks source link

Add italics support in Keywords #3489

Open pgoussy opened 1 year ago

pgoussy commented 1 year ago

Is your feature request related to a problem? Please describe. An author has requested that one of their keywords be set in italics (it's a Japanese word transliterated into Roman text). I just tried to do this the same way we do italics in article titles, but evidently if you put <i> tags in a keyword, the tags are not rendered, but instead are displayed visually on the HTML galley.

Describe the solution you'd like It's not likely to come up often, but it would be nice if <i> tags within individual keywords could be used to render italic text on the HTML galley.

Additional context I have removed the failed italic keyword so that it no longer displays on the article, but please see screenshots below for an illustration.

2023-04-17_16-50-07

2023-04-17_16-50-26

pgoussy commented 6 months ago

Still not a high priority by any means, but I wanted to note that we just encountered another article with a few foreign-language keywords that were intended to be displayed in italics

joemull commented 3 months ago

We've discussed this a bit and are tentatively in favor of allowing italics in keywords. A related consideration is how to mark keywords with a separate language than the surrounding content, which we need to do for accessibility. We also need to consider downstream metadata standards that do not allow HTML in the keyword field.

So we are considering: