| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | |
| 4 | 4 | use Elementor\Controls_Stack; |
| 5 | 5 | use Elementor\Core\DynamicTags\Dynamic_CSS; |
| 6 | 6 | use Elementor\Core\Kits\Manager; |
| 7 | +use Elementor\Core\Frontend\Widget_Content_Render_Mode; | |
| 7 | 8 | use Elementor\Element_Base; |
| 8 | 9 | use Elementor\Plugin; |
| 9 | 10 | |
| 10 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -280,8 +281,12 @@ | ||
| 280 | 281 | * |
| 281 | 282 | * @param Element_Base $element The element. |
| 282 | 283 | */ |
| 283 | 284 | protected function render_styles( Element_Base $element ) { |
| 285 | + if ( Widget_Content_Render_Mode::is( Widget_Content_Render_Mode::MARKDOWN ) ) { | |
| 286 | + return; | |
| 287 | + } | |
| 288 | + | |
| 284 | 289 | /** |
| 285 | 290 | * Before element parse CSS. |
| 286 | 291 | * |
| 287 | 292 | * Fires before the CSS of the element is parsed. |