diff --git a/src/controllers/CardOptionsController/CardOptionsController.ts b/src/controllers/CardOptionsController/CardOptionsController.ts index cf023a6a..df98423a 100644 --- a/src/controllers/CardOptionsController/CardOptionsController.ts +++ b/src/controllers/CardOptionsController/CardOptionsController.ts @@ -4,6 +4,7 @@ import { IServiceSettings } from '../../services/SettingsService'; import { getOwner } from '../../lib/User/getOwner'; import supportedOptions from './supportedOptions'; import CardOption from '../../lib/parser/Settings/CardOption'; +import { CardOptionDetail } from './CardOptionDetail'; class CardOptionsController { constructor(private readonly service: IServiceSettings) {} @@ -59,7 +60,7 @@ class CardOptionsController { getDefaultSettingsCardOptions(source: 'client' | 'server') { if (source === 'client') { return this.getDefaultOptions() - .map((option: CardOption) => { + .map((option: CardOptionDetail) => { return { [option.key]: option.value.toString() }; }) .reduce((accumulator, current) => { diff --git a/src/controllers/CardOptionsController/supportedOptions.ts b/src/controllers/CardOptionsController/supportedOptions.ts index c89b0f9d..3d02c00d 100644 --- a/src/controllers/CardOptionsController/supportedOptions.ts +++ b/src/controllers/CardOptionsController/supportedOptions.ts @@ -96,7 +96,7 @@ const supportedOptions = (): CardOptionDetail[] => { 'markdown-nested-bullet-points', 'Markdown Nested Bullet Points', 'Enable conversion of bullet and sub bullet points in Markdown. If you are a Obsidian user, enable this', - false + true ), new CardOptionDetail( 'vertex-ai-pdf-questions', diff --git a/src/lib/parser/Settings/CardOption.ts b/src/lib/parser/Settings/CardOption.ts index 1ab10e39..e900bfbe 100644 --- a/src/lib/parser/Settings/CardOption.ts +++ b/src/lib/parser/Settings/CardOption.ts @@ -147,6 +147,7 @@ class CardOption { 'perserve-newlines': 'false', 'page-emoji': 'first-emoji', 'image-quiz-html-to-anki': 'false', + 'markdown-nested-bullet-points': 'true', }; } } diff --git a/src/lib/parser/Settings/index.ts b/src/lib/parser/Settings/index.ts index d01b01d3..4b4f2e18 100644 --- a/src/lib/parser/Settings/index.ts +++ b/src/lib/parser/Settings/index.ts @@ -1,3 +1,3 @@ -import { CardOption } from './CardOption'; +import CardOption from './CardOption'; export default CardOption; diff --git a/src/lib/parser/Settings/loadSettingsFromDatabase.ts b/src/lib/parser/Settings/loadSettingsFromDatabase.ts index 10f76ef8..116e1aae 100644 --- a/src/lib/parser/Settings/loadSettingsFromDatabase.ts +++ b/src/lib/parser/Settings/loadSettingsFromDatabase.ts @@ -1,8 +1,8 @@ import { Knex } from 'knex'; import { getCustomTemplate } from './helpers/getCustomTemplate'; -import { CardOption } from './CardOption'; import { sendError } from '../../error/sendError'; +import CardOption from './CardOption'; export const loadSettingsFromDatabase = async ( DB: Knex,