gsantner / markor

Text editor - Notes & ToDo (for Android) - Markdown, todo.txt, plaintext, math, ..
https://github.com/gsantner/markor/discussions/2269
Other
3.81k stars 366 forks source link

v2.12.5 Zim format parser breaks on links with $NAMES with java.lang.IllegalArgumentException #2398

Open Self-Perfection opened 2 months ago

Self-Perfection commented 2 months ago

⚠️ This issue respects the following points: ⚠️

Description

Trying to view such file:

Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.6
Creation-Date: 2000-12-05T16:35:28+03:00

[[https://github.com/b3nj5m1n/xdg-ninja|b3nj5m1n/xdg-ninja: A shell script which checks your $HOME for unwanted files and directories.]]

Gives an error:

Please report at project issue tracker: java.lang.IllegalArgumentException: Illegal group reference

Steps to reproduce

  1. Create zim file
  2. Put a link in it with $FOOBAR in title. E.g.: [[https://google.com|This is $FOOBAR]]
  3. View file via Markor

Information

Android version: Irrelevant Device: Irrelevant App Version: v2.12.5

Source

F-Droid

Format / File type

Wikitext, Zim

Additional info / Log

-
harshad1 commented 2 months ago

Can reproduce. This is an issue with view mode parsing