Skip to content

Commit c748e7a

Browse files
committed
Allow users to toggle MathML setting
1 parent aa96a60 commit c748e7a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/app/components/elements/panels/UserBetaFeatures.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const RevisionModeInput = ({displaySettings, setDisplaySettings}: Revisio
1818
return <StyledCheckbox checked={displaySettings.HIDE_QUESTION_ATTEMPTS ?? false}
1919
onChange={e => {
2020
setDisplaySettings((oldDs) => ({...oldDs, HIDE_QUESTION_ATTEMPTS: e.target.checked}));
21-
}}
21+
}}
2222
label={<p>Hide previous question attempts</p>}
2323
id={"hide-previous-q-attempts"}
2424
/>;
@@ -35,6 +35,16 @@ export const UserBetaFeatures = ({ displaySettings, setDisplaySettings, consentS
3535
<b><RevisionModeInput {...{displaySettings, setDisplaySettings}}/></b>
3636
<p>{`This feature lets you answer questions ${siteSpecific("that you have answered before, without seeing your old answer.", "again, even if you've answered them before.")} It's useful if you are reviewing a topic before a test or exam.`}</p>
3737
</>
38+
<>
39+
<b><StyledCheckbox checked={displaySettings.PREFER_MATHML ?? false}
40+
onChange={e => {
41+
setDisplaySettings((oldDs) => ({...oldDs, PREFER_MATHML: e.target.checked}));
42+
}}
43+
label={<p>Use MathML for accessible maths</p>}
44+
id={"prefer-mathml"}
45+
/></b>
46+
<p>{`With this setting you can toggle between using alternative text or MathML for mathematical equations.`}</p>
47+
</>
3848
{isAda && <>
3949
<StyledCheckbox checked={consentSettings.OPENAI ?? false}
4050
onChange={e => {

0 commit comments

Comments
 (0)