Proper way to import tagged template literals?

I am trying to use the footnote and tooltip feature implemented here:

However, when I try to follow the instructions and import all the features, the footnotes do not render correctly.

But then when I eliminate the import of footnoteCSS and instead merely copy-past the source for footnoteCSS, then everything renders correctly. It seems like perhaps tagged template literals don’t import the way that other objects do or maybe there’s some kind of runtime issue during these imports?

… or perhaps I’m thoroughly misunderstanding.

I can get it working of course by just copy-pasting, but would love to do it “the right way”. Any help would be appreciated!

You need to reference footnoteCSS in a cell so that the <style> element gets added to the DOM. Simply add a cell that contains

1 Like