I am experiencing some strange behavior when importing a tagged template from another notebook (the same tagged template works fine when created within the notebook). This notebook: Untitled / Daniel Howe / Observable demonstrates the problem with a minimal example.
I donāt see thatā¦ When I comment the rsl call, I get the same behavior (see below). And I actually noticed the problem when using `rs ` alone, so I donāt think this is the issue (though I could be wrong).
Thanks much for everyoneās feedback. I think Iāve located in the issue in the library. The reason it was manifesting strangely was that different minor versions of the library were being loaded in the two examples.
Follow-ups:
is there a way to specify āthe newest versionā for a require ?
is there a way to test (preferably in node) via the same `md` function as in the stdlib ? Iām currently using a tagged template I created from the `marked` lib on npm, but the behavior does not appear to be exactly the same
I am not quite sure I understand the question then. It would load the newest version whenever you refresh your browser window (which would re-execute the ārequireā call in the cell).
Was that a new notebook, or a an existing one that you refreshed? Because the jsdelivr cache has now refreshed with the new version and I still see previous versions in my notebooks after a page refresh:
OK, so I think this is due to cacheing in the browser. Require actually loads from unpkg, and if you read the cacheing behavior here: https://unpkg.com it seems like the best advice is actually to specify the version in the require, otherwise it may just use the browser cached version.