This is a follow-up to What does the \the\everypar do? and TikZ Overlay: Inject content at the start of the next paragraph?
From a quick
grep -R '\\everypar' texmf-dist/tex/latex I can see that
\everypar is used extensively in different packages. Is there a safe, agreed-upon way how to use
\everypar to prepend some content to some paragraphs without breaking other packages in the process? I read that ConTeXt has
\EveryPar, but I assume that doesn't exist in LaTeX.
Essentially I'd like to create a macro which prepends something only to the next paragraph started after it is called, but without breaking other packages along the way.
For example, is it possible to insert a custom hook into the token list, and remove it again later--while hoping that other packages don't clear the token list when you're not looking? Or is there no such thing in TeX/LaTeX?