fdoc

subroutinerender_childrenrecursiveprivate

recursive subroutine render_children(t, id, options, out)

Write the children of node id.

Arguments

NameTypeIntentAttributesDescription
ttype(tree_t)inout

the conversion

idintegerin

the node

optionstype(markdown_options_t)in

what rendering depends on

outtype(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

Graphs

Calls

Called by