Skip to content

Numbers for numbered list items are incorrect when the list starts with a number > 1 #390

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

Closed
TamiTakamiya opened this issue Jan 2, 2025 · 2 comments · Fixed by #392
Closed
Assignees
Labels
PF6 Applies to only the PF6 version
Milestone

Comments

@TamiTakamiya
Copy link

When the following response formatted in markdown is received from a chatbot service:

=== (from here)===

To create a "Hello, World!" playbook, follow these steps:

  1. Open the Ansible VS Code extension and create a new file named hello_world.yaml.
  2. In the file, write the following content:
- name: Hello World Playbook
  hosts: localhost
  tasks:
    - name: Print Hello World
      ansible.builtin.debug:
        msg: "Hello, World!"
  1. Save the file.

  2. To run the playbook, use the following command in your terminal or command prompt:

    ansible-playbook hello_world.yaml
    

    The output should display "OK" for each task, indicating that the playbook ran successfully and printed "Hello, World!".

=== (from here)===

the numbered list in the response is rendered like:

Image

That the first two item are numbered correctly, but the last two items are rendered as items 1 and 2 instead of items 3 and 4. They should be rendered as items 3 and 4 (note that Github can render them correctly).

@github-project-automation github-project-automation bot moved this to Needs triage in PatternFly Issues Jan 2, 2025
@rebeccaalpert rebeccaalpert added the PF6 Applies to only the PF6 version label Jan 3, 2025
@rebeccaalpert rebeccaalpert added this to the 2025.Q1 milestone Jan 3, 2025
@rebeccaalpert
Copy link
Member

Thanks for the bug report. I'm able to recreate this. Thanks for letting us know; I'll see what we can do here.

@rebeccaalpert rebeccaalpert self-assigned this Jan 3, 2025
@rebeccaalpert rebeccaalpert moved this from Needs triage to Not started in PatternFly Issues Jan 3, 2025
@rebeccaalpert rebeccaalpert moved this from Not started to In Progress in PatternFly Issues Jan 3, 2025
@rebeccaalpert
Copy link
Member

rebeccaalpert commented Jan 3, 2025

It looks like this only happens when the inline code isn't indented for what it's worth (the code needs to be indented to get stubbed in under the li appropriately).

To create a "Hello, World!" playbook, follow these steps:

1. Open the Ansible VS Code extension and create a new file named \`hello_world.yaml\`.
2. In the file, write the following content:

    \`\`\`yaml
    - name: Hello World Playbook
      hosts: localhost
      tasks:
        - name: Print Hello World
          ansible.builtin.debug:
            msg: "Hello, World!"
    \`\`\`

3. Save the file.
4. To run the playbook, use the following command in your terminal or command prompt:

    \`\`\`
    ansible-playbook hello_world.yaml
    \`\`\`

The output should display "OK" for each task, indicating that the playbook ran successfully and printed "Hello, World!".

I found a quick fix for the problem when it's not indented though. Thanks again for letting us know! Makes the chatbot better for everyone. :)

@rebeccaalpert rebeccaalpert moved this from In Progress to PR Review in PatternFly Issues Jan 3, 2025
@github-project-automation github-project-automation bot moved this from PR Review to Done in PatternFly Issues Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PF6 Applies to only the PF6 version
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants