Skip to content

HeaderConverter

Constants

Constant Visibility Type Value
STYLE_ATX public 'atx'
STYLE_SETEXT public 'setext'

Properties

config

protected \League\HTMLToMarkdown\Configuration $config

Methods

setConfig

public setConfig(\League\HTMLToMarkdown\Configuration $config): void

Parameters:

Parameter Type Description
$config \League\HTMLToMarkdown\Configuration

convert

public convert(\League\HTMLToMarkdown\ElementInterface $element): string

Parameters:

Parameter Type Description
$element \League\HTMLToMarkdown\ElementInterface

getSupportedTags

public getSupportedTags(): string[]

createSetextHeader

private createSetextHeader(int $level, string $content): string

Parameters:

Parameter Type Description
$level int
$content string

createAtxHeader

private createAtxHeader(int $level, string $content): string

Parameters:

Parameter Type Description
$level int
$content string


Automatically generated on 2025-03-18