Requested Changes for Editor Knossos Implementation (#129)

* placeholder

* max length & placeholder

* Accept editor comment conflict

* integrate requested features

* null check for ref

* Change prompt for image upload

* change filter for proper input blocking

* Add spoiler button

* change url of helper link

* shallow resource link style

* resource link inherit site style

* detach preview styling from markdown-body style

* remove sizing dependance on global styles

* Bump 0.6.5
This commit is contained in:
Carter
2023-10-30 16:59:43 -07:00
committed by GitHub
parent 544111846c
commit 39a4297168
10 changed files with 130 additions and 47 deletions

View File

@@ -22,6 +22,10 @@ const toggleCodeBlock: Command = ({ state, dispatch }) => {
return toggleAround(state, dispatch, codeBlockMark, codeBlockMark)
}
const toggleSpoiler: Command = ({ state, dispatch }) => {
return toggleAround(state, dispatch, '||', '||')
}
const toggleHeader: Command = ({ state, dispatch }) => {
return toggleLineStart(state, dispatch, '# ')
}
@@ -342,6 +346,7 @@ const commands = {
toggleItalic,
toggleStrikethrough,
toggleCodeBlock,
toggleSpoiler,
toggleHeader,
toggleHeader2,
toggleHeader3,