I don't maintain this add-on anymore: I've moved from Roam to the free and open source logseq, a project with a better ethos and trajectory than Roam's. It also has native Zotero integration which is much more sophisticated than this add-on.
A Zotero addon for exporting to Roam's JSON format. Exports single or multiple items, as well as collections.
The initial motivation is to get Zotfile-extracted highlights and annotations, along with an item's metadata, into Roam. This allows for block-level referencing of those highlights, underlined sections, and annotations. Although the exporter works without Zotfile, some of the optional settings below are designed for a Zotfile or Zotfile-like workflow.
Grab the xpi from the releases page, and install by choosing Install Add-on from File...
from the cog menu in Zotero's Add-ons Manager.
Requires Zotero 5.0.
Right-click an item, items, or collection, and choose Export to Roam
. Save the export file, and upload into Roam using Import Files
from the ...
menu.
Include recursive collection names as topics (v1.7+)
You can include the names of the full hierarchy of an item's parent collections as topics, which is useful if you nest collections in a taxonomy in Zotero. To enable this, set the extensions.roamexport.recursive_collection_topics
option to true
in Zotero's Config Editor.
Automatically convert underlines in Zotero notes to headings in Roam pages (v1.8+)
Any underlined paragraph in a Zotero note will become an H3 heading in Roam. Particularly useful if you use underline PDF annotations to reflect headings within the annotated document, as distinct from highlights to reflect body text. To enable, set the extensions.roamexport.convert_underline_to_heading
option to true
in Zotero's Config Editor.
Always indent a specific tag type (v1.8+)
Specify a tag that will always be made a child of the preceding element, e.g. <blockquote>
s always being indented under the paragraph they follow. This can be used, for example, to follow-up highlights with blockquoted notes:
To enable, specify your desired tag in the extensions.roamexport.indent_tag_as_child
option in Zotero's Config Editor. In the example above, the value is "<blockquote>
".
Using an item's citekey as Roam's page title (v1.6+)
If you use Better Bibtex, you may wish to export items using their citekeys as the Roam page's title (see discussion of this workflow here). To enable this, set the extensions.roamexport.citekey_as_title
option to true
in Zotero's Config Editor.
Thanks to @retorquere for help refactoring for Zotero's async architecture.