| @@ -635,8 +635,19 @@ | ||
| 635 | 635 | * |
| 636 | 636 | * @since 2.9.0 |
| 637 | 637 | * @access protected |
| 638 | 638 | */ |
| 639 | + public function render_markdown(): string { | |
| 640 | + $editor_content = $this->get_settings_for_display( 'editor' ); | |
| 641 | + $editor_content = $this->parse_text_editor( $editor_content ); | |
| 642 | + | |
| 643 | + if ( empty( $editor_content ) ) { | |
| 644 | + return ''; | |
| 645 | + } | |
| 646 | + | |
| 647 | + return \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $editor_content ); | |
| 648 | + } | |
| 649 | + | |
| 639 | 650 | protected function content_template() { |
| 640 | 651 | ?> |
| 641 | 652 | <# |
| 642 | 653 | if ( '' === settings.editor ) { |