Skip to content

Commit

Permalink
Merge pull request #27 from ArnaudLigny/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHoegh authored Jul 5, 2024
2 parents 4befbe6 + ecba257 commit a74e3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ParsedownToc.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ protected function setContentsListAsString(array $Content): void
$text = $this->fetchText($Content['text']);
$id = $Content['id'];
$level = (int) trim($Content['level'], 'h');
$link = "[{$text}](#{$id})";
$link = "[{$text}]({$this->options['url']}#{$id})";

if ($this->firstHeadLevel === 0) {
$this->firstHeadLevel = $level;
Expand Down

0 comments on commit a74e3e7

Please sign in to comment.