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
Add \iff, \implies, \impliedby support #697
Conversation
That looks good. And kudos to @gagern, who made macros possible. |
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.
Can you add tests to katex-spec.js that very that these macros "build" using the toBuild
matcher?
src/macros.js
Outdated
|
||
// \def\iff{\DOTSB\;\Longleftrightarrow\;} | ||
// \def\implies{\DOTSB\;\Longrightarrow\;} | ||
// \def\impliedby{\DOTSB\;\Longleftarrow\;} |
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.
Can you add a TODO above these to indicate that this is what we want the the implementation of these commands to eventually look like?
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.
Added.
@kevinbarabash Implemented both your suggestions (and rebased). Thanks for the feedback! I also noticed that, while @ronkok's code had a |
I'm good with the change. The span still is coded as a |
Fix #190 via @ronkok's code.
I thought about tests but couldn't think of anything that interesting. A
expect(...).toParseLike
doesn't seem to check anything. I could add a screenshot test, but it is also pretty "boring".