swiftgemtext

[ACTIVE] gemtext parsing in swift
git clone git://git.figbert.com/swiftgemtext.git
Log | Files | Refs | README

commit c1489e8be5245ce4faa27e011ae2a8b4de85d22d
parent e369ff7fb229a7174c3f77048d4e3303dd9d9453
Author: FIGBERT <figbert@figbert.com>
Date:   Sat,  3 Sep 2022 14:16:10 -0700

Export public API

Diffstat:
MSources/SwiftGemtext/SwiftGemtext.swift | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Sources/SwiftGemtext/SwiftGemtext.swift b/Sources/SwiftGemtext/SwiftGemtext.swift @@ -1,7 +1,7 @@ import SwiftUI -struct Gemtext { - func parse(_ source: String) -> [LineType] { +public struct Gemtext { + public func parse(_ source: String) -> [LineType] { var lines = [LineType]() var pre = PreformattedState() @@ -66,7 +66,7 @@ struct PreformattedState { } } -enum LineType: Equatable { +public enum LineType: Equatable { case Text(String) case Link(URL, String?) case PreformattedText(String, String?)