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

[BUG] Regex preview #2952

Open
igorp74 opened this issue Feb 4, 2024 · 10 comments · Fixed by pbek/qmarkdowntextedit#204
Open

[BUG] Regex preview #2952

igorp74 opened this issue Feb 4, 2024 · 10 comments · Fixed by pbek/qmarkdowntextedit#204
Labels
Severity: Low Bugs or breaking changes with low impact Type: Bug - Regression

Comments

@igorp74
Copy link

igorp74 commented Feb 4, 2024

Preview of a regex gives me the local links

Expected behaviour

In code block, I expected 1:1 of original text

Actual behaviour

https://quip.com/reaQAF9xHaB2/Regex

Steps to reproduce

In a new page, copy & paste this regex:

(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])

Output from the debug section in the settings dialog

Expand

QOwnNotes Debug Information

General Info

Current Date: Sun Feb 4 16:33:00 2024
Version: 24.1.5
Build date: Jan 31 2024
Build number: 1076
Platform: linux
Operating System: Manjaro Linux
Build architecture: x86_64
Current architecture: x86_64
Release: AUR
Qt Version (build): 5.15.12
Qt Version (runtime): 5.15.12
Portable mode: no
Settings path / key: /home/igorp/.config/PBE/QOwnNotes.conf
Application database path: /home/igorp/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite
Application arguments: /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, /usr/bin/QOwnNotes, --allow-multiple-instances
Qt Debug: 0
Locale (system): en_US
Locale (interface): empty
Primary screen resolution: 1920x1080
Screen resolution(s): 1920x1080, 1920x1080
Icon theme: breeze
Notes in current note folder: 161
Calendar items: 0
Enabled scripts: 12

Server Info

serverUrl: https://wim.nl.tab.digital
appIsValid: no
notesPathExists: unknown
connectionErrorMessage: Unknown error

Spellchecking

Enabled: false
Selected language: auto
Language codes: en_US, en_US-large
Language names: American English (United States), American English (United States) [large]
Application dictionaries path: /home/igorp/.local/share/PBE/QOwnNotes/dicts

Note folders

currentNoteFolderId: 2

Note folder default

id: 2
isCurrent: yes
activeTagId: -1
localPath: /home/igorp/Documents/Knowledge
remotePath: Notes
cloudConnectionId: 1
isShowSubfolders: yes
isUseGit: no
allowDifferentNoteFileName: no
activeNoteSubFolder name: empty
database file: /home/igorp/Documents/Knowledge/notes.sqlite

Cloud connections

Cloud connection Default

id: 1
isCurrent: yes
serverUrl: https://wim.nl.tab.digital
username: igorp.mailbox@gmail.com
accountId: igorp.mailbox@gmail.com

Enabled scripts

Script Custom note preview styling

id: 1
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/preview-styling/preview-styling.qml
variablesJson:

{
    "customStylesheet": "body {margin-left: 30px;margin-right: 30px;}\nh1 {margin-top: 30px;margin-bottom: 10px;}\nh2 {margin-top: 20px;margin-bottom: 5px;}\nh3 {margin-top: 15px;margin-bottom: 5px;}\ndiv {color: #1274ca; font-size: 21px; font-style: italic;}\nth {background-color: #DEEBF6;}\nt1 {color: #00557f; font-size: 21px;font-weight:bold;}\nt2 {color: #0074aa; font-size: 16px;font-weight: bold;}\nt3 {color: #e30000; font-size: 14px;font-weight: bold;}\nt4 {color: #fcfcfc; background-color: #0284C0;font-weight: bold;}\nt5 {color: #fcfcfc; background-color: #00428A;font-weight: bold;}\ncode {color: #CC2B59; background-color: #F9F2F4;}"
}

identifier: preview-styling
version: 0.0.5
minAppVersion: 20.6.0

Script Duplicate note

id: 3
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/duplicate-note/duplicate-note.qml
variablesJson: empty
identifier: duplicate-note
version: 0.0.1
minAppVersion: 20.10.7

Script Export notes as one HTML file

id: 5
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/export-notes-as-one-html/export-notes-as-one-html.qml
variablesJson: empty
identifier: export-notes-as-one-html
version: 1.0.0
minAppVersion: 18.03.7

Script Merge selected notes

id: 6
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/merge-notes/merge-notes.qml
variablesJson:

{
    "mergeToFirst": false,
    "pyCommand": "python3"
}

identifier: merge-notes
version: 0.0.3
minAppVersion: 17.08.5

Script Add Multiple tags

id: 7
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/add-multiple-tags/add-multiple-tags.qml
variablesJson: empty
identifier: add-multiple-tags
version: 0.0.1
minAppVersion: 17.06.2

Script Text Highlights

id: 8
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/text-highlights/text-highlights.qml
variablesJson:

