mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-25 20:44:49 -04:00
Remove document content (#1470)
* Merge documentContent and markdownContent Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Add hook for markdown content without frontmatter Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Use hook for export Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Let subcomponent handle the markdown content Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
bb0dd4d935
commit
7ec956e5c3
10 changed files with 77 additions and 48 deletions
|
@ -6,6 +6,10 @@
|
|||
|
||||
import { useApplicationState } from './use-application-state'
|
||||
|
||||
/**
|
||||
* Extracts the markdown content of the current note from the global application state.
|
||||
* @return the markdown content of the note
|
||||
*/
|
||||
export const useNoteMarkdownContent = (): string => {
|
||||
return useApplicationState((state) => state.noteDetails.markdownContent)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue