Merge pull request #19528 from overleaf/dp-equation-preview
Equation Preview GitOrigin-RevId: 98e71e5d2c1a83d6c9fa685eeee1f4b93a5a3da1
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -86,6 +86,7 @@ const UserSchema = new Schema(
|
||||
syntaxValidation: { type: Boolean },
|
||||
fontFamily: { type: String },
|
||||
lineHeight: { type: String },
|
||||
mathPreview: { type: Boolean, default: true },
|
||||
},
|
||||
features: {
|
||||
collaborators: {
|
||||
|
||||
Reference in New Issue
Block a user