Issue with Markdown to HTML Conversion – Bullet Points Formatting

Hi everyone,

I’m working on an automation where I:

  1. Generate a long text in Markdown ATX format using ChatGPT.
  2. Convert the Markdown to HTML using the Markdown to HTML module.
  3. Create a Google Doc from the HTML output.

However, I’m facing a formatting issue.

The conversion process introduces an error with bullet points: After every three headings, the fourth one has incorrect bullet point formatting.

I’ve checked the Markdown code using an external tool, and it appears correct there. This suggests the issue might be with the conversion process itself.

Does anyone know of an API or method to convert Markdown to HTML without these formatting errors?

Thanks in advance!


I’ve seen this before with Google Docs when copying and pasting data from Word or LibreOffice.

You can check to see if the problem is Markdown To HTML by saving the HTML output from the Markdown to HTML modulke and opening it using a browser. If the output shows the same problem, then it’s definitely a Make problem, and I would submit a bug report. But if the browser shows the HTML correctly, it’s a problem with Google Docs… and I’m not sure there’s a way to get it fixed.

L