From cbe986e5e2e84bbc075d5a0d7562a8635868a537 Mon Sep 17 00:00:00 2001 From: Roshan Kumar Sah Date: Mon, 2 Jun 2025 19:56:52 +0530 Subject: [PATCH] Document sync for newline characters --- Sources/Markdown/Walker/Walkers/MarkupFormatter.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Markdown/Walker/Walkers/MarkupFormatter.swift b/Sources/Markdown/Walker/Walkers/MarkupFormatter.swift index b45c170e..67db4f4f 100644 --- a/Sources/Markdown/Walker/Walkers/MarkupFormatter.swift +++ b/Sources/Markdown/Walker/Walkers/MarkupFormatter.swift @@ -47,14 +47,14 @@ fileprivate extension String { } fileprivate extension CodeBlock { - /// The code contents split by newline (`\n`), dropping leading and trailing lines that are empty. + /// The code contents split by newline characters, dropping leading and trailing lines that are empty. var trimmedLineSegments: ArraySlice { return code.trimmedLineSegments } } fileprivate extension HTMLBlock { - /// The HTML contents split by newline (`\n`), dropping leading and trailing lines that are empty. + /// The HTML contents split by newline characters, dropping leading and trailing lines that are empty. var trimmedLineSegments: ArraySlice { return rawHTML.trimmedLineSegments }