# How to escape "]" in a link to a filename in micron?

_Help · started by jmeshy on Thu, Sep 24, 2026 1:46 PM_

---

## Original post

**jmeshy** · Thu, Sep 24, 2026 1:46 PM

Hello there! I promise I RTFMed, i tried and tried ("\\]", etc.) nothing seems to work: I want to make links to files that contain "[blah]" in their filename in micron, and this breaks the tags... Anyone has experience with that, and/or could point to a documentation or some examples on how to do this? Thanks! <3

---

## Reply 1

**adept** · Fri, Sep 25, 2026 7:57 PM

The relevant code might be in the nomadnet repository under files -> nomadnet -> ui -> textui -> MicronParser.py starting from line 763 in the make_output() function.
a8d24177d946de4f1f0a0fe1af9a1338:/page/blob.muʼg=reticulum|r=nomadnet|ref=HEAD|path=nomadnet%2Fui%2Ftextui%2FMicronParser.py

I don't have much experience with the Reticulum sources.
But each line is checked for specific characters. It closes the link tag immediately without checking for escape characters.

Possible solution:
                    elif c == "[":
                        endpos = line[i:].find("]")
                        if endpos == -1:
                            pass
                        elif line[endpos - 1] == "\\":
                            pass
                        else:
                            ...

Don't know anything about security implications with these changes. And have NOT tested it.

It should be a good idea to also check for '& endpos > 0' to not misinterpret a backslash at the end of the line if endpos is 0.

Does it continue to look for the next occurrence of "]", if it found an escaped "\\]"?

---
