fix context sentences in YAML to ensure vocab emphasis

This commit is contained in:
polv committed 2026-10-31 12:44:24 +07:00
1 parent 363a728fc3
commit 8e8e018445
19 files changed
+79 -56

No files matched your search

@@ -146,7 +146,7 @@ import {
import yaml from "yaml";
import SentenceAudio from "./SentenceAudio.vue";
import { supabase } from "../supabase.ts";
import { IVoc, Voc } from "../types.ts";
import { fmValueParser, IVoc, Voc } from "../types.ts";
import { LLMstream } from "../llm.ts";
import MarkdownIt from "markdown-it";
@@ -263,7 +263,7 @@ watch(sent_ko, () => {
const vocabulary: Record<string, IVoc[]> = {};
for (const [k, vs] of Object.entries(
frontmatter.value[fmKey] as Record<string, IVoc[]>,
fmValueParser.parse(frontmatter.value[fmKey]),
)) {
vocabulary[k] = [...(vocabulary[k] || []), ...vs];