diff --git a/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/LLMChatInteractor.swift b/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/LLMChatInteractor.swift new file mode 100644 index 0000000..d5f8c34 --- /dev/null +++ b/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/LLMChatInteractor.swift @@ -0,0 +1,114 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See LICENSE in the project root for license information. +// + +import Foundation +import SwiftStreamingMarkdown + +final class LLMChatInteractor: ObservableObject { + /// Shared render config, also handed to `DocumentView` so on-screen styling + /// matches how each `RenderableDocument` was parsed. + let markdownConfig = MarkdownRenderConfig.default + .withShouldAnimateText(value: true) + .withImageConfig(ImageConfig( + enabled: true, + allowedImageTypes: [.assetCatalog, .bundledResource] + )) + + private let parser = MarkdownParserImpl() + private var nextResponseIndex = 0 + + /// Stream the greeting once, when the transcript is still empty. + func loadGreetingIfNeeded(into viewModel: LLMChatViewModel) async { + guard await viewModel.messages.isEmpty else { return } + await streamAssistantReply(markdown: Self.greeting, into: viewModel) + } + + /// Send the current draft as a user message and stream a rotating reply. + func send(into viewModel: LLMChatViewModel) async { + guard let text = await viewModel.consumeDraft() else { return } + await viewModel.appendUserMessage(text) + + let response = Self.mockResponses[nextResponseIndex] + nextResponseIndex = (nextResponseIndex + 1) % Self.mockResponses.count + await streamAssistantReply(markdown: response, into: viewModel) + } + + /// Simulate streaming by parsing progressively larger prefixes of `markdown` + /// and updating the same assistant bubble in place as its content grows. + private func streamAssistantReply(markdown: String, into viewModel: LLMChatViewModel) async { + let messageID = await viewModel.appendAssistantMessage(.empty) + + let chunkSize = 3 + var endIndex = markdown.startIndex + + while endIndex < markdown.endIndex { + if Task.isCancelled { return } + + endIndex = markdown.index( + endIndex, + offsetBy: chunkSize, + limitedBy: markdown.endIndex + ) ?? markdown.endIndex + + let snapshot = String(markdown[.. Mock responses rotate each time you send a message. + """ + ] +} diff --git a/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/LLMChatView.swift b/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/LLMChatView.swift new file mode 100644 index 0000000..92a0ac0 --- /dev/null +++ b/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/LLMChatView.swift @@ -0,0 +1,127 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See LICENSE in the project root for license information. +// + +import SwiftStreamingMarkdown +import SwiftUI + +struct LLMChatView: View { + @StateObject private var viewModel = LLMChatViewModel() + @StateObject private var interactor = LLMChatInteractor() + + #if os(macOS) + private let maxChatWidth: CGFloat = 640 + #else + private let maxChatWidth: CGFloat = .infinity + #endif + + var body: some View { + ScrollViewReader { proxy in + ScrollView { + LazyVStack(spacing: 16) { + ForEach(viewModel.messages) { message in + ChatMessageRow(message: message, config: interactor.markdownConfig) + .id(message.id) + } + } + .padding() + .frame(maxWidth: maxChatWidth) + .frame(maxWidth: .infinity) + } + .defaultScrollAnchor(.bottom) + .onChange(of: viewModel.messages.count) { + guard let lastMessage = viewModel.messages.last else { return } + withAnimation { + proxy.scrollTo(lastMessage.id, anchor: .bottom) + } + } + } + .background(Color.systemBackground) + .safeAreaInset(edge: .bottom) { + messageComposer + } + .task { + await interactor.loadGreetingIfNeeded(into: viewModel) + } + .navigationTitle("LLM Chat") + #if canImport(UIKit) + .navigationBarTitleDisplayMode(.inline) + #endif + } + + private var messageComposer: some View { + HStack(alignment: .bottom, spacing: 12) { + TextField("Message", text: $viewModel.draft, axis: .vertical) + .lineLimit(1...5) + .textFieldStyle(.plain) + .padding(.horizontal, 14) + .padding(.vertical, 10) + .background(Color.secondary.opacity(0.12), in: .rect(cornerRadius: 20)) + .onSubmit(send) + + Button(action: send) { + Image(systemName: "arrow.up") + .font(.headline) + .foregroundStyle(.white) + .frame(width: 38, height: 38) + .background(.blue, in: .circle) + } + .buttonStyle(.plain) + .disabled(!viewModel.canSend) + .opacity(viewModel.canSend ? 1 : 0.4) + .accessibilityLabel("Send message") + } + .padding(.horizontal) + .padding(.vertical, 10) + .frame(maxWidth: maxChatWidth) + .frame(maxWidth: .infinity) + .background(.bar) + } + + private func send() { + Task { await interactor.send(into: viewModel) } + } +} + +private struct ChatMessageRow: View { + let message: ChatMessage + let config: MarkdownRenderConfig + + var body: some View { + HStack { + if case .user = message.content { + Spacer(minLength: 48) + } + + messageContent + + if case .assistant = message.content { + Spacer(minLength: 48) + } + } + } + + @ViewBuilder + private var messageContent: some View { + switch message.content { + case .user(let text): + Text(text) + .foregroundStyle(.white) + .padding(.horizontal, 14) + .padding(.vertical, 10) + .background(.blue, in: .rect(cornerRadius: 18)) + case .assistant(let document): + DocumentView(renderableDocument: document, config: config) + .padding(14) + .background(Color.secondary.opacity(0.12), in: .rect(cornerRadius: 18)) + .frame(maxWidth: 560, alignment: .leading) + } + } +} + +#Preview { + NavigationStack { + LLMChatView() + } +} diff --git a/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/LLMChatViewModel.swift b/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/LLMChatViewModel.swift new file mode 100644 index 0000000..924b55f --- /dev/null +++ b/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/LLMChatViewModel.swift @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See LICENSE in the project root for license information. +// + +import Foundation +import SwiftStreamingMarkdown + +/// Presentation state for `LLMChatView`: the chat transcript and draft input. +/// All send/streaming logic lives in `LLMChatInteractor`; this type only holds +/// state and exposes main-actor mutations the interactor drives. +@MainActor +final class LLMChatViewModel: ObservableObject { + @Published private(set) var messages: [ChatMessage] = [] + @Published var draft = "" + + var canSend: Bool { + !draft.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty + } + + /// Return the trimmed draft and clear the input, or `nil` if it is blank. + func consumeDraft() -> String? { + let text = draft.trimmingCharacters(in: .whitespacesAndNewlines) + guard !text.isEmpty else { return nil } + draft = "" + return text + } + + func appendUserMessage(_ text: String) { + messages.append(ChatMessage(content: .user(text))) + } + + /// Append an assistant bubble and return its id so streaming updates can + /// target the same message as its content grows. + func appendAssistantMessage(_ document: RenderableDocument) -> UUID { + let message = ChatMessage(content: .assistant(document)) + messages.append(message) + return message.id + } + + func updateAssistantMessage(id: UUID, document: RenderableDocument) { + guard let index = messages.firstIndex(where: { $0.id == id }) else { return } + messages[index].content = .assistant(document) + } +} + +struct ChatMessage: Identifiable { + enum Content { + case user(String) + case assistant(RenderableDocument) + } + + let id = UUID() + var content: Content +} diff --git a/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/NavigationView.swift b/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/NavigationView.swift index 81428eb..fcb4f8e 100644 --- a/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/NavigationView.swift +++ b/Examples/SwiftStreamingMarkdownSample/SwiftStreamingMarkdownSample/NavigationView.swift @@ -23,14 +23,32 @@ struct NavigationView: View { } .frame(maxWidth: .infinity, maxHeight: .infinity) } else { - List(Demonstration.allCases) { demo in - NavigationLink(value: demo) { - VStack(alignment: .leading, spacing: 4) { - Text(demo.rawValue) - .font(.headline) - Text(demo.subtitle) - .font(.subheadline) - .foregroundStyle(.secondary) + List { + Section("Featured") { + NavigationLink { + LLMChatView() + } label: { + VStack(alignment: .leading, spacing: 4) { + Text("LLM Chat") + .font(.headline) + Text("Interactive chat with rich mock Markdown responses") + .font(.subheadline) + .foregroundStyle(.secondary) + } + } + } + + Section("Demonstrations") { + ForEach(Demonstration.allCases) { demo in + NavigationLink(value: demo) { + VStack(alignment: .leading, spacing: 4) { + Text(demo.rawValue) + .font(.headline) + Text(demo.subtitle) + .font(.subheadline) + .foregroundStyle(.secondary) + } + } } } } diff --git a/Sources/MarkdownText/UI/BlockView.swift b/Sources/MarkdownText/UI/BlockView.swift index 653f1f8..b7fa300 100644 --- a/Sources/MarkdownText/UI/BlockView.swift +++ b/Sources/MarkdownText/UI/BlockView.swift @@ -39,19 +39,13 @@ struct SingleBlockView: View { Group { switch renderable { case .heading(_, _, let contents): - HStack(spacing: 0) { - ParagraphView(contents: contents) - .transition(.opacity) - .accessibilityAddTraits(.isHeader) - Spacer() - } + ParagraphView(contents: contents) + .transition(.opacity) + .accessibilityAddTraits(.isHeader) case .paragraph(_, let contents): - HStack(spacing: 0) { - ParagraphView(contents: contents, lineSpacing: 5) - .fixedSize(horizontal: false, vertical: true) - .transition(.opacity) - Spacer() - } + ParagraphView(contents: contents, lineSpacing: 5) + .fixedSize(horizontal: false, vertical: true) + .transition(.opacity) case .latex(_, let latexString): ScrollView(.horizontal) { HStack(spacing: 0) { diff --git a/Tests/MarkdownTextTests/SnapshotTestFoundation/CanvasView.swift b/Tests/MarkdownTextTests/SnapshotTestFoundation/CanvasView.swift index 774c057..24ece97 100644 --- a/Tests/MarkdownTextTests/SnapshotTestFoundation/CanvasView.swift +++ b/Tests/MarkdownTextTests/SnapshotTestFoundation/CanvasView.swift @@ -18,7 +18,7 @@ public struct CanvasView: View { } public var body: some View { - VStack { + VStack(alignment: .leading) { content() Spacer() } diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPadPro11-light-US-en.png index cdbf073..eadf0a5 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png index 3f451a3..a42755b 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPhone16-dark-US-en.png index 34b19a6..25cb339 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPhone16-light-US-en.png index e7efab8..6124096 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.macOS-standard-dark.png index 9154259..386fe49 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.macOS-standard-light.png index 8509e57..8ebac35 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testBlockLatexWithCustomColor.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPadPro11-light-US-en.png index 06264b2..73b78d1 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPadPro11Landscape-dark-US-en.png index 9e483f1..cdffc78 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPhone16-dark-US-en.png index 59e99ae..c586484 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPhone16-light-US-en.png index eec2654..5ca041b 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.macOS-standard-dark.png index 1f8acdd..75adcd5 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.macOS-standard-light.png index cdf9d8d..3582456 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCitations.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPadPro11-light-US-en.png index d27fb2a..bba891f 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPadPro11Landscape-dark-US-en.png index 2791bc0..24baca3 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPhone16-dark-US-en.png index 66d465a..db62ceb 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPhone16-light-US-en.png index d735b3a..0554812 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.macOS-standard-dark.png index b672bed..3e3f39d 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.macOS-standard-light.png index da6081e..6a46411 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCompositeLatex.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPadPro11-light-US-en.png index 1d262f0..5cde944 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPadPro11Landscape-dark-US-en.png index b836404..cfa9ca6 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPhone16-dark-US-en.png index b2fbf5e..b10daeb 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPhone16-light-US-en.png index dd40a6e..57e5e1d 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.macOS-standard-dark.png index 57db6da..725312c 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.macOS-standard-light.png index bc743db..7a8f412 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testCustomBlockSpacing.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPadPro11-light-US-en.png index 907be52..0d77c88 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png index b1de0c7..b89cb4f 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPhone16-dark-US-en.png index ec8cd1a..fa6b922 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPhone16-light-US-en.png index c47c6fd..087fc42 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.macOS-standard-dark.png index daec229..e96c293 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.macOS-standard-light.png index 004492a..a4e5b14 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testInlineLatexWithCustomColor.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.iPhone16-dark-US-en.png index 0cddd4d..83f3091 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.iPhone16-light-US-en.png index 40d7865..fdb2f09 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.macOS-standard-dark.png index 619fb3a..bc2cf86 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.macOS-standard-light.png index 206b543..a57487c 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexInTable.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPadPro11-light-US-en.png index d705e33..62ecf42 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPadPro11Landscape-dark-US-en.png index b8716f3..e29534b 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPhone16-dark-US-en.png index 535ebae..6bdaf15 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPhone16-light-US-en.png index a266d72..736f63a 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.macOS-standard-dark.png index a7338c3..115d677 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.macOS-standard-light.png index 4cc2bb6..7d4ec2b 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithIndentation.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPadPro11-light-US-en.png index a25341d..211c373 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPadPro11Landscape-dark-US-en.png index f02045d..86275ca 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPhone16-dark-US-en.png index 3f972bb..850f824 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPhone16-light-US-en.png index 70e58b7..507928b 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.macOS-standard-dark.png index 9649060..597d6fe 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.macOS-standard-light.png index 0f3dd50..fb77cfc 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithNewLines.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.iPhone16-dark-US-en.png index 3697487..02d1251 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.iPhone16-light-US-en.png index d8579f2..6895bfa 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.macOS-standard-dark.png index 68adcd4..5d725fe 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.macOS-standard-light.png index 947d95a..fa69685 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testLatexWithSpecificSymbols.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPadPro11-light-US-en.png index 97cf40d..7ce14fb 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPadPro11Landscape-dark-US-en.png index 704bce8..5213738 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPhone16-dark-US-en.png index c3e1b1b..8464ae9 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPhone16-light-US-en.png index e255e3c..87a5d27 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.macOS-standard-dark.png index a9a9226..09b066c 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.macOS-standard-light.png index 9b07a45..c9b8153 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownLists_uikit.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPadPro11-light-US-en.png index 66aeb2b..73f10d6 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPadPro11Landscape-dark-US-en.png index 4818d42..01910ab 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPhone16-dark-US-en.png index 8436c1f..89c7370 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPhone16-light-US-en.png index 47762e1..bcaa12b 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.macOS-standard-dark.png index b83b76a..775b8ed 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.macOS-standard-light.png index ef43500..6b92282 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithComplexLatex.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.iPhone16-dark-US-en.png index 1649b8f..917b2c9 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.iPhone16-light-US-en.png index d5e62f1..bb293f0 100755 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.macOS-standard-dark.png index 76edf7b..d0e1e3e 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.macOS-standard-light.png index 45120af..975da80 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMarkdownWithInlineLatex_uikit.macOS-standard-light.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPadPro11-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPadPro11-light-US-en.png index 9170c8f..a307254 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPadPro11-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPadPro11-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png index dbc738f..ba4e253 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPadPro11Landscape-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPhone16-dark-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPhone16-dark-US-en.png index 59d1585..1c1fe61 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPhone16-dark-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPhone16-dark-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPhone16-light-US-en.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPhone16-light-US-en.png index 0b045e6..f862daf 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPhone16-light-US-en.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.iPhone16-light-US-en.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.macOS-standard-dark.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.macOS-standard-dark.png index 7bd5d8e..08f4cd9 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.macOS-standard-dark.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.macOS-standard-dark.png differ diff --git a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.macOS-standard-light.png b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.macOS-standard-light.png index 3155241..ca95db9 100644 Binary files a/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.macOS-standard-light.png and b/Tests/MarkdownTextTests/__Snapshots__/MarkdownTextSnapshotTests/testMixedLatexWithCustomColor.macOS-standard-light.png differ