Inserts the abstract text and source link into the Markdown content if an abstract is found for the given repository. If no abstract is found, an empty string is inserted in place of the abstract content.
Source:R/utils_render_cert_md.R
add_abstract.RdInserts the abstract text and source link into the Markdown content if an abstract is found for the given repository. If no abstract is found, an empty string is inserted in place of the abstract content.
Arguments
- repo_link
A character string containing the repository link from which to retrieve the abstract.
- md_content
A character string containing the Markdown content with placeholders for abstract details.
- abstract_data
Optional pre-resolved abstract (list with `source`/`text`, see
resolve_external_field); when `NULL`, looked up here directly.