File tree 1 file changed +13
-11
lines changed
1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -181,20 +181,22 @@ defmodule GraphqlMarkdown.MultiPage do
181
181
end
182
182
183
183
defp reference_for_kind ( field ) do
184
- case Schema . field_kind ( field [ "type" ] ) do
185
- "OBJECT" ->
186
- "objects.html#" <> Schema . field_type ( field [ "type" ] )
184
+ reference =
185
+ case Schema . field_kind ( field [ "type" ] ) do
186
+ "OBJECT" ->
187
+ "objects.html#" <> Schema . field_type ( field [ "type" ] )
187
188
188
- "INPUT_OBJECT" ->
189
- "inputs.html#" <> Schema . field_type ( field [ "type" ] )
189
+ "INPUT_OBJECT" ->
190
+ "inputs.html#" <> Schema . field_type ( field [ "type" ] )
190
191
191
- "ENUM" ->
192
- "enums.html#" <> Schema . field_type ( field [ "type" ] )
192
+ "ENUM" ->
193
+ "enums.html#" <> Schema . field_type ( field [ "type" ] )
193
194
194
- _ ->
195
- "scalars.html#" <> Schema . field_type ( field [ "type" ] )
196
- end
197
- |> String . downcase ( )
195
+ _ ->
196
+ "scalars.html#" <> Schema . field_type ( field [ "type" ] )
197
+ end
198
+
199
+ String . downcase ( reference )
198
200
end
199
201
200
202
defp render ( type , text ) do
You can’t perform that action at this time.
0 commit comments