Skip to content

Commit e92a49a

Browse files
committed
update html prompt language.
1 parent 9a97a1e commit e92a49a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/prompts/html-snippet-merge-guidelines.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
> These rules apply to **any and all HTML snippets** you generate.
55
> **Every HTML snippet** must fully comply with these rules at all times.
66
> These rules ensure that your generated HTML can be safely **automatically merged** into an existing document structure without manual editing.
7+
> Make the smallest possible code snippet that will cause the desired change.
78
89
You must follow these guidelines **exactly** for **every** snippet you generate.
910

@@ -78,7 +79,8 @@ The merge system operates under the following principles:
7879
```html
7980
<p id="intro" DELETE_THIS_NODE></p>
8081
```
81-
82+
✅ Do not include the inner contents of the element or any other atribiutes besides the `DELETE_THIS_NODE` on thats that are to be delete.
83+
✅ Do not include parent nodes. Only the node being deleted. If working on a larger snippet sinply put these deletes at the end of the snippet.
8284
✅ The node with `id="intro"` will be completely **removed** from the document.
8385

8486
---

0 commit comments

Comments
 (0)