Skip to content

Commit 5a5bf00

Browse files
authored
Merge pull request #9 from Jomy10/linux
Fixed support for Linux
2 parents b95c2ae + a81a4ad commit 5a5bf00

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Sources/MarkdownKit/CustomBlock.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ public protocol CustomBlock: CustomStringConvertible, CustomDebugStringConvertib
2828
func equals(to other: CustomBlock) -> Bool
2929
func parse(via parser: InlineParser) -> Block
3030
func generateHtml(via htmlGen: HtmlGenerator, tight: Bool) -> String
31+
#if !os(Linux)
3132
func generateHtml(via htmlGen: HtmlGenerator,
3233
and attGen: AttributedStringGenerator?,
3334
tight: Bool) -> String
35+
#endif
3436
}

Sources/MarkdownKit/CustomTextFragment.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public protocol CustomTextFragment: CustomStringConvertible, CustomDebugStringCo
2828
func equals(to other: CustomTextFragment) -> Bool
2929
func transform(via transformer: InlineTransformer) -> TextFragment
3030
func generateHtml(via htmlGen: HtmlGenerator) -> String
31+
#if !os(Linux)
3132
func generateHtml(via htmlGen: HtmlGenerator, and attrGen: AttributedStringGenerator?) -> String
33+
#endif
3234
var rawDescription: String { get }
3335
}

0 commit comments

Comments
 (0)