1.6 KiB
1.6 KiB
Markdown Schema Contract: Output Article Markdown
Feature: 005-convert-json-markdown | Date: 2026-08-21
1. Output Document Specification
The generated Markdown document MUST strictly adhere to the following template structure:
# {Resolved Title}
{Resolved Subtitle/Description - OMITTED IF ABSENT OR EQUAL TO TITLE}
**Autor:** {Resolved Authors joined by ", " - OMITTED IF ABSENT}
**Publicado em:** {Resolved Publication Date - OMITTED IF ABSENT}
**Site:** {Resolved Site Name - OMITTED IF ABSENT}
**Categoria:** {Resolved Categories joined by ", " - OMITTED IF ABSENT}
**Tags:** {Resolved Tags joined by ", " - OMITTED IF ABSENT}
**Palavras-chave:** {Resolved Keywords joined by ", " - OMITTED IF ABSENT}
**Idioma:** {Resolved Language Code - OMITTED IF ABSENT}
**Fonte original:** [{Resolved Original URL}]({Resolved Original URL})

---
{Converted Markdown Body Content}
2. Formatting & Syntax Constraints
- Character Encoding: UTF-8 without BOM.
- Line Delimiters: UNIX-style
LF(\n). - Trailing Whitespace: Stripped from every line.
- Blank Lines: Maximum of 2 consecutive newline characters (
\n\n), preventing excessive vertical spacing. - EOF Delimiter: Ends with exactly one trailing newline character (
\n). - No Placeholders: Never print
null,None,N/A,unknown,[no-author], or empty metadata labels (e.g.**Autor:**). - No Internal Leakage: Never output
selected_extractorname, scoring metrics, or JSON internals in the final document.