Skip to content

Commit 8d3b6e8

Browse files
committed
Put experimental LaTeX support behind environmental flag, 0.2.4
1 parent a3ac1d6 commit 8d3b6e8

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.2.4
2+
3+
- Put LaTeX support behind environmental variable for now
4+
15
# 0.2.3
26

37
- Remove experimental number formatter

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kalkki",
33
"private": true,
4-
"version": "0.2.3",
4+
"version": "0.2.4",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/components/MathInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { translate } from "@/lang";
2-
import { LargeNumber } from "@/math/internal/large-number";
32
import syntaxHighlight from "@/math/syntax-highlighter";
43
import type { RefObject } from "preact";
54
import { useCallback, useEffect, useRef, useState } from "preact/hooks";
@@ -219,6 +218,7 @@ export default function MathInput({
219218

220219
const pasteLatex = useCallback(
221220
(event: ClipboardEvent) => {
221+
if (process.env.VITE_EXPERIMENTAL_LATEX_SUPPORT !== "true") return;
222222
if (!event.clipboardData) return;
223223
// Get the pasted content
224224
const pastedContent = event.clipboardData.getData("text");

src/math/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ export function calculateAsync(
138138
const response = data.value;
139139
const res: Record<string, unknown> = {};
140140
if (response.value) {
141-
console.log("Received number", response.value);
142141
res.value = new LargeNumber(response.value);
143142
}
144143
if (response.userSpace) {

0 commit comments

Comments
 (0)