Skip to content

Commit

Permalink
Remove undocumented ancient behaviour spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 5, 2023
1 parent 8ba5363 commit 98849a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
* Configuration.
* @property {Behavior | null | undefined} [behavior='prepend']
* How to create links (default: `'prepend'`).
* @property {Behavior | null | undefined} [behaviour]
* The queens version, use `behavior` instead (optional).
* @property {Readonly<ElementContent> | ReadonlyArray<ElementContent> | Build | null | undefined} [content={type: 'element', tagName: 'span', properties: {className: ['icon', 'icon-link']}, children: []}]
* Content to insert in the link (default: `<span class="icon icon-link"></span>`).
* @property {Readonly<ElementContent> | ReadonlyArray<ElementContent> | Build | null | undefined} [group]
Expand Down Expand Up @@ -76,7 +74,7 @@ const emptyOptions = {}
export default function rehypeAutolinkHeadings(options) {
const settings = options || emptyOptions
let props = settings.properties || undefined
const behavior = settings.behaviour || settings.behavior || 'prepend'
const behavior = settings.behavior || 'prepend'
const content = settings.content || contentDefaults
const group = settings.group
const is = convertElement(settings.test)
Expand Down

0 comments on commit 98849a7

Please sign in to comment.