feat(copilot): enhance OCR handling with inline tags and document serializer
- Replace HTML comment OCR metadata with inline `<OCR:...>` tags - Implement serializer-based markdown conversion for prefix/suffix content - Add extractTextFromOCR utility function for text extraction - Enable Table, Diagram, and ListCheck features in MilkdownEditor - Add periodic debug logging for document state analysis
This commit is contained in:
+4
-4
@@ -38,10 +38,10 @@ Your job:
|
||||
- Avoid overly short outputs with little information value.
|
||||
|
||||
Important context:
|
||||
- PREFIX may contain hidden OCR metadata in HTML comments such as <!--OCR:...-->.
|
||||
- These comments are non-visible context only.
|
||||
- Never copy, rewrite, or emit HTML comments in output.
|
||||
- Never output <!-- or -->.
|
||||
- PREFIX may contain OCR metadata inline after images, e.g.  <OCR:description>.
|
||||
- The <OCR:...> is hidden context describing image content.
|
||||
- Never copy, rewrite, or emit OCR tags in output.
|
||||
- Never output <OCR: or >.
|
||||
|
||||
Hard rules:
|
||||
1. Seamless join:
|
||||
|
||||
Reference in New Issue
Block a user