fix: Fixed issue with Keep HTML imports not working

This commit is contained in:
Aman Harwara
2024-04-20 16:00:22 +05:30
parent 4810791885
commit 10c9acf061
2 changed files with 12 additions and 4 deletions

View File

@@ -3,6 +3,8 @@ import { DecryptedItemInterface, FileItem, ItemContent, NoteContent, SNNote, SNT
import { ConversionResult } from './ConversionResult'
import { SuperConverterHTMLOptions } from '@standardnotes/snjs'
export type HTMLToSuperConverterFunction = (html: string, options?: SuperConverterHTMLOptions) => string
export interface Converter {
getImportType(): string
@@ -19,7 +21,7 @@ export interface Converter {
canUploadFiles: boolean
uploadFile: UploadFileFn
canUseSuper: boolean
convertHTMLToSuper: (html: string, options?: SuperConverterHTMLOptions) => string
convertHTMLToSuper: HTMLToSuperConverterFunction
convertMarkdownToSuper: (markdown: string) => string
readFileAsText: (file: File) => Promise<string>
linkItems(