Skip to content
Snippets Groups Projects
  1. Jan 31, 2024
    • Andreas Traczyk's avatar
      link-preview: fix UTF-8 decoding · 154ce53e
      Andreas Traczyk authored
      The HTML string was being converted to a local 8-bit string prior to parsing with tidy.
      
      According to Qt documentation, this works on Unix systems as toLocal8Bit() is equivalent to toUtf8(), however, it may not on Windows, and may result in character replacement.
      
      Gitlab: #1536
      Change-Id: I7aec98cffbd9d72771d1c489f52b38dbb3a1ed9f
      154ce53e
  2. Jan 03, 2024
  3. Jul 14, 2023
    • Andreas Traczyk's avatar
      messageparser: replace regexes with tidy API · 61126cfa
      Andreas Traczyk authored and Sébastien Blin's avatar Sébastien Blin committed
      Depend on tidy API for attribute extraction rather than regexes.
      
      1. htmlparser methods return nodes instead of pre-parsed strings
      2. htmlparser provides some methods to extract text/attr from nodes
      
      Gitlab: #1248
      Change-Id: I367d703680938fb0b7c5055ac41e079c1322da30
      61126cfa
  4. May 15, 2023
    • Andreas Traczyk's avatar
      chat: preprocess text msgs w/md4c+tidy-html5 · 8db188c5
      Andreas Traczyk authored and Sébastien Blin's avatar Sébastien Blin committed
      Introduces MessageParser to encapsulate text treatment for raw text messages.
      
      The async parsing sequence is as follows:
      - Markdown -> HTML (md4c)
      - link coloration (tidy-html5)
      - notify UI
      - request link preview info from PreviewEngine for the first link
      - Preview engine uses QtNetwork instead of QtWebengine
      - Linkification is handled by MessageParser instead of linkify.js
      
      QtWebengine is no longer required for message parsing.
      
      Gitlab: #1033
      Gitlab: #855
      Change-Id: Ief9b91aa291caf284f08230acaf57976f80fa05b
      8db188c5
Loading