lib/mdoc.rb in markdown_exec-1.8.1 vs lib/mdoc.rb in markdown_exec-1.8.2
- old
+ new
@@ -221,11 +221,10 @@
(block.oname&.present? || block[:label]&.present?)
)
end
end
- # if tr ue
# Recursively fetches required code blocks for a given list of requirements.
#
# @param reqs [Array<String>] An array of requirements to start the recursion from.
# @return [Array<String>] An array of recursively required code block names.
#
@@ -245,11 +244,10 @@
.flatten(1)
end
memo
end
- # else
# Recursively fetches required code blocks for a given list of requirements.
#
# @param source [String] The name of the code block to start the recursion from.
# @return [Hash] A list of code blocks required by each source code block.
#
@@ -270,11 +268,9 @@
recursively_required_hash(req, memo)
end
memo
end
-
- # end
# Recursively collects dependencies of a given source.
# @param source [String] The name of the initial source block.
# @param memo [Hash] A memoization hash to store resolved dependencies.
# @return [Hash] A hash mapping sources to their respective dependencies.