To use this plugin in Rivet:
- Navigate to the Project tab in the left sidebar. You will see a + button next to
Plugins
, click it to open the Add Plugin modal. - Chose the
HTML to Markdown
plugin and click add - There is a new group
Documents to Markdown
and a newHTML to Markdown
node - Just chose a directory or activate the input and give it a path to your pdf file
Load your plugin and Rivet into your application:
import * as Rivet from "@ironclad/rivet-core";
import html2md from "rivet-plugin-html2md";
Register your plugin with Rivet be using the globalRivetNodeRegistry
or creating a new NodeRegistration
and registering with that:
Rivet.globalRivetNodeRegistry.registerPlugin(html2md(Rivet));