1
0
mirror of synced 2026-01-05 03:06:35 -05:00
Files
docs/tests/fixtures/content/get-started/liquid/data.md

1.4 KiB

title, intro, versions, type
title intro versions type
Data Liquid tag The `data` Liquid tag can understand where it was used
fpt ghes ghae ghec
* * * *
how_to

Introduction

What this fixture accomplishes is that it uses the \{\% data %} Liquid tag to inject itself after some left-side whitespace. That same amount of left-side whitespace is then "replicated" to all lines of the string that gets injected.

In this example, the

  1. Bullet point

    {% data reusables.injectables.multiple_numbers %}

  2. Another bullet point

    After 3 spaces, here's the "body" of the second bullet point.

Injected insode a code block

  1. Here's some Yaml code.

    {% data reusables.injectables.multiple_numbers %}
    
    {% data reusables.injectables.one_line_numbers %}
    
    name: Move assigned card
    on:
      issues:
        types:
          - assigned
    

Injected without any leading whitespace

On its own line:

{% data reusables.injectables.multiple_numbers %}

Directly after this: {% data reusables.injectables.multiple_numbers %}

And now for a table on its own starting line

{% data reusables.injectables.some_table %}

Insert the same table inside a bullet point

  1. Point 1

    {% data reusables.injectables.paragraphs %}

  2. Point 2

    What's important here is that in CommonMark when a Markdown table is injected and indented into a bullet point, that it works at all.

    {% data reusables.injectables.some_table %}