Skip to content

Commit

Permalink
Fix docs for #741
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Nov 8, 2021
1 parent d736d39 commit 8005bfc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,7 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
### Added

- Added support for ext-yaml in FrontMatterExtension (#715)
- Added new `heading_permalink/aria_hidden` config option (#741)

## [2.0.2] - 2021-08-14

Expand Down
7 changes: 0 additions & 7 deletions docs/2.0/extensions/heading-permalinks.md
Expand Up @@ -44,7 +44,6 @@ $config = [
'max_heading_level' => 6,
'title' => 'Permalink',
'symbol' => HeadingPermalinkRenderer::DEFAULT_SYMBOL,
'aria_hidden' => true
],
];

Expand Down Expand Up @@ -112,12 +111,6 @@ If you want to use a custom icon, then set this to an empty string `''` and chec

This option sets the `title` attribute on the `<a>` tag. This defaults to `'Permalink'`.

### `aria_hidden`

This option sets the `aria-hidden` attribute on the `<a>` tag. This defaults to `aria-hidden="true"`.

Setting this option to false would render the `<a>` tag excluding the `aria-hidden` entirely.

## Example

If you wanted to style your headings exactly like this documentation page does, try this configuration!
Expand Down
2 changes: 1 addition & 1 deletion docs/2.1/extensions/heading-permalinks.md
Expand Up @@ -44,7 +44,7 @@ $config = [
'max_heading_level' => 6,
'title' => 'Permalink',
'symbol' => HeadingPermalinkRenderer::DEFAULT_SYMBOL,
'aria_hidden' => true
'aria_hidden' => true,
],
];

Expand Down

0 comments on commit 8005bfc

Please sign in to comment.