Merge pull request #19528 from overleaf/dp-equation-preview

Equation Preview

GitOrigin-RevId: 98e71e5d2c1a83d6c9fa685eeee1f4b93a5a3da1
This commit is contained in:
David
2024-07-25 08:05:04 +00:00
committed by Copybot
parent a8a655ff3b
commit c07d2f3fa2
22 changed files with 346 additions and 64 deletions
@@ -324,6 +324,7 @@ const _ProjectController = {
const splitTests = [
!anonymous && 'bib-file-tpr-prompt',
'compile-log-events',
'math-preview',
'null-test-share-modal',
'paywall-cta',
'pdf-caching-cached-url-lookup',
@@ -673,6 +674,7 @@ const _ProjectController = {
fontFamily: user.ace.fontFamily || 'lucida',
lineHeight: user.ace.lineHeight || 'normal',
overallTheme: user.ace.overallTheme,
mathPreview: user.ace.mathPreview,
},
privilegeLevel,
anonymous,
@@ -372,6 +372,9 @@ async function updateUserSettings(req, res, next) {
if (req.body.lineHeight != null) {
user.ace.lineHeight = req.body.lineHeight
}
if (req.body.mathPreview != null) {
user.ace.mathPreview = req.body.mathPreview
}
await user.save()
const newEmail = req.body.email?.trim().toLowerCase()
+1
View File
@@ -86,6 +86,7 @@ const UserSchema = new Schema(
syntaxValidation: { type: Boolean },
fontFamily: { type: String },
lineHeight: { type: String },
mathPreview: { type: Boolean, default: true },
},
features: {
collaborators: {