GitXplorerGitXplorer
p

add-anchor-links

public
1 stars
0 forks
1 issues

Commits

List of commits on branch main.
Verified
af3438f88552aa7db91350d9bfc34f52ddec407c

chore(main): release 1.0.3 (#19)

rrelease-please[bot] committed 3 months ago
Verified
cf1e92da9a56e95975d70b1b4e3b47f3a08ad20b

fix(deps): bump @actions/core from 1.10.1 to 1.11.1 (#18)

ddependabot[bot] committed 3 months ago
Verified
c00ffb8977d190205a918781cc411230d8fb01bf

build(deps-dev): bump the development-dependencies group with 2 updates (#17)

ddependabot[bot] committed 3 months ago
Verified
610696dcff0230648ff13cf6a8610471ee18d0ac

build: update changelog type

pparkerbxyz committed 3 months ago
Verified
7e28db1e1d1928879ddd1da4a1561c62dc6520c2

build(deps-dev): bump the development-dependencies group across 1 directory with 2 updates (#16)

ddependabot[bot] committed 3 months ago
Verified
70c1e0a93a90ef74715b0f79eba587640d37f30f

build(deps-dev): bump braces in the npm_and_yarn group (#13)

ddependabot[bot] committed 7 months ago

README

The README file for this repository.

Add Anchor Links

This GitHub Action adds anchor links to Markdown headings. This can be useful for linking to specific headings within a GitHub issue or discussion.

Example usage

Reusable workflow

name: Render issue template from liquid file

on:
  workflow_call:
    inputs:
      file:
        description: 'The path to the liquid file to render'
        required: true
        type: string
    outputs:
      rendered-content:
        description: 'The rendered content of the liquid file'
        value: ${{ jobs.render-template.outputs.rendered-content }}

jobs:
  render-template:
    runs-on: ubuntu-latest
    outputs:
      rendered-content: ${{ steps.add-anchor-links.outputs.content }}
    steps:
      - uses: actions/checkout@v4
      - id: render-liquid-file
        uses: parkerbxyz/render-liquid-file@v1
        with:
          extname: .md.liquid
          root: templates
          layouts: templates/layouts
          partials: templates/partials
          file: ${{ inputs.file }}

      # Anchor links are not currently supported in issues
      # like they are in Markdown files, so we need to add them manually.
      - name: Add anchor links
        id: add-anchor-links
        uses: parkerbxyz/add-anchor-links@v1
        with:
          content: ${{ steps.render-liquid-file.outputs.rendered-content }}

Inputs

content

The raw Markdown content without anchor links.

Outputs

content

The Markdown content with anchor links added.