fence-marker

New Autofix Settings Since v0.1.0

Formatter: writes the fences of code blocks with backticks, or the character its settings choose.

Example#

doc.md:

~~~bash
make build
~~~

markright check reports:

doc.md:1: code fence written with a different character from the configured one (fence-marker)
doc.md:3: code fence written with a different character from the configured one (fence-marker)
markright: 2 issue(s)

markright fmt rewrites it to:

```bash
make build
```

Settings#

Under formatters.settings.fence-marker:

KeyMeaningDefault
markerThe character of the fences of code blocks`

With the defaults, in .markright.yaml:

formatters:
  settings:
    fence-marker:
      marker: "`"

or in .markright.toml:

[formatters.settings.fence-marker]
marker = "`"

Turning it off#

formatters:
  disable: [fence-marker]
[formatters]
disable = ["fence-marker"]

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