1.2 Installation in {{roam/js}}
You can install the extension by adding a single {{[[roam/js]]}} block to your graph :
// To install the extension, simply add the code below :
var s = document.createElement("script");
s.src = "https://cdn.jsdelivr.net/npm/@alixlahuec/[email protected]";
s.id = "zotero-roam";
s.type = "text/javascript";
document.getElementsByTagName("body")[0].appendChild(s);
Next, you'll need to specify a few settings to get the extension running ; that's where your API key and user ID (from Step 1.1) will come into play !
The code above loads the extension's scripts into your Roam graph, but it will not do anything unless you add some settings. Keep going to 1.3 Basic Setup for that!
Make sure to indent the extension's code under the {{[[roam/js]]}} block.
Copy link