MCPcopy
hub / github.com/massCodeIO/massCode / sanitizeMarkdownSettings

Function sanitizeMarkdownSettings

src/main/store/module/preferences.ts:185–195  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

183}
184
185function sanitizeMarkdownSettings(value: unknown): MarkdownSettings {
186 const source = asRecord(value)
187
188 return {
189 scale: readNumber(
190 source,
191 'scale',
192 PREFERENCES_DEFAULTS.editor.markdown.scale,
193 ),
194 }
195}
196
197function sanitizeMathSettings(value: unknown): MathSettings {
198 const source = asRecord(value)

Callers 1

sanitizePreferencesFunction · 0.85

Calls 2

asRecordFunction · 0.90
readNumberFunction · 0.90

Tested by

no test coverage detected