fdoc

subroutinerender_text

subroutine render_text(p, base, context, prefix, text, html)

Render text, as if it belonged to entity context, for a page prefix away from the root.

Arguments

NameTypeIntentAttributesDescription
ptype(project_t)inouttarget

the project

basetype(markdown_options_t)in

the Markdown options

contextintegerin

the entity, or 0

prefixcharacter(len=*)in

from the page to the root of the site

textcharacter(len=*)in

the Markdown

htmlcharacter(len=:)outallocatable

the HTML

Calls

Source

Show the code
subroutine render_text(p, base, context, prefix, text, html)
    type(project_t), intent(inout), target :: p         !! the project
    type(markdown_options_t), intent(in) :: base        !! the Markdown options
    integer, intent(in) :: context                      !! the entity, or 0
    character(len=*), intent(in) :: prefix              !! from the page to the root of the site
    character(len=*), intent(in) :: text                !! the Markdown
    character(len=:), allocatable, intent(out) :: html  !! the HTML
    type(markdown_options_t) :: options
    type(link_context_t), target :: link

    options = base
    link%list => p%list
    link%entity = context
    link%prefix = prefix
    options%resolver_data => link
    call markdown_to_html(text, options, html)
end subroutine render_text

Graphs

Calls

Called by