fix: Fixed issue where empty new line in Super would create extra new lines when converting to Markdown

This commit is contained in:
Aman Harwara
2023-05-22 19:28:19 +05:30
parent 7a24b205a7
commit 799945b167
6 changed files with 34 additions and 25 deletions

View File

@@ -6,7 +6,7 @@ import Icon from '../Icon/Icon'
import Modal, { ModalAction } from '../Modal/Modal'
import { EditorMenuItem } from '../NotesOptions/EditorMenuItem'
import { NoteViewController } from '../NoteView/Controller/NoteViewController'
import { InvisibleSuperConverter } from './Tools/InvisibleMarkdownConverter'
import { HeadlessSuperConverter } from './Tools/HeadlessSuperConverter'
const SuperNoteConverter = ({
note,
@@ -47,7 +47,7 @@ const SuperNoteConverter = ({
return note.text
}
return new InvisibleSuperConverter().convertString(note.text, format)
return new HeadlessSuperConverter().convertString(note.text, format)
}, [format, note])
const componentViewer = useMemo(() => {