Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/instructions/FREEFORM.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ The output MUST be **one self-contained `.html` file that works offline**:
attribution are allowed — they're navigation, not resource loads.)
- **Include this CSP `<meta>`** in `<head>` (it is your safety net and a self-check):
`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; img-src data:;">`
- **Include a small credit footer.** At the very end of the page, add an
unobtrusive footer line crediting the tool, styled to match the page's own
design (not a generic default) — e.g. `Made with Think-In-HTML`, or a variant
in the page's own voice, with **"Think-In-HTML" as a real hyperlink** to
`https://github.com/vibhusharma101/Think-In-HTML`. Same convention blocks
mode already renders automatically — keep it small and out of the way, like a
"built with" mark, never competing with the content.
- **Escape anything taken verbatim from the source.** If you echo the user's code/text
into the DOM, put it in as text (`textContent`), or HTML-escape `& < > " '` — never
build DOM from an unescaped source string. Your own authored markup is fine.
Expand Down
2 changes: 1 addition & 1 deletion examples/novus-pricing-desk.freeform.html
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ <h2>The whole thing, recapped</h2>
</section>

<footer>
<div class="fl">♻️ Made on the fly by Think-In-HTML</div>
<div class="fl">♻️ Made on the fly by <a href="https://github.com/vibhusharma101/Think-In-HTML" target="_blank" rel="noopener" style="color:inherit">Think-In-HTML</a></div>
A bespoke explainer for <span style="font-family:var(--mono)">suggest-price/route.ts</span> · Novus-Hackathon
</footer>

Expand Down
2 changes: 1 addition & 1 deletion examples/novus-rate-limit.freeform.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ <h2>Recap</h2>
</ul>
</section>

<footer>Made on the fly by <b>Think-In-HTML</b> · a bespoke explainer for <span class="m">rate-limit.ts</span> · Novus-Hackathon</footer>
<footer>Made on the fly by <b><a href="https://github.com/vibhusharma101/Think-In-HTML" target="_blank" rel="noopener" style="color:inherit">Think-In-HTML</a></b> · a bespoke explainer for <span class="m">rate-limit.ts</span> · Novus-Hackathon</footer>

<script>
(function(){
Expand Down
Loading