{
    "backgroundColor": "#74fe35",
    "styleForEditor": "8",
    "styleInEditor": true
}

identifier: text-highlights
version: 0.0.6
minAppVersion: 22.4.1

Script Note link to clipboard

id: 9
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/note-link-to-clipboard/note-link-to-clipboard.qml
variablesJson: empty
identifier: note-link-to-clipboard
version: 0.0.2
minAppVersion: 17.02.4

Script ATX Headline

id: 10
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/atx-headline/atx-headline.qml
variablesJson: empty
identifier: atx-headline
version: 0.0.1
minAppVersion: 20.6.0

Script Sort lines

id: 12
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/sort-lines/sort-lines.qml
variablesJson: empty
identifier: sort-lines
version: 1.0.0
minAppVersion: 18.04.3

Script Toggle comment

id: 13
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/toggle-comment/toggle-comment.qml
variablesJson: empty
identifier: toggle-comment
version: 1.0
minAppVersion: 20.4.16

Script Insert Table of Contents (TOC)

id: 14
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/insert-toc/insert-toc.qml
variablesJson:

{
    "tocLinks": false,
    "tocTitle": "Table of Contents"
}

identifier: insert-toc
version: 0.0.3
minAppVersion: 17.06.2

Script Image preview

id: 15
path: /home/igorp/.local/share/PBE/QOwnNotes/scripts/image-preview/image-preview.qml
variablesJson:

{
    "maxWidth": 640
}

identifier: image-preview
version: 1.0.1
minAppVersion: 20.6.0

Settings

