-
Notifications
You must be signed in to change notification settings - Fork 162
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
Narratives Right Panel Text Style #1097
Comments
update description to specify narratives |
Hi @ktmeaton -- you're right that this is part of the HTML sanitizing performed for security reasons. PR #1087 will make this consistent for everywhere we render markdown, so that the sidebar + main display have the same capability. There's a comment there indicating that |
Thanks for your response! If I can't modify the Am I correct in understanding that after PR #1087, all markdown will be sanitized (both sidebar and main display) and the |
It seems like it'd be useful if Auspice provided reasonable default styles for the narrative which centered figures and their captions (presuming it doesn't do this now). We could do this easily for Additionally, we some further work, Auspice could allow a safe subset of |
Hi Nextstrain team,
Context
I would like to have additional text styling features available in the right panel for auspice narratives (auspiceMainDisplayMarkdown). Specifically, I would like to be able to align text (ex. centering figure captions below images). Although other text customization would be useful such as size, color, font etc. Currently, this is possible in the left panel but doesn't seem to work for the right panel.
Description
I would like to be able to use texting style attributes with in-line html tags <p> and <pre> in the same way for both the left and right panels.
Examples
Possible solution
I wonder if this happens because of input sanitizing happening at:
https://github.com/nextstrain/auspice/blob/master/src/components/narrative/MainDisplayMarkdown.js#L148 which restricts the allowed attributes.
I'll admit that I'm pretty new to html styling so if there's another way to accomplish this I'm all ears!
Thanks!
The text was updated successfully, but these errors were encountered: