Skip to content

Commit

Permalink
feat: insert image markdown directly
Browse files Browse the repository at this point in the history
  • Loading branch information
cnblogs-dudu committed Oct 5, 2024
1 parent 8a0d051 commit fa8dfe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/upload-img/upload-img.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Alert } from '@/infra/alert'
import { uploadClipboardImg } from './upload-clipboard-img'
import { showUploadSuccessModel } from './upload-img-util'
import { insertImgLinkToActiveEditor, showUploadSuccessModel } from './upload-img-util'

Check failure on line 3 in src/cmd/upload-img/upload-img.ts

View workflow job for this annotation

GitHub Actions / node-lint

'showUploadSuccessModel' is defined but never used

Check failure on line 3 in src/cmd/upload-img/upload-img.ts

View workflow job for this annotation

GitHub Actions / node-lint

'showUploadSuccessModel' is defined but never used
import { uploadFsImage } from './upload-fs-img'

export async function uploadImg() {
Expand All @@ -22,7 +22,7 @@ export async function uploadImg() {

if (imageUrl === undefined) return

await showUploadSuccessModel(imageUrl)
await insertImgLinkToActiveEditor(imageUrl)

return imageUrl
}

0 comments on commit fa8dfe8

Please sign in to comment.