mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-08-01 06:39:49 +08:00
feat(baoyu-markdown-to-html): inline rendering pipeline and enhance modern theme
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -400,10 +400,10 @@ export function renderMarkdown(raw: string, renderer: RendererAPI): {
|
||||
html: string;
|
||||
readingTime: ReadTimeResults;
|
||||
} {
|
||||
const preprocessed = preprocessCjkEmphasis(raw);
|
||||
const { markdownContent, readingTime: readingTimeResult } =
|
||||
renderer.parseFrontMatterAndContent(preprocessed);
|
||||
const html = marked.parse(markdownContent) as string;
|
||||
renderer.parseFrontMatterAndContent(raw);
|
||||
const preprocessed = preprocessCjkEmphasis(markdownContent);
|
||||
const html = marked.parse(preprocessed) as string;
|
||||
return { html, readingTime: readingTimeResult };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user