Fix gitbook formatting

This commit is contained in:
Filip Tibell 2023-05-01 12:20:42 +02:00
parent d4d9108947
commit 3cc514a301
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -30,5 +30,5 @@ generate-gitbook:
cargo run -- --generate-gitbook-dir
# Publish gitbook directory to gitbook branch
publish-gitbook:
publish-gitbook: generate-gitbook
npx push-dir --dir=gitbook --branch=gitbook

View file

@ -255,6 +255,7 @@ fn post_process_docs(contents: String) -> String {
.collect::<Vec<_>>()
.join("\n");
no_empty_lines
.replace("\n\n---", "\n---")
.replace("\n\n\n", "\n\n")
.replace("\n\n\n", "\n\n")
}