-
Notifications
You must be signed in to change notification settings - Fork 112
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
Support to display a limited set of HTML tags (aligned with mastodon 4.2) plus URL support (soft dependency on urwidgets library) #403
Commits on Apr 1, 2023
-
Support for rendering a subset of HTML tags in status content
Code is adapted from GPL3-licensed muv by @seonon https://github.com/seonon/muv
Configuration menu - View commit details
-
Copy full SHA for 80814eb - Browse repository at this point
Copy the full SHA 80814ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b4f46c - Browse repository at this point
Copy the full SHA 3b4f46cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 717a0e4 - Browse repository at this point
Copy the full SHA 717a0e4View commit details
Commits on Apr 4, 2023
-
Support for rendering a subset of HTML tags in status content
Code is adapted from GPL3-licensed muv by @seonon https://github.com/seonon/muv
Configuration menu - View commit details
-
Copy full SHA for 479907b - Browse repository at this point
Copy the full SHA 479907bView commit details -
see: https://www.flake8rules.com/rules/W503.html for justification
Configuration menu - View commit details
-
Copy full SHA for 4ceb3e5 - Browse repository at this point
Copy the full SHA 4ceb3e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb8033c - Browse repository at this point
Copy the full SHA eb8033cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 524115e - Browse repository at this point
Copy the full SHA 524115eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d65cac1 - Browse repository at this point
Copy the full SHA d65cac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7189c6b - Browse repository at this point
Copy the full SHA 7189c6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94315dd - Browse repository at this point
Copy the full SHA 94315ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85c228b - Browse repository at this point
Copy the full SHA 85c228bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 678cc19 - Browse repository at this point
Copy the full SHA 678cc19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1164d0c - Browse repository at this point
Copy the full SHA 1164d0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ad9e7c - Browse repository at this point
Copy the full SHA 7ad9e7cView commit details -
Changed parameters for list cmds
Title is now a positional parameter. Also added some error handling in the command processing for looking up list IDs per @ihabunek 's suggestions
Configuration menu - View commit details
-
Copy full SHA for 0430eed - Browse repository at this point
Copy the full SHA 0430eedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45cffb6 - Browse repository at this point
Copy the full SHA 45cffb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 037f7f9 - Browse repository at this point
Copy the full SHA 037f7f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c9935e - Browse repository at this point
Copy the full SHA 1c9935eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4023bf0 - Browse repository at this point
Copy the full SHA 4023bf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe3044f - Browse repository at this point
Copy the full SHA fe3044fView commit details -
Also don't check if account is found, that function alredy raises a ConsoleError.
Configuration menu - View commit details
-
Copy full SHA for 006ad85 - Browse repository at this point
Copy the full SHA 006ad85View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3ea1e5 - Browse repository at this point
Copy the full SHA d3ea1e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fb0561 - Browse repository at this point
Copy the full SHA 1fb0561View commit details -
Configuration menu - View commit details
-
Copy full SHA for c48501e - Browse repository at this point
Copy the full SHA c48501eView commit details -
Make output match existing master branch status rendering exactly
Top level widgets are separated by blank lines, but The final blank line of the status is omitted. This exactly matches existing status rendering in master, for statuses that contain only the currently supported tags
Configuration menu - View commit details
-
Copy full SHA for dc9fa05 - Browse repository at this point
Copy the full SHA dc9fa05View commit details -
fixed up palette constants a bit
No longer specifying color "white" when it's more correct to omit the color and just specify an attribute like underline, bold, etc.
Configuration menu - View commit details
-
Copy full SHA for 9ed0a47 - Browse repository at this point
Copy the full SHA 9ed0a47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e1d36f - Browse repository at this point
Copy the full SHA 6e1d36fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0098371 - Browse repository at this point
Copy the full SHA 0098371View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84663d6 - Browse repository at this point
Copy the full SHA 84663d6View commit details -
Make HTML class handling more sensible
If the class name appears in the constants.py PALETTE entry, it is honored. Otherwise, the class is ignored and the tag is handled as a generic tag of that type. This allows hashtag anchors to be highlighted, and URL anchors to be styled differently regardless of the strange class markup that Akkoma adds to URL anchors
Configuration menu - View commit details
-
Copy full SHA for 486cd6c - Browse repository at this point
Copy the full SHA 486cd6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 103767d - Browse repository at this point
Copy the full SHA 103767dView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb64cb9 - Browse repository at this point
Copy the full SHA eb64cb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6b708f - Browse repository at this point
Copy the full SHA e6b708fView commit details
Commits on Apr 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 72aa934 - Browse repository at this point
Copy the full SHA 72aa934View commit details
Commits on Apr 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e9b4bfb - Browse repository at this point
Copy the full SHA e9b4bfbView commit details
Commits on Apr 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bb31054 - Browse repository at this point
Copy the full SHA bb31054View commit details -
Configuration menu - View commit details
-
Copy full SHA for 739c009 - Browse repository at this point
Copy the full SHA 739c009View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e6c726 - Browse repository at this point
Copy the full SHA 0e6c726View commit details
Commits on May 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 306cf45 - Browse repository at this point
Copy the full SHA 306cf45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d47a0a - Browse repository at this point
Copy the full SHA 5d47a0aView commit details -
Support OSC 8 underline of anchor links
Uses the Hyperlink widget along with TextEmbed widget
Configuration menu - View commit details
-
Copy full SHA for 9ccfd6b - Browse repository at this point
Copy the full SHA 9ccfd6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a5db5b - Browse repository at this point
Copy the full SHA 4a5db5bView commit details -
Added a workaround for statuses with malformed HTML
We see this problem with statuses from Pixelfed servers. Per the Mastodon API spec, the content tag is supposed to be HTML, but Pixelfed sends statuses that often start as plain text. They may include embedded anchor tags etc. within the text. This confuses BeautifulSoup HTML parsers and results in bad rendering artifacts. This workaround detects the above condition and attempts to fix it by surrounding the status in <p></p>. This converts it to nominally valid HTML (at least, parseable by BeautifulSoup.)
Configuration menu - View commit details
-
Copy full SHA for baa50ca - Browse repository at this point
Copy the full SHA baa50caView commit details -
Hashtag highlighting now works correctly
Also, hashtags are created as OCS-8 hyperlinks, so they are directly clickable in terminals that support OCS-8
Configuration menu - View commit details
-
Copy full SHA for de3461e - Browse repository at this point
Copy the full SHA de3461eView commit details -
Fix for rendering HTML that starts with an inline tag
Also, now renders HTML in Account overlay page
Configuration menu - View commit details
-
Copy full SHA for 457facd - Browse repository at this point
Copy the full SHA 457facdView commit details -
Switched to released version of urwidgets (0.1.0)
Also, removed Python 3.6 tests as urwidgets is Python 3.7+
Configuration menu - View commit details
-
Copy full SHA for fe88a40 - Browse repository at this point
Copy the full SHA fe88a40View commit details
Commits on May 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b3c654b - Browse repository at this point
Copy the full SHA b3c654bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 86304df - Browse repository at this point
Copy the full SHA 86304dfView commit details
Commits on May 28, 2023
-
Removed followed_tags highlight feature (incompatible with HTML render)
Also converted polls.py to use HTML rendering
Configuration menu - View commit details
-
Copy full SHA for 4c51220 - Browse repository at this point
Copy the full SHA 4c51220View commit details -
Login to servers that don't honor the uri spec for V1::Instance
Pleroma, Akkoma, and other servers do not follow the Mastodon spec for the 'uri' attribute which specifies that it contains the domain name of the instance. Instead, they return a complete URI. As a workaround, we now detect this situation and parse out the domain from the URI when necessary. This fixes issue ihabunek#347. Thanks to @laleanor for their patch and @rjp for ideas on how to make it work with GotoSocial and other servers
Configuration menu - View commit details
-
Copy full SHA for 5c6644b - Browse repository at this point
Copy the full SHA 5c6644bView commit details -
Anchor tags with class = hashtag or mention_hashtag are highlighted
Previously this only worked for anchor tags with nested spans. Now it works for anchor tags with or without nested spans.
Configuration menu - View commit details
-
Copy full SHA for f14653a - Browse repository at this point
Copy the full SHA f14653aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33afe39 - Browse repository at this point
Copy the full SHA 33afe39View commit details
Commits on Jun 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f45dfa1 - Browse repository at this point
Copy the full SHA f45dfa1View commit details
Commits on Sep 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5d6d916 - Browse repository at this point
Copy the full SHA 5d6d916View commit details -
Configuration menu - View commit details
-
Copy full SHA for c74539f - Browse repository at this point
Copy the full SHA c74539fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 647a3c5 - Browse repository at this point
Copy the full SHA 647a3c5View commit details