AboutDialog/geometry (QByteArray): <binary data>
ActiveNoteHistoryItem (NoteHistoryItem): <binary data>
AttachmentDialog/geometry (QByteArray): <binary data>
Debug/fakeOldVersionNumber (QString): false
Debug/fileLogging (QString): false
DistractionFreeMode/editorWidthCustom (QString): 80
DistractionFreeMode/editorWidthMode (QString): 4
DistractionFreeMode/isEnabled (QString): false
DistractionFreeMode/menuBarGeometry (QByteArray): <binary data>
DistractionFreeMode/menuBarHeight (QString): 34
DistractionFreeMode/menuBarVisible (QString): true
DistractionFreeMode/windowState (QByteArray): <binary data>
Editor/ColorSchemes (QString): EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7
Editor/CurrentSchemaKey (QString): EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7
Editor/autoBracketClosing (QString): true
Editor/autoBracketRemoval (QString): true
Editor/centerCursor (QString): false
Editor/disableCursorBlinking (QString): false
Editor/editorWidthInDFMOnly (QString): true
Editor/highlightCurrentLine (QString): true
Editor/indentSize (QString): 4
Editor/removeTrailingSpaces (QString): false
Editor/showLineNumbers (QString): true
Editor/useTabIndent (QString): false
Editor/vimMode (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_-1 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_0 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_1 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_1000 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_1001 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_1002 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_1003 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_1004 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_1005 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_1006 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_11 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_12 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_13 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_14 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_15 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_16 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_17 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_18 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_19 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_2 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_21 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_22 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_23 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_25 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_28 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_3 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_4 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColorEnabled_8 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_-1 (QColor): #ffffff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_0 (QColor): #fcfeff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_1 (QColor): #fff2e4
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_1000 (QColor): #f7f6ff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_1001 (QColor): #eaffeb
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_1002 (QColor): #ffffe9
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_1003 (QColor): #f7f6ff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_1004 (QColor): #f7f6ff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_1005 (QColor): #f7f6ff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_1006 (QColor): #f7f6ff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_11 (QColor): #aaf7ff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_12 (QColor): #f1f1f4
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_13 (QColor): #f1f1f4
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_14 (QColor): #f1f1f4
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_15 (QColor): #fafafa
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_16 (QColor): #fafafa
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_17 (QColor): #fafafa
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_18 (QColor): #fffae2
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_19 (QColor): #e2e7e2
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_2 (QColor): #fff2e4
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_21 (QColor): #ebebeb
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_22 (QColor): #ddefff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_23 (QColor): #f8f8f8
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_25 (QColor): #fffae2
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_28 (QColor): #ebebeb
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_3 (QColor): #ffedff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_4 (QColor): #f3faff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/BackgroundColor_8 (QColor): #dbf9e5
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_1000 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_1001 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_1004 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_1006 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_12 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_13 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_14 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_15 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_16 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_17 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_23 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Bold_8 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_0 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_1000 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_1001 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_1002 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_1003 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_1004 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_1005 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_1006 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_14 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_15 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_18 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_22 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_23 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_26 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_29 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_3 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_30 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_4 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontEnabled_9 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_1000 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_1001 (QString): 95
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_1002 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_1003 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_1004 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_1005 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_1006 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_12 (QString): 200
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_13 (QString): 160
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_14 (QString): 130
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_15 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_16 (QString): 90
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_17 (QString): 90
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_18 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_23 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_4 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/FontSizeAdaption_8 (QString): 100
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_0 (QFont): Noto Sans,11,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_1000 (QFont): DejaVu Sans Mono,15,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_1001 (QFont): DejaVu Sans Mono,15,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_1002 (QFont): DejaVu Sans Mono,15,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_1003 (QFont): DejaVu Sans Mono,15,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_1004 (QFont): DejaVu Sans Mono,15,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_1005 (QFont): DejaVu Sans Mono,15,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_1006 (QFont): DejaVu Sans Mono,15,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_14 (QFont): Noto Serif Light,13,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_18 (QFont): DejaVu Serif Condensed,11,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_22 (QFont): Ligconsolata,11,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_23 (QFont): Roboto Mono [GOOG],15,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_26 (QFont): Sans Serif,11,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_29 (QFont): Sans Serif,11,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_3 (QFont): Sans Serif,11,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_30 (QFont): Sans Serif,11,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_4 (QFont): DejaVu Sans Mono,15,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Font_9 (QFont): Sans Serif,11,-1,5,50,0,0,0,0,0
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_-1 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_0 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_1 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_10 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_1000 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_1001 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_1002 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_1003 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_1004 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_1005 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_1006 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_11 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_12 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_13 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_14 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_15 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_16 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_17 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_18 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_19 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_2 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_20 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_21 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_22 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_23 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_24 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_26 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_29 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_3 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_30 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_31 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_4 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_5 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_6 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_7 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_8 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColorEnabled_9 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_-1 (QColor): #000000
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_0 (QColor): #0074aa
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_1 (QColor): #fc7e00
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_10 (QColor): #a3007b
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_1000 (QColor): #00aaff
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_1001 (QColor): #008800
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_1002 (QColor): #aaaaaa
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_1003 (QColor): #00aa7f
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_1004 (QColor): #00aa7f
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_1005 (QColor): #ff0000
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_1006 (QColor): #ff557f
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_11 (QColor): #888888
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_12 (QColor): #00557f
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_13 (QColor): #00557f
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_14 (QColor): #0074aa
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_15 (QColor): #e30000
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_16 (QColor): #008800
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_17 (QColor): #0055be
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_18 (QColor): #005074
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_19 (QColor): #008000
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_2 (QColor): #fc7e00
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_20 (QColor): #3d3d3d
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_21 (QColor): #393939
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_22 (QColor): #00557f
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_23 (QColor): #ee2d5a
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_24 (QColor): #cccccc
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_26 (QColor): #ff5500
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_29 (QColor): #bf0000
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_3 (QColor): #aa557f
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_30 (QColor): #007e00
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_31 (QColor): #282828
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_4 (QColor): #000000
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_5 (QColor): #3d3d3d
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_6 (QColor): #3d3d3d
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_7 (QColor): #353535
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_8 (QColor): #282828
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/ForegroundColor_9 (QColor): #00aa7f
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Italic_0 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Italic_1002 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Italic_1006 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Italic_18 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Italic_24 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Italic_7 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Name (QString): IgorP_Light
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Underline_0 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Underline_12 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Underline_14 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Underline_24 (QString): false
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Underline_26 (QString): true
EditorColorSchema-97ffa6c9-bd44-4e1c-842e-2f72096037f7/Underline_31 (QString): true
FileDialog/LastPath (QString): /home/igorp/Downloads
FileDialog/LastPath-InsertAttachment (QString): /home/igorp/Downloads
FileDialog/LastPath-InsertImage (QString): /home/igorp/Downloads
FileDialog/LastPath-NotePDFExport (QString): /home/igorp/Downloads
FileDialog/LastPath-PreviewHTMLFileExport (QString): /home/igorp/Documents
FileDialog/LastPath-SchemaExport (QString): /home/igorp/Documents/App_settings/QOwnNotes
ImageDialog/disableCopying (bool): false
ImageDialog/geometry (QByteArray): <binary data>
IssueAssistantDialog/geometry (QByteArray): <binary data>
LastUpdateCheck (QDateTime): 2024-02-04T16:00:06.972
LinkDialog/geometry (QByteArray): <binary data>
LinkDialog/lastSelectedFileUrl (QString): file:///home/igorp/Downloads/Word2016-zadaci.7z
LocalTrashDialog/geometry (QByteArray): <binary data>
MainWindow/geometry (QByteArray): <binary data>
MainWindow/mainToolBar.iconSize (QString): 22
MainWindow/menuBarGeometry (QByteArray): <binary data>
MainWindow/noteSubFolderTreeWidgetExpandState-2 (QStringList): Database/Oracle, Business/Clients/Infokatedra/INA-2015, Database, Business, Business/Clients, Business/Clients/Infokatedra
MainWindow/noteTextEdit.code.font (QString): Monospace,11,-1,5,50,0,0,0,0,0
MainWindow/noteTextEdit.font (QString): Serif,11,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.code.font (QString): Noto Mono,11,-1,0,50,0,0,0,0,0
MainWindow/noteTextView.font (QString): Noto Sans,11,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.ignoreCodeFontSize (QString): true
MainWindow/noteTextView.refreshDebounceTime (QString): 300
MainWindow/noteTextView.rtl (QString): false
MainWindow/noteTextView.underline (QString): true
MainWindow/noteTextView.useEditorStyles (QString): true
MainWindow/noteTextView.useInternalExportStyling (QString): true
MainWindow/showNotesFromAllNoteSubFolders (bool): true
MainWindow/tagTreeWidgetExpandState-2 (QStringList): 7
MessageBoxOverride/insert-media-use-existing-image (QString): 16384
MessageBoxOverride/local-trash-notes-removed (QString): 1024
MessageBoxOverride/local-trash-remove-notes (QString): 16384
MessageBoxOverride/remove-folders (QString): 16384
MessageBoxOverride/remove-note (QString): 16384
MessageBoxOverride/remove-notes (QString): 16384
MessageBoxOverride/remove-tags (QString): 16384
MessageBoxOverride/script-install-successful (QString): 1024
MessageBoxOverride/tag-notes (QString): 16384
NoteDialog/geometry (QByteArray): <binary data>
NoteDialog/tabWidgetIndex (QString): 1
NoteFolder-2/NoteTabNameList (QString): 💡 Execute stored procedure (without arguments)
NoteFolder-2/NoteTabStickinessList: empty
NoteFolder-2/NoteTabSubFolderPathDataList (QString): empty
NoteHistory-2 (QVariantList): <variant list with 200 item(s)>
NoteHistoryCurrentIndex-2 (QString): 199
PasswordDialog/geometry (QByteArray): <binary data>
PersistentScripting/MdNT/pyCommand (QString): python3
PiwikClientId (QString): <hidden>
Printer/NotePDFExport (QByteArray): <binary data>
ScriptRepositoryDialog/geometry (QByteArray): <binary data>
ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data>
SearchEngineId (QString): 2
SettingsDialog/geometry (QByteArray): <binary data>
SettingsDialog/mainSplitterState (QByteArray): <binary data>
ShareDialog/geometry (QByteArray): <binary data>
Shortcuts/MainWindow-actionInsert_current_time (QString): Ctrl+F5
Shortcuts/MainWindow-actionSwitch_to_previous_workspace (QString): Ctrl+Alt+P
Shortcuts/MainWindow-action_Find_text_in_note (QString): Ctrl+F
Shortcuts/MainWindow-action_Quit (QString): Ctrl+Alt+Q
Shortcuts/MainWindow-customAction_addHighlights (QString): Alt+=
Shortcuts/MainWindow-customAction_addMultipleTags (QString): Alt+T
Shortcuts/MainWindow-customAction_duplicateNote (QString): Alt+D
Shortcuts/MainWindow-customAction_exportHTML (QString): Alt+H
Shortcuts/MainWindow-customAction_mergeNotes (QString): Alt+M
Shortcuts/MainWindow-customAction_noteLinkToClipboard (QString): Alt+L
Shortcuts/MainWindow-customAction_sortLinesAsc (QString): Ctrl+Alt+Up
Shortcuts/MainWindow-customAction_sortLinesDesc (QString): Ctrl+Alt+Down
Shortcuts/MainWindow-customAction_toggle-comment (QString): Ctrl+Q
Shortcuts/MainWindow-restoreWorkspace-3bfb0457-c111-4fc2-80a3-4b07a3bd5a7b (QString): Alt+2
Shortcuts/MainWindow-restoreWorkspace-cd9bd7b7-42b1-47cd-8bd3-e0bf3c5973eb (QString): Alt+3
Shortcuts/MainWindow-restoreWorkspace-initial (QString): Alt+3
ShowSystemTray (QString): false
StartHidden (QString): false
TableDialog/geometry (QByteArray): <binary data>
TagAddDialog/geometry (QByteArray): <binary data>
WelcomeDialog/geometry (QByteArray): <binary data>
acceptAllExternalModifications (QString): false
allowNoteEditing (bool): true
allowOnlyOneAppInstance (QString): true
appMetrics/disableAppHeartbeat (QString): false
appMetrics/disableTracking (QString): false
appMetrics/notificationShown (QString): true
autoReadOnlyMode (QString): false
autoReadOnlyModeTimeout (QString): 30
automaticNoteFolderDatabaseClosing (QString): false
checkSpelling (QString): false
closeTodoListAfterSave (QString): false
cryptoKey (QString): <hidden>
currentNoteFolderId (QString): 2
currentWorkspace (QString): 3bfb0457-c111-4fc2-80a3-4b07a3bd5a7b
cursorWidth (QString): 1
darkMode (QString): false
darkModeColors (QString): false
darkModeIconTheme (QString): false
darkModeTrayIcon (QString): false
defaultNoteFileExtension (QString): md
demoNotesCreated (QString): true
disableAutomaticUpdateDialog (QString): true
disableSavedSearchesAutoCompletion (QString): false
dockWasInitializedOnce (QString): true
enableNoteTree (QString): false
enableSocketServer (QString): true
enableWebAppSupport (QString): false
externalEditorPath (QString): empty
fullyHighlightedBlockquotes (QString): true
gitCommitInterval (QString): 30
gitExecutablePath (QString): empty
gitLogCommand (QString): empty
guiFirstRunInit (bool): true
ignoreAllExternalModifications (QString): false
ignoreAllExternalNoteFolderChanges (QString): false
ignoreNoteSubFolders (QString): ^\.
ignoredNoteFiles (QString): empty
imageScaleDown (QString): false
imageScaleDownMaximumHeight (QString): 1024
imageScaleDownMaximumWidth (QString): 800
initialLayoutIdentifier (QString): full
insertTimeFormat (QString): ddd, dd.MM.yyyy. hh:mm:ss
interfaceFontSize (QString): 15
interfaceLanguage (QString): empty
internalIconTheme (QString): false
itemHeight (QString): 28
legacyLinking (QString): false
localTrash/autoCleanupDays (QString): 30
localTrash/autoCleanupEnabled (QString): true
localTrash/supportEnabled (QString): true
localTrashSplitterSizes (QByteArray): <binary data>
markdownHighlightingEnabled (QString): true
navigationPanelAutoSelect (QString): true
navigationPanelHideSearch (QString): false
networking/ignoreSSLErrors (QString): true
networking/proxyType (QString): 2
newNoteAskHeadline (QString): false
noteEditIsCentralWidget (QString): false
noteFileExtensionList (QStringList): md, txt
noteListPreview (QString): false
noteSaveIntervalTime (QString): 10
noteSubfoldersPanelDisplayAsFullTree (QString): true
noteSubfoldersPanelHideSearch (QString): false
noteSubfoldersPanelOrder (QString): 0
noteSubfoldersPanelShowFullPath (QString): false
noteSubfoldersPanelShowNotesRecursively (QString): false
noteSubfoldersPanelShowRootFolderName (QString): true
noteSubfoldersPanelSort (QString): 0
noteSubfoldersPanelTabsUnsetAllNotesSelection (QString): false
notesPanelOrder (QString): 0
notesPanelSort (QString): 0
notesPath (QString): /home/igorp/Documents/Knowledge
notifyAllExternalModifications (QString): false
overrideInterfaceFontSize (QString): true
ownCloud/supportEnabled (QString): true
ownCloud/todoCalendarBackend (QString): 3
ownCloud/todoCalendarCalDAVPassword (QString): <hidden>
ownCloud/todoCalendarCalDAVServerUrl (QString): empty
ownCloud/todoCalendarCalDAVUsername (QString): empty
ownCloud/todoCalendarCloudConnectionId (QString): 1
ownCloud/todoCalendarDisplayNameList: empty
ownCloud/todoCalendarEnabledList: empty
ownCloud/todoCalendarEnabledUrlList: empty
ownCloud/todoCalendarUrlList: empty
ownCloudInfo/appIsValid (bool): false
ownCloudInfo/connectionErrorMessage (QString): Unknown error
ownCloudInfo/notesPathExistsText (QString): unknown
ownCloudInfo/serverVersion (QString): empty
previousWorkspace (QString): initial
restoreCursorPosition (QString): true
restoreLastNoteAtStartup (QString): true
restoreNoteTabs (QString): true
savedSearches/noteFolder-2 (QStringList): Note 2024-02-04T16.09.08, Note 2024-02-04T12.26.17, Note 2024-02-04T12.13.13, Note 2024-02-04T12.09.26, Note 2024-02-03T20.28.32, Note 2024-02-03T20.19.49, Note 2024-02-03T20.13.18, Note 2024-02-01T23.22.10, Note 2024-02-01T23.20.06, Note 2024-02-01T23.18.32, Note 2024-02-01T22.06.56, atip, Note 2023-12-24T14.16.18, Note 2023-12-03T14.20.59, Note 2023-12-03T14.10.59, Note 2023-12-03T14.08.18, Note 2023-12-03T13.25.15, Note 2023-12-03T13.09.55, Note 2023-12-02T21.42.24, Note 2023-12-02T20.35.35, Note 2023-12-02T20.15.34, Note 2023-12-02T20.04.49, Note 2023-12-02T20.04.19, Note 2023-11-26T16.15.21, Note 2023-11-26T16.00.07, Note 2023-11-26T15.56.01, Note 2023-11-26T15.53.06, Note 2023-11-26T15.50.46, Note 2023-10-29T22.06.58, Note 2023-10-29T19.38.30, Note 2023-10-29T19.36.20, Note 2023-10-29T19.33.04, Note 2023-10-29T19.30.58, Note 2023-10-29T13.44.31, Note 2023-10-29T13.36.17, Note 2023-10-29T13.35.18, Note 2023-10-29T13.32.56, Note 2023-10-29T13.27.16, Note 2023-10-29T13.13.57, Note 2023-10-29T13.05.38, Note 2023-10-29T13.03.42, IN15-01, Note 2023-10-28T13.42.52, Note 2023-10-22T22.46.03, Note 2023-10-22T22.42.58, Note 2023-10-22T22.39.53, Note 2023-10-22T22.31.43, Note 2023-10-22T20.07.45, Note 2023-10-22T19.57.56, Note 2023-10-01T13.14.11, Note 2023-10-01T12.22.41, Note 2023-10-01T12.19.50, Note 2023-10-01T12.13.40, Note 2023-09-27T21.34.26, Note 2023-09-21T19.46.50, Note 2023-09-21T09.50.38, Note 2023-09-18T00.04.26, Note 2023-09-17T23.51.07, Note 2023-09-17T23.48.45, Note 2023-09-17T15.07.13, Note 2023-08-19T20.50.32, Note 2023-08-15T13.21.07, Note 2023-08-06T20.40.24, Note 2023-08-06T00.04.29, Note 2023-07-30T18.35.04, Note 2023-07-30T18.15.44, Note 2023-07-02T23.11.39, Note 2023-07-02T21.23.37, Note 2023-07-02T21.21.15, Note 2023-07-02T21.20.02, Note 2023-07-02T21.18.51, Note 2023-06-27T00.05.32, Note 2023-06-26T07.55.21, Note 2023-06-26T07.24.44, Note 2023-06-26T07.13.54, Note 2023-06-25T23.53.53, Note 2023-06-25T23.51.06, Note 2023-06-25T23.48.31, Note 2023-06-25T21.54.09, Note 2023-06-25T21.43.43, Note 2023-06-25T19.23.35, Note 2023-06-25T19.11.36, Note 2023-06-23T21.08.38, Note 2023-06-23T20.55.51, Note 2023-06-17T21.15.07, Note 2023-06-17T18.07.12, Note 2023-06-17T14.02.03, Note 2023-06-17T13.28.39, Note 2023-06-17T13.16.43, Note 2023-06-17T13.13.33, Note 2023-06-17T12.58.54, Note 2023-06-17T12.52.39, Note 2023-06-17T12.50.05, Note 2023-06-17T12.00.17, Note 2023-06-12T18.35.24, Note 2023-05-27T20.43.04, Note 2023-05-27T15.26.14, Note 2023-05-01T10.34.32, Note 2023-04-18T09.23.32, Note 2023-04-18T09.10.53
showMatches (QString): true
showMenuBar (bool): true
showStatusBar (bool): true
spellCheckLanguage (QString): auto
startInReadOnlyMode (QString): false
systemIconTheme (QString): false
tagWasAddedToNote (QString): true
taggingShowNotesRecursively (QString): false
tagsPanelHideNoteCount (QString): false
tagsPanelHideSearch (QString): false
tagsPanelOrder (QString): 0
tagsPanelSort (QString): 0
todoCalendarSupport (QString): true
toolbar/1/items (QStringList): action_New_note, action_Reload_note_folder, action_Open_note_in_external_editor, action_Remove_note, actionShow_local_trash, actionAllow_note_editing, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_versions, actionShow_trash, actionShare_note, , actionShow_Todo_List
toolbar/1/name (QString): mainToolBar
toolbar/1/title (QString): main toolbar
toolbar/2/items (QStringList): actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote
toolbar/2/name (QString): formattingToolbar
toolbar/2/title (QString): formatting toolbar
toolbar/3/items (QStringList): actionInsert_text_link, actionInsert_image, actionInsert_current_time
toolbar/3/name (QString): insertingToolbar
toolbar/3/title (QString): inserting toolbar
toolbar/4/items (QStringList): action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note
toolbar/4/name (QString): encryptionToolbar
toolbar/4/title (QString): encryption toolbar
toolbar/5/items (QStringList): actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size
toolbar/5/name (QString): windowToolbar
toolbar/5/title (QString): window toolbar
toolbar/6/items (QString): action_Quit
toolbar/6/name (QString): quitToolbar
toolbar/6/title (QString): quit toolbar
toolbar/size (QString): 6
useNoteFolderButtons (QString): false
useSoftWrapInNoteEditor (QString): true
useUNIXNewline (QString): false
webAppClientService/serverUrl (QString): wss://app.qownnotes.org
webAppClientService/token (QString): <hidden>
webSocketServerService/bookmarksNoteName (QString): Bookmarks
webSocketServerService/bookmarksTag (QString): bookmarks
webSocketServerService/commandSnippetsNoteName (QString): Commands
webSocketServerService/commandSnippetsTag (QString): commands
webSocketServerService/port (QString): 22222
workspace-3bfb0457-c111-4fc2-80a3-4b07a3bd5a7b/name (QString): Work
workspace-3bfb0457-c111-4fc2-80a3-4b07a3bd5a7b/noteSubFolderDockWidgetVisible (bool): true
workspace-3bfb0457-c111-4fc2-80a3-4b07a3bd5a7b/windowState (QByteArray): <binary data>
workspace-initial/name (QString): Overview
workspace-initial/noteSubFolderDockWidgetVisible (bool): true
workspace-initial/windowState (QByteArray): <binary data>
workspaces (QStringList): initial, 3bfb0457-c111-4fc2-80a3-4b07a3bd5a7b

System environment

HOME: /home/igorp
JAVA_FONTS: /usr/share/fonts/TTF
LANG: en_US.UTF-8
LC_ADDRESS: hr_HR.UTF-8
LC_IDENTIFICATION: hr_HR.UTF-8
LC_MEASUREMENT: hr_HR.UTF-8
LC_MONETARY: en_IE.UTF-8
LC_NAME: hr_HR.UTF-8
LC_NUMERIC: hr_HR.UTF-8
LC_PAPER: hr_HR.UTF-8
LC_TELEPHONE: hr_HR.UTF-8
LC_TIME: en_IE.UTF-8
LOGNAME: igorp
MAIL: /var/spool/mail/igorp
PATH: /home/igorp/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
SHELL: /bin/zsh
USER: igorp
XDG_DATA_DIRS: /home/igorp/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR: /run/user/1000
_JAVA_OPTIONS: -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus
DEBUGINFOD_URLS: https://debuginfod.archlinux.org
DESKTOP_SESSION: plasma
DISPLAY: :0
GTK2_RC_FILES: /etc/gtk-2.0/gtkrc:/home/igorp/.gtkrc-2.0:/home/igorp/.config/gtkrc-2.0
GTK3_MODULES: xapp-gtk3-module
GTK_MODULES: canberra-gtk-module
GTK_RC_FILES: /etc/gtk/gtkrc:/home/igorp/.gtkrc:/home/igorp/.config/gtkrc
HG: /usr/bin/hg
KDE_APPLICATIONS_AS_SCOPE: 1
KDE_FULL_SESSION: true
KDE_SESSION_UID: 1000
KDE_SESSION_VERSION: 5
MOTD_SHOWN: pam
OLDPWD: /home/igorp
PAM_KWALLET5_LOGIN: /run/user/1000/kwallet5.socket
PWD: /home/igorp
QT_AUTO_SCREEN_SCALE_FACTOR: 0
QT_LINUX_ACCESSIBILITY_ALWAYS_ON: 1
QT_SCREEN_SCALE_FACTORS: eDP-1=1;HDMI-1=1;
SESSION_MANAGER: local/laptop:@/tmp/.ICE-unix/1013,unix/laptop:/tmp/.ICE-unix/1013
XAUTHORITY: /tmp/xauth_uycIdj
XCURSOR_SIZE: 24
XCURSOR_THEME: breeze_cursors
XDG_CONFIG_DIRS: /home/igorp/.config/kdedefaults:/etc/xdg:/usr/share/manjaro-kde-settings/xdg
XDG_CURRENT_DESKTOP: KDE
XDG_SEAT: seat0
XDG_SEAT_PATH: /org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS: user
XDG_SESSION_DESKTOP: KDE
XDG_SESSION_ID: 2
XDG_SESSION_PATH: /org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE: x11
XDG_VTNR: 2
MANAGERPID: 932
INVOCATION_ID: de3fa2c92cf443bcbd9e16c49c7b99ce
JOURNAL_STREAM: 8:8714
SYSTEMD_EXEC_PID: 1056
MEMORY_PRESSURE_WATCH: /sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service/memory.pressure
MEMORY_PRESSURE_WRITE: c29tZSAyMDAwMDAgMjAwMDAwMAA=
PULSE_PROP_OVERRIDE_application.name: QOwnNotes
PULSE_PROP_OVERRIDE_application.version: 24.1.5 Manjaro Linux x86_64 AUR
PULSE_PROP_OVERRIDE_application.icon_name: qownnotes

@pbek pbek added Type: Bug - Regression Severity: Low Bugs or breaking changes with low impact and removed Type: Support labels Feb 4, 2024
@pbek
Copy link
Owner

pbek commented Feb 4, 2024

Thank you for reporting.
I think that's still a quirk of the code blocks...
Can you remember, @Waqar144?

Markdown:

```
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
```

    (?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])

