subroutinerender_childrenrecursiveprivate
recursive subroutine render_children(t, id, options, out)
Write the children of node id.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| t | type(tree_t) | inout | the conversion | |
| id | integer | in | the node | |
| options | type(markdown_options_t) | in | what rendering depends on | |
| out | type(buffer_t) | inout | the HTML |
Calls
Source
Show the code
recursive subroutine render_children(t, id, options, out)
type(tree_t), intent(inout) :: t !! the conversion
integer, intent(in) :: id !! the node
type(markdown_options_t), intent(in) :: options !! what rendering depends on
type(buffer_t), intent(inout) :: out !! the HTML
integer :: k
do k = 1, size(t%nodes(id)%kids)
if (k > 1) call add(out, NL)
call render_node(t, t%nodes(id)%kids(k), options, out)
end do
end subroutine render_children