1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop: Resolves #12113: Allow users to change the font used in the Markdown viewer and Rich Text Editor (#12356)

This commit is contained in:
Henry Heino
2025-06-07 03:15:59 -07:00
committed by GitHub
parent 3d2ac91b8a
commit 484deb450b
9 changed files with 35 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ export interface Options {
contentMaxWidthTarget?: string;
contentWrapperSelector?: string;
scrollbarSize?: number;
baseFontFamily?: string;
themeId?: number;
whiteBackgroundNoteRendering?: boolean;
}
@@ -83,7 +84,7 @@ export default function(theme: any, options: Options = null) {
theme = theme ? theme : {};
const fontFamily = '\'Avenir Next\', \'Avenir\', \'Arial\', sans-serif';
const fontFamily = options.baseFontFamily || '\'Avenir Next\', \'Avenir\', \'Arial\', sans-serif';
const contentWrapperTarget = options.contentWrapperSelector ?? '#rendered-md';
const maxWidthTarget = options.contentMaxWidthTarget ? options.contentMaxWidthTarget : contentWrapperTarget;