Cubeler PromptsCubeler PromptsCubeler Prompts
TeamsBotsSkillsPromptsPromptmasters
Developers
Login
CC0 2026 Cubeler Prompts
GitHub

Fix LaTeX dollars

Source: github.com/f/prompts.chat ยท Contributor: aldinei@gmail.com

p
@community_library
about 8 hours agoNovember 9, 2026 at 11:48 PM

Content

Variables
Investigate and fix the actual $ usages in Markdown content. The $ fall into three classes: - Currency (escape these) โ€” $1, $2 billion, R$ 549 โ†’ these pairs cause all the warnings - Real math (leave alone) โ€” $\rightarrow$, $O(1)\text{ streaming}$ โ†’ valid, no warnings - Shell code (leave alone) โ€” $(curlโ€ฆ), , $HOME โ†’ inside code blocks Execute in 4 steps: - Investigate โ€” greps the content, classifies every $ into currency / real math / shell code, and reports counts before changing anything. - Apply โ€” checks the tree is clean, then writes and runs the exact tested Python script (code-fence-, inline-code-, frontmatter-, and math-span-aware; idempotent via the (?<!\\) lookbehind so re-running never double-escapes). - Verify the diff โ€” the safety net: greps that must print nothing for real math ($\rightarrow$, \text) and shell vars ($HOME, $(โ€ฆ), ). If anything legit was touched, it tells you to git checkout -- . and stops. - Print instructions โ€” outputs the build-verify and commit/push commands for user to run. Do not autonomously run any build, commit, or push.

Comments (0)