I'm trying to insert a numbered equation inside a yellow box. The problem is that the yellow box extends across the entire line. How can I avoid it?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[most]{tcolorbox}
\newtcolorbox{mybox}{
enhanced,
boxrule=0pt,frame hidden,
colback=yellow!40!white,
sharp corners
}
\begin{document}
\section{Introduction}
\begin{mybox}
\begin{equation}
a = b
\end{equation}
\end{mybox}
\end{document}