asciidoctor-foodogsquared-e.../lib/asciidoctor/github-link-inline-macro
2023-03-06 12:04:04 +08:00
..
extension.rb Add GitHub link inline macro 2023-03-06 12:04:04 +08:00
README.adoc Add GitHub link inline macro 2023-03-06 12:04:04 +08:00

Table of Contents

An inline macro that easily links repositories from GitHub.

Synopsis

github:$OWNER/$REPO[$CAPTION]

If caption is missing, the link text will be the namespace (i.e., $OWNER/$REPO) of the repo.

Attributes

There are optional attributes for this macro.

  • rev is the commit/branch/tag of the repo to be linked.

  • path is the filepath to be linked within the repo.

Example usage