Skip to contents

Replaces a placeholder in Markdown content with a hyperlink to the repository, based on the repository type (e.g., GitHub, OSF, GitLab).

Usage

add_repository_hyperlink(md_content, repo_link)

Arguments

md_content

A character string containing Markdown content with a placeholder for the repository link.

A character string containing the repository URL to be converted into a hyperlink.

Value

The modified markdown content.