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:
7 files changed
+27
-29
No files matched your search
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user