Fixes multi-line math in notebooks
Fixes multi-line math in notebooks

Closes #30900

stoplightio/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,dplarson/gitlabhq,axilleas/gitlabhq,dplarson/gitlabhq,dplarson/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,t-zuehlsdorff/gitlabhq,t-zuehlsdorff/gitlabhq,jirutka/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,dreampet/gitlab,dreampet/gitlab,mmkassem/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,axilleas/gitlabhq,iiet/iiet-git,dplarson/gitlabhq,stoplightio/gitlabhq