| @@ -165,5 +165,15 @@ | ||
| 165 | 165 | * @since 2.9.0 |
| 166 | 166 | * @access protected |
| 167 | 167 | */ |
| 168 | 168 | protected function content_template() {} |
| 169 | + | |
| 170 | + public function render_markdown(): string { | |
| 171 | + $settings = $this->get_settings_for_display(); | |
| 172 | + $shortcode = $settings['shortcode'] ?? ''; | |
| 173 | + if ( empty( $shortcode ) ) { | |
| 174 | + return ''; | |
| 175 | + } | |
| 176 | + $output = do_shortcode( $shortcode ); | |
| 177 | + return Utils::html_to_plain_text( $output ); | |
| 178 | + } | |
| 169 | 179 | } |