pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.68k stars 414 forks source link

[I] link address with spaces #1546

Closed pihentagy closed 4 years ago

pihentagy commented 4 years ago

Expected behaviour

This should work:

Other note

You can link to [markdown test](markdown test.md).

Now what?

Actual behaviour

Link not detected.

Steps to reproduce

Space in the URL

Relevant log output in the Log panel

Expand ``` not important ```

Information about the application, settings and environment

Expand QOwnNotes Debug Information =========================== ## General Info **Current Date**: `Sat Jan 4 16:17:44 2020` **Version**: `20.1.2` **Build date**: `Jan 3 2020` **Build number**: `649` **Platform**: `linux` **Operating System**: `Linux Mint 19.3` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `Launchpad PPA` **Qt Version (build)**: `5.9.5` **Qt Version (runtime)**: `5.9.5` **Portable mode**: `no` **Settings path / key**: `/home/pihentagy/.config/PBE/QOwnNotes.conf` **Application database path**: `/home/pihentagy/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite` **Application arguments**: `/usr/bin/QOwnNotes` **Qt Debug**: `0` **Locale (system)**: `en_US` **Locale (interface)**: *empty* **Primary screen resolution**: `1920x1080` **Icon theme**: `Mint-Y` **Notes in current note folder**: `13` **Calendar items**: `0` **Enabled scripts**: `6` ## Server Info **serverUrl**: *empty* **appIsValid**: `no` **notesPathExists**: *empty* **connectionErrorMessage**: *empty* ## Spellchecking **Enabled**: `true` **Selected language**: `auto` **Language codes**: `de_AT, de_AT_frami, de_CH, de_CH_frami, de_DE, de_DE_frami, en_AU, en_CA, en_GB, en_US, en_ZA, es_AR, es_BO, es_CL, es_CO, es_CR, es_CU, es_DO, es_EC, es_ES, es_GT, es_HN, es_MX, es_NI, es_PA, es_PE, es_PR, es_PY, es_SV, es_US, es_UY, es_VE, fr, fr_BE, fr_CA, fr_CH, fr_FR, fr_LU, fr_MC, it_CH, it_IT, pt_BR, pt_PT, ru_RU` **Language names**: `Österreichisches Deutsch (Österreich), Österreichisches Deutsch (Österreich), Schweizer Hochdeutsch (Schweiz), Schweizer Hochdeutsch (Schweiz), Deutsch (Deutschland), Deutsch (Deutschland), Australian English (Australia), Canadian English (Canada), British English (United Kingdom), American English (United States), English (South Africa), español (Argentina), español (Bolivia), español (Chile), español (Colombia), español (Costa Rica), español (Cuba), español (República Dominicana), español (Ecuador), español de España (España), español (Guatemala), español (Honduras), español de México (México), español (Nicaragua), español (Panamá), español (Perú), español (Puerto Rico), español (Paraguay), español (El Salvador), español (Estados Unidos), español (Uruguay), español (Venezuela), français, français (Belgique), français canadien (Canada), français suisse (Suisse), français (France), français (Luxembourg), français (Monaco), italiano (Svizzera), italiano (Italia), português do Brasil (Brasil), português europeu (Portugal), русский (Россия)` **Application dictionaries path**: `/home/pihentagy/.local/share/PBE/QOwnNotes/dicts` ## Note folders **currentNoteFolderId**: `1` ### Note folder `default` **id**: `1` **isCurrent**: `yes` **activeTagId**: `-1` **localPath**: `/home/pihentagy/Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `yes` **activeNoteSubFolder name**: `Markdown editor` **database file**: `/home/pihentagy/Notes/notes.sqlite` ## Cloud connections ### Cloud connection `Default` **id**: `1` **isCurrent**: `yes` **serverUrl**: *empty* **username**: *empty* ## Enabled scripts ### Script `Epsilon Notes compatible tags (YAML tags)` **id**: `1` **path**: `/home/pihentagy/.local/share/PBE/QOwnNotes/scripts/epsilon-notes-tags/epsilon-notes-tags.qml` **variablesJson**: *empty* **identifier**: `epsilon-notes-tags` **version**: `0.0.2` **minAppVersion**: `18.03.7` ### Script `Unique note id` **id**: `2` **path**: `/home/pihentagy/.local/share/PBE/QOwnNotes/scripts/unique-note-id/unique-note-id.qml` **variablesJson**: *empty* **identifier**: `unique-note-id` **version**: `1.0.1` **minAppVersion**: `18.05.1` ### Script `Markdown-it markdown parser` **id**: `5` **path**: `/home/pihentagy/.local/share/PBE/QOwnNotes/scripts/markdown-it/markdown-it.qml` **variablesJson**: ``` { "customStylesheet": "", "options": "{\n //html: false, // Enable HTML tags in source\n //xhtmlOut: false, // Use '/' to close single tags (
)\n //breaks: false, // Convert '\\n' in paragraphs into
\n //langPrefix: 'language-', // CSS language prefix for fenced blocks\n //linkify: false, // autoconvert URL-like texts to links\n\n // Enable some language-neutral replacements + quotes beautification\n //typographer: false,\n\n // Double + single quotes replacement pairs, when typographer enabled,\n // and smartquotes on. Could be either a String or an Array.\n //\n // For example, you can use '«»„“' for Russian, '„“‚‘' for German,\n // and ['«\\xA0', '\\xA0»', '‹\\xA0', '\\xA0›'] for French (including nbsp).\n //quotes: '\\u201c\\u201d\\u2018\\u2019', /* “”‘’ */\n\n // Highlighter function. Should return escaped HTML,\n // or '' if the source string is not changed and should be escaped externaly.\n // If result starts with ` **ActionDialog/geometry** (QByteArray): `` **ActiveNoteHistoryItem** (NoteHistoryItem): `` **Debug/fakeOldVersionNumber** (QString): `false` **Debug/fileLogging** (QString): `true` **DistractionFreeMode/editorWidthMode** (QString): `3` **DistractionFreeMode/isEnabled** (QString): `false` **DistractionFreeMode/menuBarGeometry** (QByteArray): `` **DistractionFreeMode/menuBarHeight** (QString): `27` **DistractionFreeMode/menuBarVisible** (QString): `true` **DistractionFreeMode/windowState** (QByteArray): `` **Editor/ColorSchemes** (QString): `EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d` **Editor/CurrentSchemaKey** (QString): `EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb` **Editor/autoBracketClosing** (QString): `true` **Editor/autoBracketRemoval** (QString): `true` **Editor/disableCursorBlinking** (QString): `false` **Editor/editorWidthInDFMOnly** (QString): `true` **Editor/highlightCurrentLine** (QString): `true` **Editor/indentSize** (QString): `4` **Editor/useTabIndent** (QString): `false` **Editor/vimMode** (QString): `false` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_-1** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_0** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_1** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_11** (QString): `false` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_12** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_13** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_14** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_15** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_16** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_17** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_18** (QString): `false` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_19** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_2** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_21** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_22** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_23** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_25** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_3** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_4** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColorEnabled_8** (QString): `false` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_-1** (QColor): `#ffffff` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_0** (QColor): `#fff8ef` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_1** (QColor): `#fff2e4` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_11** (QColor): `#aaf7ff` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_12** (QColor): `#f1f1f4` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_13** (QColor): `#f1f1f4` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_14** (QColor): `#f1f1f4` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_15** (QColor): `#f1f1f4` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_16** (QColor): `#f1f1f4` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_17** (QColor): `#f1f1f4` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_18** (QColor): `#f5f9d8` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_19** (QColor): `#e2e7e2` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_2** (QColor): `#fff2e4` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_21** (QColor): `#7c7c7c` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_22** (QColor): `#f7f6ff` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_23** (QColor): `#eaebea` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_25** (QColor): `#fffae2` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_3** (QColor): `#edffed` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_4** (QColor): `#eaebea` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/BackgroundColor_8** (QColor): `#dbf9e5` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Bold_12** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Bold_13** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Bold_14** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Bold_15** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Bold_16** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Bold_17** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Bold_8** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/FontSizeAdaption_12** (QString): `200` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/FontSizeAdaption_13** (QString): `160` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/FontSizeAdaption_14** (QString): `130` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/FontSizeAdaption_15** (QString): `100` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/FontSizeAdaption_16** (QString): `90` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/FontSizeAdaption_17** (QString): `90` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/FontSizeAdaption_8** (QString): `100` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_-1** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_0** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_1** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_10** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_11** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_12** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_13** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_14** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_15** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_16** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_17** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_18** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_19** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_2** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_20** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_21** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_22** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_23** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_24** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_26** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_3** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_4** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_5** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_6** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_7** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_8** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColorEnabled_9** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_-1** (QColor): `#000000` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_0** (QColor): `#fc7e00` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_1** (QColor): `#fc7e00` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_10** (QColor): `#a3007b` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_11** (QColor): `#ababab` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_12** (QColor): `#00316e` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_13** (QColor): `#00316e` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_14** (QColor): `#00316e` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_15** (QColor): `#00316e` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_16** (QColor): `#00316e` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_17** (QColor): `#00316e` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_18** (QColor): `#aa0000` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_19** (QColor): `#008000` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_2** (QColor): `#fc7e00` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_20** (QColor): `#3d3d3d` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_21** (QColor): `#393939` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_22** (QColor): `#4e18b9` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_23** (QColor): `#008000` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_24** (QColor): `#cccccc` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_26** (QColor): `#ff5500` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_3** (QColor): `#00bf00` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_4** (QColor): `#008000` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_5** (QColor): `#3d3d3d` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_6** (QColor): `#3d3d3d` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_7** (QColor): `#0057ae` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_8** (QColor): `#00428a` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/ForegroundColor_9** (QColor): `#a3007b` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Italic_7** (QString): `true` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Name** (QString): `Light (Copy)` **EditorColorSchema-10c804df-d9a8-4aca-a781-c9f281848a3d/Underline_26** (QString): `true` **FileDialog/LastPath** (QString): `/home/pihentagy/utils/markdown-it` **FileDialog/LastPath-ScriptPath** (QString): `/home/pihentagy/utils/markdown-it` **ImageDialog/disableCopying** (QString): `false` **ImageDialog/geometry** (QByteArray): `` **IssueAssistantDialog/geometry** (QByteArray): `` **LastUpdateCheck** (QDateTime): `2020-01-04T16:12:48` **LinkDialog/geometry** (QByteArray): `` **LogWidget/criticalLog** (bool): `true` **LogWidget/debugLog** (bool): `true` **LogWidget/fatalLog** (bool): `true` **LogWidget/infoLog** (bool): `true` **LogWidget/scriptingLog** (bool): `true` **LogWidget/statusLog** (bool): `true` **LogWidget/warningLog** (bool): `true` **MainWindow/geometry** (QByteArray): `` **MainWindow/mainToolBar.iconSize** (QString): `24` **MainWindow/menuBarGeometry** (QByteArray): `` **MainWindow/noteSubFolderTreeWidgetExpandState-1** (QStringList): `Elephant` **MainWindow/noteTextEdit.code.font** (QString): `DejaVu Sans Mono,9,-1,5,50,0,0,0,0,0,Book` **MainWindow/noteTextEdit.font** (QString): `DejaVu Serif,9,-1,5,50,0,0,0,0,0,Book` **MainWindow/noteTextView.code.font** (QString): `Monospace,10,-1,5,50,0,0,0,0,0` **MainWindow/noteTextView.font** (QString): `Tibetan Machine Uni,11,-1,5,50,0,0,0,0,0,Regular` **MainWindow/noteTextView.ignoreCodeFontSize** (QString): `true` **MainWindow/noteTextView.rtl** (QString): `false` **MainWindow/noteTextView.underline** (QString): `true` **MainWindow/noteTextView.useEditorStyles** (QString): `true` **MainWindow/noteTextView.useInternalExportStyling** (QString): `true` **MainWindow/showNotesFromAllNoteSubFolders** (QString): `false` **MessageBoxOverride/script-install-successful** (QString): `1024` **NoteDialog/geometry** (QByteArray): `` **NoteDiffDialog/geometry** (QByteArray): `` **NoteHistory-0** (QVariantList): `` **NoteHistory-1** (QVariantList): `` **NoteHistoryCurrentIndex-0** (QString): `43` **NoteHistoryCurrentIndex-1** (QString): `71` **PasswordDialog/geometry** (QByteArray): `` **PersistentScripting/MdNT/pyCommand** (QString): `python3` **PiwikClientId** (QString): `` **ScriptRepositoryDialog/geometry** (QByteArray): `` **ScriptRepositoryDialog/mainSplitterState** (QByteArray): `` **SearchEngineId** (QString): `2` **SettingsDialog/geometry** (QByteArray): `` **SettingsDialog/mainSplitterState** (QByteArray): `` **ShareDialog/geometry** (QByteArray): `` **ShowSystemTray** (QString): `false` **StartHidden** (QString): `false` **TableDialog/geometry** (QByteArray): `` **UpdateDialog/geometry** (QByteArray): `` **WelcomeDialog/geometry** (QByteArray): `` **acceptAllExternalModifications** (QString): `true` **allowDifferentNoteFileName** (QString): `true` **allowNoteEditing** (bool): `true` **allowOnlyOneAppInstance** (QString): `false` **appMetrics/disableAppHeartbeat** (QString): `false` **appMetrics/disableTracking** (QString): `false` **appMetrics/notificationShown** (QString): `true` **automaticNoteFolderDatabaseClosing** (QString): `false` **checkSpelling** (bool): `true` **closeTodoListAfterSave** (QString): `false` **cryptoKey** (QString): `` **currentNoteFolderId** (QString): `1` **currentWorkspace** (QString): `92e58ed3-9d17-423b-a69e-526f553f8280` **cursorWidth** (QString): `1` **customNoteFileExtensionList**: *empty* **darkMode** (QString): `false` **darkModeColors** (QString): `false` **darkModeIconTheme** (QString): `false` **darkModeTrayIcon** (QString): `false` **defaultNoteFileExtension** (QString): `md` **disableAutomaticUpdateDialog** (QString): `true` **disableSavedSearchesAutoCompletion** (QString): `false` **dockWasInitializedOnce** (QString): `true` **enableNoteTree** (QString): `false` **enableSocketServer** (QString): `true` **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): `^\.` **imageScaleDown** (QString): `false` **imageScaleDownMaximumHeight** (QString): `1024` **imageScaleDownMaximumWidth** (QString): `1024` **insertTimeFormat** (QString): *empty* **interfaceFontSize** (QString): `11` **interfaceLanguage** (QString): *empty* **interfaceStyle** (QString): `plastique` **internalIconTheme** (QString): `false` **itemHeight** (QString): `19` **legacyLinking** (QString): `false` **localTrash/autoCleanupDays** (QString): `30` **localTrash/autoCleanupEnabled** (QString): `true` **localTrash/supportEnabled** (QString): `true` **markdownHighlightingEnabled** (QString): `true` **navigationPanelHideSearch** (QString): `false` **networking/ignoreSSLErrors** (QString): `true` **networking/proxyType** (QString): `2` **newNoteAskHeadline** (QString): `false` **noteEditIsCentralWidget** (QString): `true` **noteListPreview** (QString): `false` **noteSaveIntervalTime** (QString): `10` **noteSubfoldersPanelDisplayAsFullTree** (QString): `true` **noteSubfoldersPanelHideSearch** (QString): `false` **noteSubfoldersPanelOrder** (QString): `0` **noteSubfoldersPanelShowFullPath** (QString): `true` **noteSubfoldersPanelShowNotesRecursively** (QString): `true` **noteSubfoldersPanelShowRootFolderName** (QString): `true` **noteSubfoldersPanelSort** (QString): `0` **notesPanelOrder** (QString): `0` **notesPanelSort** (QString): `1` **notesPath** (QString): `/home/pihentagy/Notes` **notifyAllExternalModifications** (QString): `false` **overrideInterfaceFontSize** (QString): `false` **ownCloud/supportEnabled** (QString): `false` **ownCloud/todoCalendarBackend** (QString): `3` **ownCloud/todoCalendarCalDAVPassword** (QString): `` **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** (QString): `false` **ownCloudInfo/connectionErrorMessage** (QString): *empty* **ownCloudInfo/notesPathExistsText** (QString): *empty* **ownCloudInfo/serverVersion** (QString): *empty* **previousWorkspace** (QString): `ec4e41a7-ce51-4006-ae07-d7768cb1cc49` **restoreCursorPosition** (QString): `true` **savedSearches/noteFolder-0** (QStringList): `Note 2019-02-14T13.46.55, Note 2019-02-14T13.46.34, Note 2019-01-30T16.03.42, Note 2019-01-16T13.12.36 2019-01-16T14.15.01, Note 2019-01-16T13.12.36 2019-01-16T13.12.53, Note 2019-01-16T13.12.36, docker 2019-01-16T12.58.29, Note 2019-01-15T11.26.32, Note 2018-11-23T10.45.12, Note 2018-11-22T11.30.29, Note 2018-11-15T14.17.02, Note 2018-11-12T09.08.47` **savedSearches/noteFolder-1** (QStringList): `Note 2020-01-04T16.13.33, Note 2019-10-29T13.07.25, Note 2019-10-29T11.06.58, Note 2019-10-29T11.04.49, Note 2019-10-28T13.31.11, joplin` **showMatches** (QString): `true` **showMenuBar** (bool): `true` **showStatusBar** (bool): `true` **spellCheckLanguage** (QString): `auto` **systemIconTheme** (QString): `false` **tagWasAddedToNote** (QString): `true` **taggingShowNotesRecursively** (QString): `true` **tagsPanelHideSearch** (QString): `false` **tagsPanelOrder** (QString): `0` **tagsPanelSort** (QString): `0` **todoCalendarSupport** (QString): `true` **toolbar/1/items** (QStringList): `action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, 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, , actionOpen_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_Link_to_note, 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` **useUNIXNewline** (QString): `false` **webSocketServerService/bookmarksNoteName** (QString): `Bookmarks` **webSocketServerService/bookmarksTag** (QString): `bookmarks` **webSocketServerService/port** (QString): `22222` **workspace-55ea34e7-c50e-4b58-930e-1f7db985cf97/name** (QString): `minimal` **workspace-55ea34e7-c50e-4b58-930e-1f7db985cf97/noteSubFolderDockWidgetVisible** (QString): `true` **workspace-55ea34e7-c50e-4b58-930e-1f7db985cf97/windowState** (QByteArray): `` **workspace-82d5a242-ebaf-4bf2-b072-7dec36cd46f0/name** (QString): `preview only` **workspace-82d5a242-ebaf-4bf2-b072-7dec36cd46f0/noteSubFolderDockWidgetVisible** (QString): `true` **workspace-82d5a242-ebaf-4bf2-b072-7dec36cd46f0/windowState** (QByteArray): `` **workspace-92e58ed3-9d17-423b-a69e-526f553f8280/name** (QString): `full` **workspace-92e58ed3-9d17-423b-a69e-526f553f8280/noteSubFolderDockWidgetVisible** (QString): `true` **workspace-92e58ed3-9d17-423b-a69e-526f553f8280/windowState** (QByteArray): `` **workspace-ec4e41a7-ce51-4006-ae07-d7768cb1cc49/name** (QString): `two-panel` **workspace-ec4e41a7-ce51-4006-ae07-d7768cb1cc49/noteSubFolderDockWidgetVisible** (QString): `true` **workspace-ec4e41a7-ce51-4006-ae07-d7768cb1cc49/windowState** (QByteArray): `` **workspaces** (QStringList): `92e58ed3-9d17-423b-a69e-526f553f8280, 55ea34e7-c50e-4b58-930e-1f7db985cf97, 82d5a242-ebaf-4bf2-b072-7dec36cd46f0, ec4e41a7-ce51-4006-ae07-d7768cb1cc49` ## System environment **J2SDKDIR**: `/usr/lib/jvm/java-8-oracle` **USER**: `pihentagy` **LANGUAGE**: `en_US` **XDG_SEAT**: `seat0` **XDG_SESSION_TYPE**: `x11` **SSH_AGENT_PID**: `1636` **J2REDIR**: `/usr/lib/jvm/java-8-oracle/jre` **SHLVL**: `0` **HOME**: `/home/pihentagy` **DESKTOP_SESSION**: `cinnamon` **GTK_MODULES**: `gail:atk-bridge` **XDG_SEAT_PATH**: `/org/freedesktop/DisplayManager/Seat0` **LC_MONETARY**: `hu_HU.UTF-8` **DBUS_SESSION_BUS_ADDRESS**: `unix:path=/run/user/1000/bus` **MANDATORY_PATH**: `/usr/share/gconf/cinnamon.mandatory.path` **QT_QPA_PLATFORMTHEME**: `qt5ct` **LOGNAME**: `pihentagy` **DEFAULTS_PATH**: `/usr/share/gconf/cinnamon.default.path` **XDG_SESSION_ID**: `c1` **PATH**: `/home/pihentagy/.local/bin:/home/pihentagy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin` **GDM_LANG**: `en_US` **DERBY_HOME**: `/usr/lib/jvm/java-8-oracle/db` **S_COLORS**: `auto` **LC_ADDRESS**: `hu_HU.UTF-8` **XDG_RUNTIME_DIR**: `/run/user/1000` **XDG_SESSION_PATH**: `/org/freedesktop/DisplayManager/Session0` **DISPLAY**: `:0` **LANG**: `en_US.UTF-8` **LC_TELEPHONE**: `hu_HU.UTF-8` **XDG_SESSION_DESKTOP**: `cinnamon` **XAUTHORITY**: `/home/pihentagy/.Xauthority` **XDG_GREETER_DATA_DIR**: `/var/lib/lightdm-data/pihentagy` **SSH_AUTH_SOCK**: `/run/user/1000/keyring/ssh` **LC_NAME**: `hu_HU.UTF-8` **SHELL**: `/bin/bash` **QT_ACCESSIBILITY**: `1` **GDMSESSION**: `cinnamon` **LC_MEASUREMENT**: `hu_HU.UTF-8` **GPG_AGENT_INFO**: `/run/user/1000/gnupg/S.gpg-agent:0:1` **LC_IDENTIFICATION**: `hu_HU.UTF-8` **XDG_VTNR**: `7` **JAVA_HOME**: `/usr/lib/jvm/java-8-oracle` **PWD**: `/home/pihentagy` **XDG_DATA_DIRS**: `/usr/share/cinnamon:/usr/share/gnome:/home/pihentagy/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share` **XDG_CONFIG_DIRS**: `/etc/xdg/xdg-cinnamon:/etc/xdg` **LC_NUMERIC**: `hu_HU.UTF-8` **LC_PAPER**: `hu_HU.UTF-8` **GNOME_DESKTOP_SESSION_ID**: `this-is-deprecated` **GTK_OVERLAY_SCROLLING**: `1` **SESSION_MANAGER**: `local/thinkpad:@/tmp/.ICE-unix/1463,unix/thinkpad:/tmp/.ICE-unix/1463` **XDG_CURRENT_DESKTOP**: `X-Cinnamon`
pbek commented 4 years ago

