duplicate-headings

New Since v0.1.0

Linter: no two headings of one section say the same, which would leave their anchors apart by a number only.

Example#

doc.md:

# Guide

## Setup

## Usage

## Setup

markright check reports:

doc.md:7: heading repeats one of its section: Setup (duplicate-headings)
markright: 1 issue(s)

Fixed:

# Guide

## Setup

## Usage

## Upgrade

Turning it off#

linters:
  disable: [duplicate-headings]
[linters]
disable = ["duplicate-headings"]

More in Rules.

Settings

Appearance

ThemeColours of every page

Reading

Code blocksLines longer than the block
TablesCells wider than the page

Accessibility

Text sizeEvery page, in proportion
LinksLinks inside the text
MotionAnimations and smooth scrolling
ScrollbarsCode blocks, tables and other scrolling areas