Preferences can be changed in the settings window or via preferences.json in the application data directory. Close MarkText before editing the file manually. Validation rules live in packages/desktop/src/shared/preferences/schema.json; src/main/preferences/preferenceFile.ts combines schema defaults, packages/desktop/static/preference.json and recovery defaults from src/shared/types/preferences.ts. Language and theme are initialized from the system. The tables below show application initial values; existing saved preferences can override them.
Invalid individual values fall back to defaults. An unreadable, malformed or non-object preference file is preserved and treated as read-only for that run. Unknown keys in a valid file are retained on disk but are not applied as preferences.
Enable pandoc's tex_math_dollars extension — $…$ and $$…$$ math.
texMathGfm
Boolean
false
Enable pandoc's tex_math_gfm extension — GitHub's $`…`$ and ```math math. The former isGitlabCompatibilityEnabled key is no longer applied; enable this option explicitly.
texMathSingleBackslash
Boolean
false
Enable pandoc's tex_math_single_backslash extension — \(…\) inline and \[…\] display math. Off by default, as in pandoc: it precludes escaping ( and [, so - \[TODO\] reads as a formula.
Enable pandoc's fancy_lists extension — a., IV., (1) and #. list markers. Pandoc exports then use pandoc's markdown reader.
highlightSyntax
Boolean
false
Enable the non-standard ==highlight== syntax used by Obsidian, Typora and Logseq. Renders as <mark> in the editor and in the HTML/PDF exports; == stays literal text while off.
inlineDiff
Boolean
false
Enable GitLab's non-standard {+ … +} / [- … -] inline diff syntax. Additions render as <ins> and deletions as <del> in the editor and in the HTML/PDF exports; the tags stay literal text while off.
multilineBlockquote
Boolean
false
Enable GitLab's non-standard >>> … >>> multiline blockquote syntax. The fence is preserved on save and renders as a <blockquote> in the HTML/PDF exports; while off the fence stays literal text.
isHtmlEnabled
Boolean
true
Enable inline HTML rendering.
softNewlineAsSpace
Boolean
false
Treat a soft line break (a single bare newline within a paragraph) as a space instead of a line break.
The source-code preference below supplies the default for a new layout. Sidebar, tab-bar and outline visibility and dimensions are window layout state, stored separately in state/application-state.json. The old tocVisibility, sideBarVisibility, tabBarVisibility and lastOpenedFolder preference keys are no longer applied.
Key
Type
Default
Description
sourceCodeModeEnabled
Boolean
false
Initial source-code mode state. Overridden by the menu / shortcut.