-
Notifications
You must be signed in to change notification settings - Fork 11
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
Automatically import <style> cells ? #28
Comments
For example, here : https://observablehq.com/@danburzo/color-vision-deficiency-simulation For the plot to render we have to include both the chart cell and the robservable(
"https://observablehq.com/@danburzo/color-vision-deficiency-simulation",
include = c(5, 6)
) This is normal behavior but as |
I'm not sure this would be possible, as the only way I can think of would be to get access to the cell code to check if it begins with |
From my perspective, doing this might be helpful in common cases but would be inconsistent with other Observable embed tools, so might confuse users familiar with choosing Observable cells in other contexts. I agree it's a good bet that any CSS on the page should be applied, but this isn't always the case; especially when CSS from one embed might conflict with other HTML. |
Yes, you're certainly right, but if there is a way to automatically include But I still don't see how to automatically import these cells, yet. Anyway, thanks for taking the time to give your feedback here, it is really valuable and appreciated ! |
When CSS styles are defined with a
html`<style>...</style>`
cell, they don't seem to be taken into account when the notebook is imported into Observable.I'll do a reprex soon.
The text was updated successfully, but these errors were encountered: