I need a response to have formatting but I don’t want to be so prescriptive as to use functions with specific arguments. I tried putting “return HTML” in the prompt but this was tricky to work with as sometimes it would have the HTML and body tags and other times not.
Markdown seemed like a suitable format so I added this to the prompt which has been working great:
Return the text as Markdown. The allowed elements are:
h1, h2, h3, p, ul, ol, li
I have a 2nd very similar prompt which I tried adding to the same text to but it didn’t work. It either returns HTML or invalid markdown eg:
h2 Page title
I tried altering the prompt slightly:
The output should be valid markdown. The allowed markdown elements are:
h1, h2, h3, p, ul, ol, li
Now it doenst return HTML but it still returns invalid markdown eg:
h1. Page title
Has anyone run into issues generating markdown?
Also why would ChatGPT be fine with one prompt but not with a very similar one?