Philippe Rivière
Philippe Rivière
Did you try the technique I described just above your comment?
it should work in preview after you have deployed a first time (since the URL for the font is absolute)
I think I'm in favor of option 2 "add a copy of these libraries even if we don’t detect that they’re used". Self-hosting is a great feature, so option 1...
To clarify, these files would belong to the build, but they should not be loaded (nor bundled nor preloaded) by pages that don't use them. So for a _viewer_ it...
The OP was also about referencing H2 _and H3_. One way to do so would be to make the selector configurable—currently it's set here https://github.com/observablehq/framework/blob/9c1d5ca61c931083f78833ca28275c96a7dadb86/src/render.ts#L175 But opening this might make...
One issue here is that with multiple levels in the TOC (say, h2, h3), users will want the hierarchy be reflected visually. We could at a minimum provide some classes...
I've applied it to https://observablehq.observablehq.cloud/pangea/varia/lap-jv which was otherwise crashing when you moved the slider "too much".
related: #1495
You should definitely sanitize this comment if your boss can view source, but IMO it is not framework's business to do so. If you write a post-processor that strips comments,...
Framework bundles and the css and js files coming from npm and node modules, but leaves the code blocks and HTML intact in the pages and js imports (edited). I...