Files
geo/apps/desktop-client/src/main/adapters/wangyihao-content.ts
T

16 lines
482 B
TypeScript
Raw Normal View History

import type { DesktopArticleContent } from "@geo/shared-types";
import {
prepareBaijiahaoMarkdown,
renderTablesAsParagraphRows,
} from "../../../../../packages/publisher-platforms/src/baijiahao";
import { normalizeArticleHtml } from "./common";
export function prepareWangyihaoArticleHtml(article: DesktopArticleContent): string {
return renderTablesAsParagraphRows(
normalizeArticleHtml(article, {
prepareMarkdown: prepareBaijiahaoMarkdown,
}),
).trim();
}