Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipe | is not properly escaped #569

Open
npalm opened this issue Mar 14, 2024 · 1 comment
Open

pipe | is not properly escaped #569

npalm opened this issue Mar 14, 2024 · 1 comment

Comments

@npalm
Copy link
Owner

npalm commented Mar 14, 2024

Having | symbols in input or output description is breaking the table creation due to the lack of a proper escape.

@Gonzalo44r
Copy link

Hello Niek, I'm currently having trouble with this. Although I found a workaround for my work setup, it would be nice to have this fixed.
In my action I have this input:

inputs:
  branch:
    description: 'Branch'
    required: false
    default: ${{ github.base_ref || github.ref_name  }}

The problem is that I cannot change that default value.
The result is this:

| `branch` | <p>Branch</p> | `false` | `${{ github.base_ref || github.ref_name  }}` |

image

Just to remember we also have this section (wich is good):
image

Solution

The script could replace | to \|, only when creating the table, at least at the default parameters.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants