Parsing Markdown to HTML when using AI models

Since every AI model seems to love returning everything in markdown and SCM requires HTML to parse correctly, would it be too much to ask for “Markdown to HTML” function in the AI writer?

Or is there a way to do this already that I missed?

Inside api logins, you can edit default role.

This is sent at the start of every prompt.

Maybe you can add.

Return HTML only.

Also this is more common to some AI models. Such as Google gemini than groq AI.

Thanks I tried that … for some reason AI models know Markdown perfectly, but their HTML is not so good when you ask them to highlight certain words etc. Sometimes I get output with entire paragraphs bolded when I only wanted 2 words, because it “forgets” to add the closing tags.

If you have the time to add a Markdown to HTML function … it would be very helpful.

Can you collect a bunch of these invalid HTML files and send them to me?

I’ll see if there is a simple way to fix them using HTML validators.

I’ll do my best … I was just testing out your new version, and it popped up again. Take a look at how well it matched the STRONG tags. Most of the paragraph is bolded when it shouldn’t be. However, when i ask for markdown, it’s perfect. Somehow AI knows how to apply markdown far better than HTML. In this case, it gets the two confused.

FYI … I am using your basic OUTLINE template.

<h2>Why Dogs Prefer Human Beds</h2>
<ol style="list-style-type:decimal;">
	<li><strong>Comfort**: Dog beds can be stiff or uninviting compared to the plush comfort of human bedding. A dog may find it more appealing to curl up in a soft blanket or snuggle into a warm bed.</strong></li><strong>
	<li><strong>Scent marking**: As mentioned earlier, dogs often use scent marking to claim ownership over their favorite sleeping spots. Human beds are likely to have a familiar and comforting scent that reassures the dog of its place within the household.</strong></li><strong>
	<li><strong>Security**: Sleeping on human bed can provide a sense of security for dogs, who may feel safer in close proximity to their owners. This is especially true for anxious or fearful breeds.</strong></li><strong>
</strong></strong></strong></ol>
<strong><strong><strong>

Happened again … Only select words were supposed to be bold … not entire paragraphs.

I think this can be fixed by tweaking the prompt inside the <outline> tag.

What is the current instruction you are sending the AI now?

I"m guessing you might need to tell it to use ‘strong’ on article keywords only or similar.

Not sure a HTML validator could fix the output provided as well.

not asking for a html validator.

just “markdown to html” function. it’s a fairly common thing.

Yes understood, but I was hoping we could keep it all in html and clean it up.

Adding MD would require UI changes etc, so it requires more work.

What is your outline tag?