Formatting comments through API

Hello,
I’m trying to format the comments done through the API in a list format, I’ve tried to use HTML tags but it didn’t work.
I know that you can format through the interface in the site, but is there a way of doing it through the API?

This is the Ansible playbook I’m using to comment:

---
- name: Get Device Facts
  hosts: localhost
  gather_facts: no

  tasks:
    - name: Create ticket
      uri:
        method: POST
        url: "xxxx/REST/1.0/ticket/xxxx/comment"
        body_format: form-urlencoded
        return_content: yes
        body: content={{ lookup('file', 'ticket.txt') | urlencode }}
        headers:
          'Authorization': 'Token xxxx'
      register: data