Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders

Markdown_Builder::renderpublicYoast 1.0

Renders the markdown.

Метод класса: Markdown_Builder{}

Хуков нет.

Возвращает

Строку. The rendered markdown.

Использование

$Markdown_Builder = new Markdown_Builder();
$Markdown_Builder->render(): string;

Код Markdown_Builder::render() Yoast 26.9

public function render(): string {
	$this->llms_txt_renderer->add_section( $this->title_builder->build_title() );
	$this->llms_txt_renderer->add_section( $this->description_builder->build_description() );
	$this->llms_txt_renderer->add_section( $this->intro_builder->build_intro() );

	foreach ( $this->link_lists_builder->build_link_lists() as $link_list ) {
		$this->llms_txt_renderer->add_section( $link_list );
	}

	$this->llms_txt_renderer->add_section( $this->optional_link_list_builder->build_optional_link_list() );

	foreach ( $this->llms_txt_renderer->get_sections() as $section ) {
		$section->escape_markdown( $this->markdown_escaper );
	}

	return $this->llms_txt_renderer->render();
}