mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-14 02:15:41 +00:00
feat(newsletter): protect code, verdicts and author notes in rewrites
protected-lines now keeps fenced code blocks (re-indent allowed) and **Đánh giá:** verdict lines, and leaves summary sub-headings and short italic key-point labels rewritable. The rewrite skill skips posts without the AI-Assisted tag.
This commit is contained in:
1 parent
c0eecc1263
commit
210d2cdbea
4 files changed
+90
-5
No files matched your search
@@ -157,8 +157,9 @@ Counts what a post already holds, so a handler can report a running tally.
|
||||
### `protected-lines <path/to/index.md> [--against <snapshot.json>]`
|
||||
|
||||
Lists the lines a rewrite (`mt-rewrite-newsletter`) must keep byte-for-byte:
|
||||
frontmatter, headings, `<i>` blocks, whole-line italic notes, `~~struck~~`
|
||||
lines, and asset links / Bonus subsection labels. Paragraphs mentioning `mình`
|
||||
frontmatter, headings (except `###` sub-headings inside a summary), `<i>`
|
||||
blocks, whole-line italic notes, `~~struck~~` lines, fenced code blocks, and
|
||||
asset links / Bonus subsection labels. Paragraphs mentioning `mình`
|
||||
or `MiTi` come back as `candidates` for a human-style judgement; the machine
|
||||
provenance note (`*Bài viết đã được … bởi …*`) comes back as `note` and is not
|
||||
protected.
|
||||
|
||||
Reference in new issue
Block a user