Repository navigation
Commit ef2b350
authored
Stop telling an agent to send a Markdown fold as HTML (#1030)
* Stop telling an agent to send a Markdown fold as HTML
A fold written the way the basecamp skill says, <details> and
<summary> around Markdown, made the CLI warn that the content held
HTML tags and to pass --format html to send it as written. That is
the one thing the skill says not to do: --format html stores the
post exactly as written, so every paragraph, table, list and fold
in it renders touching. Agents that followed the warning, or the
writing guide that said the same, posted with no space between
blocks.
The warning now leaves out raw HTML that holds only a fold's own
tags, as it already leaves out mention markup. A fold written as
HTML, a summary holding other tags, or HTML beside a fold still
warns.
* Exempt only bare fold tags with text between them from the HTML warning
Scanning raw HTML for tag names let a comment or declaration inside a
fold pass as fold markup. Match the whole raw HTML instead: every "<"
must open <details>, <summary> or their closing tags, so a comment,
an attribute or any other tag keeps the warning.1 parent b41435c commit ef2b350
2 files changed
Lines changed: 30 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
488 | | - | |
489 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
490 | 492 | | |
491 | 493 | | |
492 | 494 | | |
| |||
507 | 509 | | |
508 | 510 | | |
509 | 511 | | |
510 | | - | |
| 512 | + | |
511 | 513 | | |
512 | 514 | | |
513 | 515 | | |
| |||
516 | 518 | | |
517 | 519 | | |
518 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
519 | 534 | | |
520 | 535 | | |
521 | 536 | | |
| |||
0 commit comments