Fix LaTeX dollars

Fix LaTeX dollars

Walks a developer through finding currency dollar signs in Markdown, escaping them with a script and checking that math and shell variables stay intact.

Prompt

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…), ${ZSH_CUSTOM}, $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, $(…), ${VAR}). 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.

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 2,873 prompts

More by @OpenSourceBuffGuy

See all
Ethereum Developer prompt image

Ethereum Developer

Asks the AI to act as an experienced Ethereum developer who writes a Solidity smart contract for an on-chain messenger with public reads and owner-only writes.

act-as, crypto, coding

1 view
Linux Terminal prompt image

Linux Terminal

Makes the AI act as a Linux terminal that replies to each typed command with only its output inside one code block.

simulator, linux, coding

5 views
English Translator and Improver prompt image

English Translator and Improver

Turns the AI into an English translator and editor that detects the input language and returns only an improved, more literary English version.

act-as, translation, rewriting, proofreading

2 views

Reviews

Loading reviews…

Discussion

Loading comments…