You've already forked joplin
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user