diff --git a/packages/@ourworldindata/utils/src/GdocsUtils.ts b/packages/@ourworldindata/utils/src/GdocsUtils.ts index 052d1cba252..5f3e391e2c7 100644 --- a/packages/@ourworldindata/utils/src/GdocsUtils.ts +++ b/packages/@ourworldindata/utils/src/GdocsUtils.ts @@ -166,7 +166,7 @@ const convertMarkdownNodeToSpan = (node: EveryMarkdownNode): Span[] => { //.otherwise(() => ({ spanType: "span-simple-text" as const, text: "" })) } -const convertMarkdownNodesToSpans = (nodes: MarkdownRoot) => +const convertMarkdownNodesToSpans = (nodes: MarkdownRoot): Span[] => nodes.children.flatMap(convertMarkdownNodeToSpan) export const markdownToEnrichedTextBlock = ( diff --git a/site/DataPageV2Content.tsx b/site/DataPageV2Content.tsx index 8df870f6ebe..982e4b0cf96 100644 --- a/site/DataPageV2Content.tsx +++ b/site/DataPageV2Content.tsx @@ -20,7 +20,6 @@ import cx from "classnames" import { DebugProvider } from "./gdocs/DebugContext.js" import { CodeSnippet } from "./blocks/CodeSnippet.js" import dayjs from "dayjs" -import { P, match } from "ts-pattern" declare global { interface Window { _OWID_DATAPAGEV2_PROPS: DataPageV2ContentFields