mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 23:28:34 -04:00
Upgrade to CodeMirror 6 (#1787)
Upgrade to CodeMirror 6 Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
1a09bfa5f1
commit
6a6f6105b9
103 changed files with 1906 additions and 2615 deletions
|
@ -11,5 +11,5 @@ import { useApplicationState } from './use-application-state'
|
|||
* @return the markdown content of the note
|
||||
*/
|
||||
export const useNoteMarkdownContent = (): string => {
|
||||
return useApplicationState((state) => state.noteDetails.markdownContent)
|
||||
return useApplicationState((state) => state.noteDetails.markdownContent.plain)
|
||||
}
|
||||
|
|
|
@ -15,8 +15,8 @@ export const useTrimmedNoteMarkdownContentWithoutFrontmatter = (): string[] => {
|
|||
const maxLength = useApplicationState((state) => state.config.maxDocumentLength)
|
||||
const markdownContent = useApplicationState(
|
||||
(state) => ({
|
||||
lines: state.noteDetails.markdownContentLines,
|
||||
content: state.noteDetails.markdownContent
|
||||
lines: state.noteDetails.markdownContent.lines,
|
||||
content: state.noteDetails.markdownContent.plain
|
||||
}),
|
||||
equal
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue