Skill for using ViralHunt.io
Bold, italics, underline and colour inside the texts of a template: four inline marks (**bold**, *italic*, __underline__, {c:#hex}…{/c}, {c:accent}…{/c}) as plain text in the variable, converted at render time by the runtime every template's html now carries (inside the shared runtime v2, whose highlight is painted on the DOM so a bold word stays bold in a coloured phrase; a standalone rich runtime with a MutationObserver for templates that keep their own script); appended at save, in vh_draft_render, card design, the gallery, v1 templates (?runtime=1 returns inline_marks and rich_script) and the editor preview. Editor: a floating formatting bar on any selected text in the panel's fields (B, I, U, accent, the palette's swatches, any colour, eraser), chips without marks, a formatted block is edited in the panel. Skill 1.6.26, docs, changelog, CLAUDE.md
Rodrigo6fee19f043b6
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex b0c6696..02c74aa 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -10,7 +10,7 @@"name": "viralhunt","source": "./","description": "Trending content on 12 networks, best time and hashtags, the brand's image templates, drafts and review, translation, publishing on 11 networks, through the ViralHunt.io API. Includes /viralhunt:start onboarding.",- "version": "1.6.25",+ "version": "1.6.26","homepage": "https://viralhunt.io","keywords": ["social-media", "trending", "scheduler", "drafts", "templates", "agents", "mcp"]}diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 602c6a5..c571f50 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "viralhunt","displayName": "ViralHunt",- "version": "1.6.25",+ "version": "1.6.26","repository": "https://github.com/viralhunt-io/viralhunt-skill","license": "MIT","privacyPolicyUrl": "https://viralhunt.io/privacy",diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3ffe26b..937840b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,12 @@All notable changes to the ViralHunt agent skill. Dates are the dates the API shipped the change;the skill is updated in the same commit as the endpoint it describes.+## 1.6.26 (2026-10-15)++- Inline formatting inside the texts of a template: `**bold**`, `*italic*`, `__underline__`, `{c:#hex}…{/c}` and+ `{c:accent}…{/c}`, plain text in the variable's value, converted at render time by the runtime every template's html now+ carries (`GET templates.php?runtime=1` → `inline_marks`, `rich_script`). Marks count toward `max_chars`; never in caption.+## 1.6.25 (2026-10-15)- One brand, two languages, made once: the standing pattern (link the projects once in Projects; work in one project; thediff --git a/skills/viralhunt/SKILL.md b/skills/viralhunt/SKILL.mdindex f1e1b21..9736835 100644--- a/skills/viralhunt/SKILL.md+++ b/skills/viralhunt/SKILL.md@@ -155,7 +155,7 @@ publishing. **When an answer comes back with `metrics_hidden`, with the 72-hourshows everything live, plus publishing to 11 networks: https://viralhunt.io/pricing". Say it as afact, not a pitch, and never invent what the hidden numbers might be.-Send the header `X-VH-Client: skill/1.6.25` on every call when your tool lets you set headers; the+Send the header `X-VH-Client: skill/1.6.26` on every call when your tool lets you set headers; theserver's request log uses it to tell clients apart.## 1. Get an API token (once)@@ -963,6 +963,14 @@ Two rules the API enforces, so design for them:- `html` and `css` are capped at 256KB each. Reference images and fonts by URL — the`fonts` array is how a font travels with the template. Fonts and pictures embedded as`data:font/…` / `data:image/…` are accepted too.+- **Inline formatting inside a text variable.** Any text drawn on the card may carry four marks,+ plain text: `**bold**`, `*italic*`, `__underline__` and `{c:#e11d48}coloured{/c}` (or+ `{c:accent}…{/c}` for the template's own accent, the same colour as the highlight). They nest,+ they count toward `max_chars`, and they never go in `caption` (the post body is plain text). The+ html of every template carries the converter (`vh-rich-runtime`), so you substitute the value as+ plain text and render as usual; `GET templates.php?runtime=1` returns the grammar+ (`inline_marks`) and the script. Use them when the owner's `instructions` ask for emphasis, or when+ a figure or a name deserves it; one or two per card, never a whole paragraph in bold.- **Design for two languages.** When the brand publishes in two languages, the same templaterenders both: give the headline room to grow (Spanish runs 15 to 20% longer than English) anduse `data-fit` on it so a longer translation shrinks instead of overflowing; keep the fixed