Editing markdown field extra backslashes

Hello,

I have problems when editing markdown fields, after saving I’m getting extra backslashes which broke formatting. Copy/paste from “show markup” helps in some cases but generally editing content in few places is very difficult.

Also getting some html tags are deleted from content when saving.

Can you give me concrete examples?

For example, markup:

<span style="display:flex; justify-content:center; gap:0 80px;">  
https://zzz.xxx/api/content/yyy/cta-element/851b30dd-09a3-4b91-845c-6ae9397317fb

https://zzz.xxx/api/content/yyy/cta-element/b0617e27-b25d-4604-bd24-380fd4e7ee8a

</span>

after saving show as:

<span style="display:flex; justify-content:center; gap:0 80px;">  
\[\[https://zzz.xxx/api/content/yyy/cta-element/851b30dd-09a3-4b91-845c-6ae9397317fb\]\]

\[\[https://zzz.xxx/api/content/yyy/cta-element/b0617e27-b25d-4604-bd24-380fd4e7ee8a\]\]

</span>

I am confused. This is not markdown.

It’s a preview with “Show Markup (readonly)”, extra backslashes are there visible.

I still have no idea what you are talking about, sorry. If you can give me a reproducible step-by-step list I would appreciate it.

Your markup is not markdown, therefore I am super confused.

Ok, searched information about markdown and found this:

Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can’t use Markdown-style emphasis inside an HTML block.

But it is explicitly allowed for span-level tags:

Unlike block-level HTML tags, Markdown syntax is processed within span-level tags.

Problem was that I needed to extra format some markdown and wrapped it with div element, that causes the problems.

Greetings.

1 Like