update earmark/earmark_parser
Environment
- Installation type (OTP or From Source): Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.5.50-2-gb367f222-develop
- Elixir version (
elixir -v
for from source installations, N/A for OTP): 1.14.2 - Operating system: Ubuntu 22.04 amd64
- PostgreSQL version (
psql -V
): 15.1
Bug description
Discovered by accident: EarmarkParser 1.4.22 and below don't handle ~
in URLs properly.
mix.exs has earmark 1.4.15 (1.4.34 came out in November 2022), and mix.lock has earmark_parser 1.4.17.
With EarmarkParser 1.4.23:
iex(1)> EarmarkParser.as_ast("have you tried http://www.splode.com/~friedman/software/emacs-lisp/src/diacriticalize.el")
{:ok,
[
{"p", [],
[
"have you tried ",
{"a",
[
{"href",
"http://www.splode.com/~friedman/software/emacs-lisp/src/diacriticalize.el"}
],
["http://www.splode.com/~friedman/software/emacs-lisp/src/diacriticalize.el"],
%{}}
], %{}}
], []}
iex(2)>
1.4.17:
{:ok,
[
{"p", [],
[
"have you tried ",
{"a", [{"href", "http://www.splode.com/"}], ["http://www.splode.com/"],
%{}},
"~friedman/software/emacs-lisp/src/diacriticalize.el"
], %{}}
], []}