diff --git a/main.ts b/main.ts
index d9f3641..ddc3de5 100644
--- a/main.ts
+++ b/main.ts
@@ -5,6 +5,7 @@
import {
App,
+ addIcon,
Plugin,
PluginSettingTab,
Setting,
@@ -39,8 +40,14 @@ export class obsidianTypstPDFExport extends Plugin {
this.converter = new PandocTypstConverter(this);
this.templateManager = new TemplateManager(this);
- // Add ribbon icon
- this.addRibbonIcon('type', 'Export to PDF with Typst', (event: MouseEvent) => {
+ // Register custom icon
+ addIcon('typst-pdf-export', `
+`);
+
+ // Add ribbon icon using custom icon
+ this.addRibbonIcon('typst-pdf-export', 'Export to PDF with Typst', (event: MouseEvent) => {
this.handleRibbonClick(event);
});
diff --git a/typst2pdf-icon.svg b/typst2pdf-icon.svg
index dc4727c..d9aa1ae 100644
--- a/typst2pdf-icon.svg
+++ b/typst2pdf-icon.svg
@@ -1,3 +1 @@
-
+
\ No newline at end of file