-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: text formatting #10
base: main
Are you sure you want to change the base?
Conversation
9b21a50
to
2865997
Compare
if (state.peek(2) !== 'X)') return | ||
|
||
state.consume() | ||
state.consume() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular reason this is done twice?
char += state.consume() | ||
// char += state.consume() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not consumed twice here, despite the comment?
@@ -24,6 +27,13 @@ export class ParserStateImpl implements ParserState { | |||
}) | |||
this.buffer = '' | |||
} | |||
setMarker = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should be called pushLeaf
(i.e. a node that has no children) and accept an argument of NodeBase
? I was expecting setMarker
to have something to do with ProseMirror markers.
About the Contributor
This pull request is posted on behalf of the NRK.
Type of Contribution
This is a: feature
Current Behavior
New Behavior
Following text formatting should be available
Testing Instructions
Ctrl-b, ctrl-i, ctrl-u, ctrl-r, ctrl-f10, ctrl-f and ctrl-k respectively should toggle the text. (Or cmd instead of ctrl on mac)
For colours the shortcut will cycle through the various options.
Other Information
There used to be a shortcut on ctrl-q, I think I removed that for testing because cmd-q quits the entire application. might have accidentally committed it. oops. I'm not sure how sold we are on the current shortcuts and not having a toolbar in place anyway.
Status