Commit Graph

2980 Commits

Author SHA1 Message Date
olivier
f9d9eaf993 Merge pull request 'Keep some MathML tags even when empty' (#1003) from mathml-mtd into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/1003
Reviewed-by: olivier <olivier@noreply.codeberg.org>
2025-12-17 09:24:30 +01:00
Olivier Meunier
fc16870ea5 pkg/bleach refactor
Instead of multiple maps for tags to keep, rename or remove, we use
a single map with flags.

Tag removal and renaming now takes place in a single loop.
2025-12-17 09:13:47 +01:00
Mislav Marohnić
e8817333c1 Keep some MathML tags even when empty
This explicitly allows some MathML elements to stay empty without being stripped away:

- mprescripts
- mrow
- md
- mspace
2025-12-17 08:18:28 +01:00
olivier
7d758c9598 Merge pull request 'Dependencies update [2025-12-10]' (#992) from chore/updates into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/992
2025-12-16 08:29:08 +01:00
Readeck Bot
d78aec7ca7 Updated Site Config files 2025-12-16 05:02:24 +00:00
Readeck Bot
6297c0f181 Updated JS dependencies 2025-12-16 05:02:22 +00:00
Readeck Bot
a3c54c3b93 Updated Go dependencies 2025-12-16 05:02:02 +00:00
olivier
368cf636e7 Merge pull request 'Avoid infinite loop with remote import adapters' (#997) from fix/importer-loop into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/997
2025-12-12 11:50:45 +01:00
Olivier Meunier
a81b0416ac Avoid infinite loop with remote import adapters
On remote adapters (wallabag and omnivore), if the remote instance
disappears or result in any type of error, we send an io.EOF so the
import can stop.

Resolves #994
2025-12-12 10:15:01 +01:00
Olivier Meunier
3c149de734 Version 0.21.4 0.21.4 2025-12-09 16:02:22 +01:00
olivier
699da63b1f Merge pull request 'Dependencies update [2025-12-09]' (#991) from chore/updates into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/991
2025-12-09 15:07:32 +01:00
Readeck Bot
172008d8b6 Updated Site Config files 2025-12-09 14:04:03 +00:00
Readeck Bot
44ac8c6b1d Updated JS dependencies 2025-12-09 14:04:02 +00:00
Readeck Bot
5d06a7083d Updated Go dependencies 2025-12-09 14:03:42 +00:00
olivier
7c9029d5db Merge pull request 'Support saving math generated with MathJax and KaTeX' (#976) from mathjax-support into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/976
2025-12-09 14:37:13 +01:00
Olivier Meunier
b8b8dbb249 Apply DejaVu Math to "math" elements
- fallback to sans-serif
- added license information (font and treeblood)
2025-12-04 10:46:01 +01:00
Olivier Meunier
a51aab16da Updated changelog 2025-12-04 10:46:00 +01:00
Mislav Marohnić
c1d0a2fef5 Support saving math generated with MathJax and KaTeX
MathJax v2 outputs HTML+CSS and MathML together. Since we're satisfied with
just MathML, this strips the HTML+CSS part since that would look bad if ever
viewed in Readeck.

MathJax v3 supports CHTML and SVG output modes, but neither outputs MathML.
However, MathJax does expose the original LaTeX expression via the "data-latex"
attribute. Fetch the value of that attribute and use a 3rd-party library to
render LaTeX to MathML when archiving the bookmark.

KaTeX does output MathML, but it also outputs its own HTML-CSS format that is
marked with `aria-hidden="true"`. Ensure that this is stripped even in the
mode when Readability is disabled.
2025-12-04 10:45:37 +01:00
Olivier Meunier
f5cff70bc9 Updated changelog 2025-12-04 10:45:28 +01:00
Olivier Meunier
c5a9500049 Merge branch 'main' into release 2025-12-04 10:44:19 +01:00
olivier
f942725ea0 Merge pull request 'Translations update from Codeberg Translate' (#970) from translate/readeck:weblate-readeck-application into main
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/970
2025-12-04 10:43:07 +01:00
Codeberg Translate
db0fbfef83 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (533 of 533 strings)

Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (533 of 533 strings)

Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (142 of 142 strings)

Co-authored-by: Codeberg Translate <translate@codeberg.org>
Co-authored-by: Outbreak2096 <outbreak2096@noreply.codeberg.org>
Co-authored-by: linsui <linsui@noreply.codeberg.org>
Co-authored-by: olivier <olivier@noreply.codeberg.org>
Translate-URL: https://translate.codeberg.org/projects/readeck/application/zh_Hans/
Translate-URL: https://translate.codeberg.org/projects/readeck/documentation/zh_Hans/
Translation: Readeck/Application
Translation: Readeck/Documentation
2025-12-04 09:41:33 +00:00
Codeberg Translate
70a8b5e92d Translated using Weblate (Ukrainian)
Currently translated at 100.0% (533 of 533 strings)

Co-authored-by: Codeberg Translate <translate@codeberg.org>
Co-authored-by: SomeTr <sometr@noreply.codeberg.org>
Translate-URL: https://translate.codeberg.org/projects/readeck/application/uk/
Translation: Readeck/Application
2025-12-04 09:41:33 +00:00
Codeberg Translate
c0e936d9c0 Translated using Weblate (Russian)
Currently translated at 100.0% (533 of 533 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (533 of 533 strings)

Co-authored-by: Codeberg Translate <translate@codeberg.org>
Co-authored-by: olivier <olivier@noreply.codeberg.org>
Co-authored-by: γλωσσολαλιά <glossolalia@noreply.codeberg.org>
Translate-URL: https://translate.codeberg.org/projects/readeck/application/ru/
Translation: Readeck/Application
2025-12-04 09:41:33 +00:00
Codeberg Translate
a68b221483 Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (533 of 533 strings)

Co-authored-by: Codeberg Translate <translate@codeberg.org>
Co-authored-by: henriquetguedes <henriquetguedes@noreply.codeberg.org>
Translate-URL: https://translate.codeberg.org/projects/readeck/application/pt_PT/
Translation: Readeck/Application
2025-12-04 09:41:33 +00:00
Codeberg Translate
3ef82cc3da Translated using Weblate (Galician)
Currently translated at 100.0% (533 of 533 strings)

Translated using Weblate (Galician)

Currently translated at 100.0% (533 of 533 strings)

Co-authored-by: Codeberg Translate <translate@codeberg.org>
Co-authored-by: ghose <ghose@noreply.codeberg.org>
Co-authored-by: olivier <olivier@noreply.codeberg.org>
Translate-URL: https://translate.codeberg.org/projects/readeck/application/gl/
Translation: Readeck/Application
2025-12-04 09:41:33 +00:00
Codeberg Translate
315ba654aa Translated using Weblate (French)
Currently translated at 100.0% (533 of 533 strings)

Co-authored-by: Codeberg Translate <translate@codeberg.org>
Co-authored-by: olivier <olivier@noreply.codeberg.org>
Translate-URL: https://translate.codeberg.org/projects/readeck/application/fr/
Translation: Readeck/Application
2025-12-04 09:41:33 +00:00
Codeberg Translate
38037af8ed Translated using Weblate (Spanish)
Currently translated at 100.0% (533 of 533 strings)

Co-authored-by: Codeberg Translate <translate@codeberg.org>
Co-authored-by: imposible01 <imposible01@noreply.codeberg.org>
Translate-URL: https://translate.codeberg.org/projects/readeck/application/es/
Translation: Readeck/Application
2025-12-04 09:41:33 +00:00
Codeberg Translate
8b083d8a55 Translated using Weblate (German)
Currently translated at 100.0% (533 of 533 strings)

Co-authored-by: Codeberg Translate <translate@codeberg.org>
Co-authored-by: altruizine <altruizine@noreply.codeberg.org>
Translate-URL: https://translate.codeberg.org/projects/readeck/application/de/
Translation: Readeck/Application
2025-12-04 09:41:32 +00:00
Codeberg Translate
3c8ecc1f9f Translated using Weblate (Czech)
Currently translated at 100.0% (533 of 533 strings)

Co-authored-by: Codeberg Translate <translate@codeberg.org>
Co-authored-by: Joedmin <joedmin@joedmin.cz>
Translate-URL: https://translate.codeberg.org/projects/readeck/application/cs/
Translation: Readeck/Application
2025-12-04 09:41:32 +00:00
Olivier Meunier
7d429c3692 Updated changelog 2025-12-04 09:42:17 +01:00
olivier
dce93f046c Merge pull request 'Allow MathML Core elements in bookmark HTML markup' (#974) from mathml-support into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/974
2025-12-04 09:37:53 +01:00
Mislav Marohnić
d2b04aeeb5 Allow MathML Core elements in bookmark HTML markup
Previously, these elements got stripped away by the sanitizer since they were
not explicitly allow-listed.
2025-12-04 09:37:53 +01:00
olivier
8231505670 Merge pull request 'Handle "pt" CSS unit in SVG dimensions' (#977) from svg-pt into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/977
Reviewed-by: olivier <olivier@noreply.codeberg.org>
2025-12-04 09:36:09 +01:00
Mislav Marohnić
62dc344b8b Handle "pt" CSS unit in SVG dimensions 2025-12-04 09:36:09 +01:00
Olivier Meunier
47bd06f6f7 Merge branch 'main' into release 2025-12-04 09:24:42 +01:00
olivier
0b59d76555 Merge pull request 'Dependencies update [2025-11-29]' (#978) from chore/updates into main
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/978
2025-12-04 09:19:47 +01:00
olivier
297eb5e0d9 Merge pull request 'Improved website icon visibility in dark mode' (#982) from fix/972-icons-in-dark-mode into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/982
2025-12-04 09:18:48 +01:00
Olivier Meunier
12825b14d4 Improved website icon visibility in dark mode
Most website icons are made for a white background and become barely
visible on a dark background. This adds a very thin white glow around
icons in dark mode and retains a bit of their color.

Resolves #972
2025-12-04 09:17:11 +01:00
olivier
f8d671600a Merge pull request 'Return an error list when bookmark filters contain errors' (#981) from fix/975-filter-errors into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/981
2025-12-04 09:16:29 +01:00
Readeck Bot
483f4c29f1 Updated Site Config files 2025-12-04 05:01:23 +00:00
Readeck Bot
8b44f8115c Updated JS dependencies 2025-12-04 05:01:22 +00:00
Readeck Bot
18253749f2 Updated Go dependencies 2025-12-04 05:00:57 +00:00
Olivier Meunier
0e05de6f48 Return an error list when bookmark filters contain errors
Filters are retrieved in withBookmarkListSelectDataset but we can check
if there's a template context so we know if we can return an error
straight away in an API route.
In a view, the form is attached to the template context and errors are
already visible on the result.

Also removed the server.Server pointer in apiRouter, it hasn't been
needed for a long time now.

resolves #975
2025-12-03 16:50:09 +01:00
Olivier Meunier
aba28441b7 Missing translation
- i18n on Sending an ebook to an Amazon Kindle
- translations update

Resolves #956
2025-11-27 10:59:25 +01:00
Olivier Meunier
df61e7cf93 Merge branch 'release' 2025-11-27 10:48:25 +01:00
olivier
1f35c493b0 Merge pull request 'Handle paperclip emoji when stripping away heading anchors' (#969) from heading-anchor-paperclip into release
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/969
Reviewed-by: olivier <olivier@noreply.codeberg.org>
2025-11-27 10:47:46 +01:00
Mislav Marohnić
3958b7184e Handle paperclip emoji when stripping away heading anchors
The text of heading anchors is often a single-character glyph or emoji. This
adds the paperclip emoji to the list of anchor icons that are safe to be
stripped away.
2025-11-27 10:47:46 +01:00
olivier
bc024cb95d Merge pull request 'Translations update from Codeberg Translate' (#946) from translate/readeck:weblate-readeck-application into main
Reviewed-on: https://codeberg.org/readeck/readeck/pulls/946
2025-11-27 10:46:55 +01:00
Codeberg Translate
a1ff29b81d Added translation using Weblate (Tatar)
Co-authored-by: γλωσσολαλιά <glossolalia@noreply.codeberg.org>
2025-11-27 09:41:17 +00:00