Markdown to HTML: allowed tags

I’m using a “Markdown to HTML” module to turn a markdown response from LLM into HTML to be sent as a Telegram message, with a strictly set of allowed tags. Am I setting the tags incorrectly? I couldn’t find any documentation on the exact format in which you should specify the tags, but I tried just tag names like “b, i, code, …”, tried with their angle brackets like “, , …”, but either way I get the result without any tags at all. It just strips all formatting altogether. What do I misunderstand?

image

As the Markdown to HTML documentation in the Make Help Center is incomplete, it doesn’t tell us what format the “Allowed Tags” field accept.

Perhaps you can try again without the angled brackets <> to see if that works.

You should definitely contact support to get the documentation updated!

For technical issues like this, directly contacting support can often lead to a faster resolution.

You can open a new ticket here, or if you are unable to login for some reason, you can create another new free account to access the ticketing system (which is only available to logged-in users).

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

1 Like

Hi @Roman_V :wave: did you get an answer by any chance ?

Welcome to the Make community!

The answer is don’t use angled brackets, just the tag name.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

2 Likes

I abandoned the use of this module entirely. Instead I instructed the LLM with examples to use HTML instead of Markdown.

1 Like

Yes, one way is to be very comprehensive and explicit in your AI prompt. You can also reduce the “temperature” to a low value like 0.05 to be sure that there is much less chance from deviating from the instructions/prompt. The default temperature for AI models is 1, which gives them leeway to be creative, and sometimes they add extra stuff and get too verbose.