| @@ -696,8 +696,16 @@ | ||
| 696 | 696 | public function render_plain_content() { |
| 697 | 697 | $this->render_content(); |
| 698 | 698 | } |
| 699 | 699 | |
| 700 | + public function render_markdown(): string { | |
| 701 | + ob_start(); | |
| 702 | + $this->render_content(); | |
| 703 | + $html = ob_get_clean(); | |
| 704 | + | |
| 705 | + return wp_strip_all_tags( $html ); | |
| 706 | + } | |
| 707 | + | |
| 700 | 708 | /** |
| 701 | 709 | * Before widget rendering. |
| 702 | 710 | * |
| 703 | 711 | * Used to add stuff before the widget `_wrapper` element. |