expand_md_links: expand_md_links

View source: R/expand_md_links.R

expand_md_linksR Documentation

Description

Make markdown links into full paths to GP catalog. Supports 2 types of links:

  • Named Link: ⁠![Link Text](filename.ext)⁠

  • Unnamed Link: {filename.ext}

Usage

expand_md_links(md, WD)

Arguments

md

a markdown string or vector

WD

the Working Directory

Details

Ex:

  • "See ⁠![image1](img.png)⁠ for details" becomes ->

  • "See ⁠![image1](https://catalog.galacticpolymath.com/ThisProject/img.png)⁠ for details" Ex: 2:

  • "{img.png}" becomes ->

  • ⁠{https://catalog.galacticpolymath.com/ThisProject/img.png}⁠

See Also

Other markdown: fixAnchorLinks(), parseGPmarkdown()


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.