Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape char as first on a line #67

Open
woltere opened this issue Feb 2, 2025 · 1 comment
Open

Escape char as first on a line #67

woltere opened this issue Feb 2, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@woltere
Copy link

woltere commented Feb 2, 2025

Describe the Bug

The escape \ character is not handled consistently.
It the escape charater is the first on the line it seems to escape only #, >, < and -, it will not escape \ or `.

To Reproduce
Describe in detail how to reproduce the bug.

input.mu

\`text
\\text
text\`F0g0not green
\`F0f0should not be green

actual output

ext
text
text`F0g0not green
should not be green

The last line is green

Expected Behavior

expected output

`text
\text
text`F0g0not green
`F0g0should not be green

Logs & Screenshots

System Information

  • OS and version
    Linux, macOS

  • Python version

  • Program version
    Nomad Network Client 0.6.0

Additional context
Escaping should be consistent especially handeling generated content safely.
Generating a large number of < characters could lead to issues.
Also it looks like and fields and links can be generated because ` are located by line.find(...) and any escaping is ignored.

@markqvist
Copy link
Owner

Thanks a lot for the issue and providing means to reproduce. This is most likely a bug in the micro parser. Should have it handled in next release!

@markqvist markqvist added the bug Something isn't working label Feb 2, 2025
@markqvist markqvist self-assigned this Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants