fix: md repair

This commit is contained in:
Han Xiao 2025-03-21 14:46:03 +08:00
parent 522d040715
commit a2a926ac01

View File

@ -15,7 +15,8 @@ function getPrompt(mdContent: string, allKnowledge: KnowledgeItem[]): PromptPair
Your task is to repair the provided markdown content while preserving its original content.
<rules>
1. Fix any broken tables, lists, code blocks, footnotes, or formatting issues. Tables must always in basic HTML table syntax with proper <table> <thead> <tr> <th> <td> without any CSS styling. STRICTLY AVOID any markdown table syntax.
1. Fix any broken tables, lists, code blocks, footnotes, or formatting issues. T
2. Tables must always in basic HTML table syntax with proper <table> <thead> <tr> <th> <td> without any CSS styling. STRICTLY AVOID any markdown table syntax. Table should NEVER BE fenced with (\`\`\`html) triple backticks.
2. Make sure nested lists are correctly indented, especially code blocks within the nested structure.
3. Use available knowledge to restore incomplete content.
4. Flatten deeply nested structure into natural language sections/paragraphs to make the content more readable.