Open ghost opened 2 years ago
@Waqar144?
I can't reproduce that under Linux in portable mode with this note:
Code fragment
=============
```
#words[s] (bsd тред) |
#words[b] (faceapp) |
#words[s] (firefox тред) |
#words[s] (macos тред) |
#words[b] (tik-tok) |
```
@altwarg, does this also happen for you without portable mode?
@pbek, I've made some mistake. This issue appears when there is no space between []
and ()
, i.e.:
#words[s](bsd тред) |
#words[b](faceapp) |
#words[s](firefox тред) |
#words[s](macos тред) |
#words[b](tik-tok) |
I fixed my original post. And this issue appears without portable mode.
Seems like the markdown preprocessing we do makes them clickable URLs ...
ah, ok. you need no portable mode to reproduce this.
@Waqar144, it seems like ... you said it 😁
We need better heuristics to fix this, otherwise working around will only move the issue to some other edge case.
Maybe the highglighter should maintain some information about elements inside the document which other components can access. Stuff like
This issue is stale because it has been open for 30 days with no activity.
keep open. its a bug
I entered some code fragment but it renders very strange (on the left is markdown editor, on the right is the actual result):
Expected behaviour
The actual result of this fragments rendering:
Must be the same as the input. For example (in Visual Studio Code):
Actual behaviour
As shown above, the QOwnNotes renders this code fragment very strange and renders the PATH to QOwnNotes binary.
Steps to reproduce
Just add this code to your note.
Output from the debug section in the settings dialog
Expand
QOwnNotes Debug Information =========================== ## General Info **Current Date**: `Mon Jan 31 17:18:18 2022` **Version**: `22.1.12` **Build date**: `Jan 30 2022` **Build number**: `943` **Platform**: `windows` **Operating System**: `Windows 10 Version 2009` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `GitHub Actions` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `yes` **Settings path / key**: `C:/Users/Max/scoop/apps/qownnotes/current/Data/PBE/QOwnNotes.ini` **Application database path**: `C:\Users\Max\scoop\apps\qownnotes\current\Data\QOwnNotes.sqlite` **Application arguments**: `QOwnNotes.exe`, `--portable` **Qt Debug**: `0` **Locale (system)**: `en_US` **Locale (interface)**: *empty* **Primary screen resolution**: `1920x1080` **Icon theme**: `breeze-dark-qownnotes` **Notes in current note folder**: `91` **Calendar items**: `0` **Enabled scripts**: `0` ## Server Info **serverUrl**: *empty* **appIsValid**: `no` **notesPathExists**: *empty* **connectionErrorMessage**: *empty* ## Spellchecking **Enabled**: `true` **Selected language**: `auto` **Language codes**: `en_US, ru_RU` **Language names**: `American English (United States), русский (Россия)` **Application dictionaries path**: `C:\Users\Max\scoop\apps\qownnotes\current\Data\dicts` ## Cloud connections ### Cloud connection `Default` **id**: `1` **isCurrent**: `yes` **serverUrl**: *empty* **username**: *empty* **accountId**: *empty* ## Enabled scripts ## Settings **AboutDialog/geometry** (QByteArray): `