Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rich text formatting of clues #321

Open
0jg opened this issue Jun 16, 2022 · 2 comments
Open

Rich text formatting of clues #321

0jg opened this issue Jun 16, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@0jg
Copy link

0jg commented Jun 16, 2022

If I pass through JSON with HTML elements e.g., <em>...</em>, it automatically gets converted to HTML entities \u003cem\u003e ... \u003c/em\u003e.

Can support for rich text formatting be added to a future release?

@JaredReisinger JaredReisinger added the enhancement New feature or request label Dec 12, 2022
@JaredReisinger
Copy link
Owner

Great idea! I'll have to think about what the "most natural" way to embed formatting in a clue would be... raw HTML doesn't seem very React-y, and is potentially risky/insecure... for the use-cases you're imagining, would Markdown support be enough? That would get you bold and italic, and other common kinds of formatting. In fact, are bold and italic the only things you really need? (I can maybe see a use-case for links, for something like "a video clue"... but multi-paragraph text, lists, etc., seem really unlikely to be needed.)

@0jg
Copy link
Author

0jg commented Dec 12, 2022

Markdown also seems like a sensible approach! Italics are nice for names of things (eg, “This actor starred in the film In Bruges.”)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants