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
added inCode flag #8
Conversation
added inCode flag to inputRule specs to allow inputRules to selectively apply to code blocks.
src/inputrules.ts
Outdated
@@ -35,12 +36,17 @@ export class InputRule { | |||
/// When set to false, | |||
/// [`undoInputRule`](#inputrules.undoInputRule) doesn't work on | |||
/// this rule. | |||
undoable?: boolean | |||
undoable?: 'boolean', |
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.
I don't think this should be a string.
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.
yes, you're right, don't know how I changed that.
src/inputrules.ts
Outdated
@@ -11,6 +11,7 @@ export class InputRule { | |||
|
|||
/// @internal | |||
undoable: boolean | |||
inCode?: 'allowed' | 'only'; |
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.
Could you make this boolean | "only"
, so people can also explicitly provide false
?
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.
done.
Just curious since this is my first pull request -- how long should I expect it to take to have it merged? days, weeks, months? |
added inCode flag to inputRule specs to allow inputRules to selectively apply to code blocks.