NAME
App::Greple::md::Image - find the files of the images of a Markdown text
SYNOPSIS
use App::Greple::md::Image qw(local_path);
my $file = local_path('images/a.png', $dir) or return;
DESCRIPTION
This module finds the image files for the image_types option of App::Greple::md, which shows them with Text::ANSI::Image.
- local_path(URL, DIR)
-
Returns the local file of an image, or
undef. A path is taken relative to DIR, the directory of the Markdown file. A GitHub URL,https://raw.githubusercontent.com/OWNER/REPO/BRANCH/PATHorhttps://github.com/OWNER/REPO/blob/BRANCH/PATH, is taken as the file PATH in the git work tree of DIR, if one of its remotes isgithub.com/OWNER/REPO. Nothing is fetched from the network.
SEE ALSO
App::Greple::md, Text::ANSI::Image
AUTHOR
Kazumasa Utashiro
LICENSE
Copyright © 2026 Kazumasa Utashiro.
This software is released under the MIT License. https://opensource.org/licenses/MIT