I cannot reproduce that.

Can you please explain in more detail and step by step what you did, what happened and what you expected.

Relevant log output in the Log panel

and please post the log output (see issue template), there must be an error message

pbek commented 4 years ago

I will close this issue until there is more information.

pihentagy commented 4 years ago

See this recording:

note-with-space

pbek commented 4 years ago

image

pbek commented 4 years ago

I see you are using many scripts that alter the preview... Maybe you want to take a closer look at Markdown-it markdown parser.

pihentagy commented 4 years ago

Yep, you are right, markdown-it breaks it. However, shouldn't spaces and some other characters be escaped in the link target for maximum compatibility with other markdown tools? Or am I missing something?

pbek commented 4 years ago

They are not escaped for compatibility to all other systems. :laughing: (#266) Previously we had the "note links" with, you can still use them by turning on "Legacy linking" in the General settings.

pbek commented 4 years ago

Maybe there are some markdown-it options to help with those spaces... Or you try to parse links yourself first...

pihentagy commented 4 years ago

They are not escaped for compatibility to all other systems. laughing (#266) Previously we had the "note links" with, you can still use them by turning on "Legacy linking" in the General settings.

Perfect! Legacy linking solves it.

[edit]: I realized I didn't understand correctly. Non-legacy is standard complient, as it should be)

To enable smoother data exchange, shouldn't be the Legacy linking the default? And "Standard compliant linkink" sounds more positive :wink:

Btw shouldn't legacy linking not use note:// prefix? :thinking:

pbek commented 4 years ago

To enable smoother data exchange, shouldn't be the Legacy linking the default? And "Standard compliant linkink" sounds more positive wink

Legacy linking is not "standard compliant", it uses note:// and media:// links

Btw shouldn't legacy linking not use note:// prefix? thinking

it does use the note:// prefix, doesn't it?

pihentagy commented 4 years ago

it does use the note:// prefix, doesn't it?

Yes it does. I mean: how can I achieve, that "standard" markdown links are created?

So, when I have 2 files: one thing.md and other thing.md, and I'd like to reference one from another, I should get something like: [other thing](other%20thing.md), so:

This way it works with any other tool (like gitlab, for eg.)

pbek commented 4 years ago

I've never seen escaped spaces in markdown links. Is there any documentation about this? Or "one standard"? I've now also seen   for a space. :grimacing:

pbek commented 4 years ago

GitHub needs escaping of spaces and can handle both types of escaping... So I guess I will re-implement everything. 😑

pihentagy commented 4 years ago

I guess URLs should be escaped like in html. Markdown does not have an official documentation, "informal specification" see https://en.wikipedia.org/wiki/Markdown#cite_note-18

There are Markdown extensions, which may be better specified and documented, referenced in the wikipedia page.

pbek commented 4 years ago

20.2.9

pbek commented 4 years ago

There now is a new release, could you please test it and report if it works for you?

pihentagy commented 4 years ago

Thanks, seems to work fine :+1:

pbek commented 4 years ago

Great, thank you for testing!

pihentagy commented 4 years ago

However #313 will re-occur if you rename a note with spaces in it.

pbek commented 4 years ago

Thank you for reporting.

pbek commented 4 years ago

20.2.10

There now is a new release, could you please test it and report if it works for you?

pihentagy commented 4 years ago

There now is a new release, could you please test it and report if it works for you?

Thanks works, that was real quick! Awesome how passionate you are!

pbek commented 4 years ago

😄 Great, thank you for testing!

pihentagy commented 4 years ago

With the markdown-it parser turned on, links even without spaces does not work. Switching off markdown-it instantly solves the problem.

A single

Link to [note](note.md)

does not work. v 20.3.1

pbek commented 4 years ago

May I ask what do you need from the markdown-it library that doesn't work in QOwnNotes directly?

If you are asking for a feature requests for a script please open an issue in the script's repository.

pbek commented 4 years ago

But I don't think anyone will implement those links into markdown-it very easily... Best stay at legacy links that have real urls if you really want markdown-it.

pihentagy commented 4 years ago

May I ask what do you need from the markdown-it library that doesn't work in QOwnNotes directly?

If you are asking for a feature requests for a script please open an issue in the script's repository.

Definition list was one of the features which are not supported with the builtin renderer. Yes, if the builtin one can parse various markdown dialect, I wouldn't experiment with markdown-it at all.