check the fig_path_ext option

is_fig_path_ext(input)

Arguments

input

the path to an R Markdown file