`(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])`

@Waqar144
Copy link
Contributor

Waqar144 commented Feb 5, 2024

Not code blocks, but link detection/conversion I think. The current code is too naive to handle cases like this properly.

@pbek
Copy link
Owner

pbek commented Feb 5, 2024

Any chances of improving that?

@pbek
Copy link
Owner

pbek commented Feb 8, 2024

Pretty naive indeed, the string replace has no concept of code blocks:

// parse for relative file urls and make them absolute
// (for example to show images under the note path)
static const QRegularExpression re(QStringLiteral(R"(([\(<])file:\/\/([^\/].+?)([\)>]))"));
str.replace(re, QStringLiteral("\\1file://") + windowsSlash +
QRegularExpression::escape(notesPath) + QStringLiteral("/\\2\\3"));
// transform images without "file://" urls to file-urls (but we better do
// that in the html, not the Markdown!)
// str.replace(
// QRegularExpression(R"((\!\[.*\]\()((?!file:\/\/).+)(\)))"),
// "\\1file://" + windowsSlash +
// QRegularExpression::escape(notesPath)
// + "/\\2\\3");
QRegularExpressionMatchIterator i;
// Try to replace links like <my-note.md> or <file.pdf> with proper file
// links We need to do that in the Markdown because Hoedown would not create
// a link tag This is a "has not '\w+:\/\/' in it" regular expression see:
// http://stackoverflow.com/questions/406230/regular-expression-to-match-line-that-doesnt-contain-a-word
// TODO: maybe we could do that per QTextBlock to check if it's done in comment blocks?
// Important: The `\n` is needed to not crash under Windows if there is just
// an opening `<` and a lot of other text after it
// Note: If we find an `@` in the link we don't replace it because it's an email address
static const QRegularExpression linkRE(
QStringLiteral("<(((?!\\w+:\\/\\/)[^\\*<>@\n])+\\.[\\w\\d]+)>"));
i = linkRE.globalMatch(str);
while (i.hasNext()) {
QRegularExpressionMatch match = i.next();
const QString fileLink = match.captured(1);
const QString url = Note::getFileURLFromFileName(fileLink, true, true);
str.replace(match.captured(0), QStringLiteral("[") + fileLink + QStringLiteral("](") + url +
QStringLiteral(")"));
}
// Try to replace links like [my note](my-note.md) or [file](file.md) with
// proper file links This is currently also is handling relative image and
// attachment links! We are using `{1,500}` instead of `+` because there
// were crashes with regular expressions running wild
// TODO: In theory we could convert relative note links in the html (and not
// in the Markdown) to prevent troubles with code blocks
i = QRegularExpression(QStringLiteral(R"(\[(.*?)\]\((((?!\w+:\/\/)[^<>]){1,500}?)\))"))
.globalMatch(str);
while (i.hasNext()) {
const QRegularExpressionMatch match = i.next();
const QString fileText = match.captured(1);
const QString fileLink = match.captured(2);
// ignore links to remote Nextcloud images
if (fileLink.startsWith(QLatin1String("/core/preview"))) {
continue;
}
const QString url = Note::getFileURLFromFileName(fileLink, true, true);
str.replace(match.captured(0), QStringLiteral("[") + fileText + QStringLiteral("](") + url +
QStringLiteral(")"));
}

I'm not sure on how to improve that...

@Waqar144
Copy link
Contributor

Waqar144 commented Feb 9, 2024

Yeah. A quick solution would be to:

  • move the links processing code after the code block highlighting.
  • return list of range spans (code start, code end) from highilghtCode function
  • do link processing and skip code blocks based on the previous step's result

A proper solution would be to use the md4c api to find and process links like the md_html function does.

@pbek
Copy link
Owner

pbek commented Feb 9, 2024

Tricky, tricky, ...

@pbek
Copy link
Owner

pbek commented Feb 17, 2024

Is one of the solutions something you are fancying doing, @Waqar144? 😊

@Waqar144
Copy link
Contributor

If I find time, I can try to take a look

@pbek
Copy link
Owner

pbek commented Feb 17, 2024

Yay, that would be wonderful! 🙏🏻🎉

@pbek
Copy link
Owner

pbek commented May 24, 2024

#3032 is another one...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Severity: Low Bugs or breaking changes with low impact Type: Bug - Regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants