Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: KaTeX/KaTeX
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: azotova/KaTeX
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 5 commits
  • 2 files changed
  • 1 contributor

Commits on May 12, 2016

  1. Added cyrillics again

    azotova committed May 12, 2016
    Copy the full SHA
    a3f9582 View commit details

Commits on May 13, 2016

  1. Merge pull request #1 from azotova/cyrillicsMay2016

    Cyrillics may2016
    azotova committed May 13, 2016
    Copy the full SHA
    71df982 View commit details

Commits on Nov 7, 2017

  1. Copy the full SHA
    25b2c8b View commit details
  2. Merge pull request #2 from azotova/oct17

    Update
    azotova authored Nov 7, 2017
    Copy the full SHA
    5a603e5 View commit details

Commits on Nov 8, 2017

  1. Copy the full SHA
    1ffc5e6 View commit details
Showing with 4 additions and 3 deletions.
  1. +1 −0 src/symbols.js
  2. +3 −3 test/unicode-spec.js
1 change: 1 addition & 0 deletions src/symbols.js
Original file line number Diff line number Diff line change
@@ -717,6 +717,7 @@ for (let i = 0x00F8; i <= 0x00FF; i++) {
// Cyrillic
for (let i = 0x0410; i <= 0x044F; i++) {
const ch = String.fromCharCode(i);
defineSymbol(math, main, mathord, ch, ch); // мой хак
defineSymbol(text, main, textord, ch, ch);
}

6 changes: 3 additions & 3 deletions test/unicode-spec.js
Original file line number Diff line number Diff line change
@@ -78,9 +78,9 @@ describe("unicode", function() {
expect('\\text{БГДЖЗЙЛФЦШЫЮЯ}').toParse();
});

it("should not parse Cyrillic outside \\text{}", function() {
expect('БГДЖЗЙЛФЦШЫЮЯ').toNotParse();
});
// it("should not parse Cyrillic outside \\text{}", function() {
// expect('БГДЖЗЙЛФЦШЫЮЯ').toNotParse();
// });

it("should parse CJK inside \\text{}", function() {
expect('\\text{私はバナナです}').toParse();