diff --git a/docs/docs/settings/spacing-rules.md b/docs/docs/settings/spacing-rules.md index 5edb471f..209ddd07 100644 --- a/docs/docs/settings/spacing-rules.md +++ b/docs/docs/settings/spacing-rules.md @@ -686,6 +686,15 @@ All headings have a blank line both before and after (except where the heading i | `Bottom` | Insert a blank line after headings | N/A | `true` | | `Empty Line Between YAML and Header` | Keep the empty line between the YAML frontmatter and header | N/A | `true` | +### Additional Info + + +!!! Warning + If [paragraph blank lines](#paragraph-blank-lines) is on, a newline will still be added between a heading and a paragraph, even if `Bottom` is `false`. You can override this by adding a [custom regex replacement rule](./custom-rules.md#custom-regex-replacement) with the following settings: + + | regex to find | flags | regex to replace | + |:------------- |:----- |:---------------- | + | `(^#+\s.*)\n+` | `gm` | `$1\n` | ### Examples