MarkdownLink extends AbstractPostProcessor
MarkdownLink class. This class processes Markdown links in the output HTML,
replacing internal links to .md
files with the correct URLs.
It handles links that may include a section anchor and adjusts the href attribute accordingly.
Table of Contents
Properties
Methods
- __construct() : mixed
- Gives the Builder to the object.
- process() : string
- Process output.
Properties
$builder
protected
Builder
$builder
$config
protected
Config
$config
Methods
__construct()
Gives the Builder to the object.
public
__construct(Builder $builder) : mixed
Parameters
- $builder : Builder
process()
Process output.
public
process(Page $page, string $output, string $format) : string
Replaces internal link to *.md files with the right URL.
Parameters
- $page : Page
- $output : string
- $format : string