We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a1a95e commit 94729ddCopy full SHA for 94729dd
Sources/SwiftDocC/Model/Rendering/RenderContentConvertible.swift
@@ -11,9 +11,7 @@
11
import Foundation
12
import Markdown
13
14
-protocol RenderableDirectiveConvertible: AutomaticDirectiveConvertible where DirectiveType == Self {
15
- associatedtype DirectiveType
16
-
+protocol RenderableDirectiveConvertible: AutomaticDirectiveConvertible {
17
func render(with contentCompiler: inout RenderContentCompiler) -> [RenderContent]
18
}
19
@@ -22,7 +20,7 @@ extension RenderableDirectiveConvertible {
22
20
_ blockDirective: BlockDirective,
23
21
with contentCompiler: inout RenderContentCompiler
24
) -> [RenderContent] {
25
- guard let directive = DirectiveType.init(
+ guard let directive = Self.init(
26
from: blockDirective,
27
for: contentCompiler.bundle,
28
in: contentCompiler.context
0 commit comments