Skip to content
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

refactor: update toSplitInto to accept delimiters object #3444

Merged
merged 3 commits into from Aug 29, 2022

Conversation

kkreine
Copy link
Contributor

@kkreine kkreine commented Nov 30, 2021

What is the previous behavior before this PR?
toSplitInto accepted four parameters: toSplitInto: function(actual, left, right, result) and passed left and right in as delimiters:
const split = splitAtDelimiters(actual, [{left: left, right: right, display: false}]);

What is the new behavior after this PR?
toSplitInto accepts delimiters object:
toSplitInto: function(actual, result, delimiters)
as in renderMathInElement and splitAtDelimiters

Closes #2708

kkreine and others added 3 commits November 30, 2021 17:31
Update toSplitInto matcher to accept the same delimiter object type that's used in renderMathInElement
@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #3444 (2a8498c) into main (f04c645) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3444   +/-   ##
=======================================
  Coverage   92.98%   92.98%           
=======================================
  Files          90       90           
  Lines        6739     6739           
  Branches     1568     1568           
=======================================
  Hits         6266     6266           
  Misses        435      435           
  Partials       38       38           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f04c645...2a8498c. Read the comment docs.

@ylemkimon ylemkimon merged commit 99be728 into KaTeX:main Aug 29, 2022
@ylemkimon
Copy link
Member

Thank you for the PR!

@KaTeX-bot
Copy link
Member

🎉 This PR is included in version 0.16.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update toSplitInto matcher to accept the same delimiter object type that's used in renderMathInElement
3 participants