16 lines
482 B
TypeScript
16 lines
482 B
TypeScript
|
|
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();
|
||
|
|
}
|