Keep container fence lines out of prose chunks
A closing ::: glued to a paragraph (no blank line before it) rode inside the prose chunk and crossed to the translator as part of the text run; when the model dropped it, validation passed and the splice lost the fence — the rest of the page rendered inside the container (seen in the Spanish translation). Container fence lines (::: openers and closers alike) are now always their own prose-free chunk, never reaching the translator. Affected pages re-chunk on next save and re-translate under the new hashes, repairing themselves.
This commit is contained in:
@@ -146,7 +146,11 @@ served Markdown at render time.
|
||||
|
||||
`chunk_markdown(markdown)` splits the source into block-level chunks —
|
||||
blank-line-separated blocks: headings, paragraphs, code fences (kept whole),
|
||||
list blocks, tables, HTML blocks. A chunk's identity is its **source text**,
|
||||
list blocks, tables, HTML blocks. Container fence lines (`::: name` openers
|
||||
and `:::` closers) are always their own chunk, blank lines or not — folded
|
||||
into a prose chunk the closer would cross to the translator as part of the
|
||||
text, where the model can drop it (the rest of the page then renders inside
|
||||
the container). A chunk's identity is its **source text**,
|
||||
gettext-msgid style:
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user