horizontal-rule
New Autofix Settings Since v0.1.0
Formatter: writes a horizontal rule as ---, or the style its settings choose.
Example#
doc.md:
Before.
* * *
After.markright check reports:
doc.md:3: horizontal rule written differently from the configured style (horizontal-rule)
markright: 1 issue(s)markright fmt rewrites it to:
Before.
---
After.Settings#
Under formatters.settings.horizontal-rule:
| Key | Meaning | Default |
|---|---|---|
style | How a horizontal rule is written | --- |
With the defaults, in .markright.yaml:
formatters:
settings:
horizontal-rule:
style: "---"or in .markright.toml:
[formatters.settings.horizontal-rule]
style = "---"Turning it off#
formatters:
disable: [horizontal-rule][formatters]
disable = ["horizontal-rule"]More in Rules.