Bug with asterisks in code span when documenting

On the issues page it said to discuss it on the forum first, so I’m posting this here now to see if other users have similar issues/workarounds. I’m currently writing wiki pages for my project and there’s a problem related to markdown. It’s best to just explain it using an example.

Suppose I have something like this:

image

Now if I change from “Source” to “Rich text” I get:

image

And then, back to “Source”:

image

Fair enough, the asterisk is escaped now. But if I change to “Rich text” again, the backslash stays:

image

And when I change back to source, there are three of them now:

image

And then 7, and then 15, so basically there’s an exponential explosion of backslashes that doubles whenever it’s switched back to “Source”.

This only happens for inline code spans (one backtick). It doesn’t happen in code blocks with three backticks, or outside of code blocks. It also doesn’t happen when switching between “Write” and “Preview”, only for “Source” to “Rich text”. I don’t know if this issue is only with editing wiki pages or in other places where markdown can be used.

1 Like