I am using mdframed to box equations to include the equation number, as I quite like how it looks. However I've noticed that this results in a misalignment between equation numbers that are boxed, and those that are not. Is there an easy fix for this, or is it recommended to use a different method to mdframed?
Below is an example of how I'm using it.
\documentclass{article}
\usepackage{amsmath}
\usepackage{mdframed}
\begin{document}
Here is an important equation I would like to highlight:
\begin{mdframed}
\begin{equation}
e^{i\pi}=-1
\end{equation}
\end{mdframed}
Here is an equation not important enough to deserve a highlight:
\begin{equation}
y=mx+c
\end{equation}
\end{document}
Any advice is appreciated.


