# Однострочное уравнение MathJax ломает строку

**URL:** <https://meta.discourse.org/t/mathjax-one-liner-equation-breaks-the-line/128046>\
**Category:** UX\
**Created:** [09.Сентябрь.2019 14:44:38 UTC](https://meta.discourse.org/t/mathjax-one-liner-equation-breaks-the-line/128046 "2019-09-09T14:44:38Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![verilog15](https://avatars.discourse-cdn.com/v4/letter/v/9f8e36/32.png) [@verilog15](https://meta.discourse.org/u/verilog15)\
**Post date:** [09.Сентябрь.2019 23:37:23 UTC](https://meta.discourse.org/t/mathjax-one-liner-equation-breaks-the-line/128046/10 "2019-09-09T23:37:23Z")

</div>

Я выяснил, откуда берется проблема. В плагине discourse-math появился [новый коммит](https://github.com/discourse/discourse-math/commit/9615034d78f7eaeee7038ec491423791ba4f5196), который добавляет новый атрибут ‘math-container’.  
В инструментах разработчика я вижу:

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/0/30c8d947e55113d4cb93ed0b8c70d50a055f878d.png)

Если я добавлю проверку этого атрибута, всё заработает:

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/5/6505903936ceddafcc8de6d28ee967b3b12cfb48.png)

---

_[View the full topic](https://meta.discourse.org/t/mathjax-one-liner-equation-breaks-the-line/128046)._
