Standardizes terminology and error handling

Corrects capitalization inconsistencies in UI and documentation,
improving clarity and professionalism. Enhances error handling
in the image download function by properly rejecting promises
on errors, thus increasing reliability and maintainability.

Relates to obsidian-bot-review branch tasks.
This commit is contained in:
AlexKucera committed 2025-11-05 17:25:01 +01:00
1 parent 2c4076f3c9
commit 7d805eda45
7 files changed
+27 -29

No files matched your search

+3 -3
View File
@@ -20,7 +20,7 @@ export class EventHandlers {
if (file.extension === 'md') {
menu.addItem((item) => {
item
.setTitle('Export to PDF (Typst)')
.setTitle('Export to PDF')
.setIcon('file-output')
.onClick(() => {
this.plugin.exportFile(file).catch(error => {
@@ -37,7 +37,7 @@ export class EventHandlers {
this.plugin.app.workspace.on('editor-menu', (menu: Menu, editor: Editor, view: MarkdownView) => {
menu.addItem((item) => {
item
.setTitle('Export to PDF (Typst)')
.setTitle('Export to PDF')
.setIcon('file-output')
.onClick(() => {
this.plugin.exportCurrentNote(view).catch(error => {
@@ -57,7 +57,7 @@ export class EventHandlers {
if (markdownFiles.length > 0) {
menu.addItem((item) => {
item
.setTitle(`Export to PDF (Typst)`)
.setTitle(`Export to PDF`)
.setIcon('file-output')
.onClick(() => {
this.plugin.exportFiles(markdownFiles).catch(error => {