Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 645
    • Issues 645
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 88
    • Merge requests 88
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PleromaPleroma
  • pleromapleroma
  • Issues
  • #3033
Closed
Open
Issue created Dec 25, 2022 by faried nawaz@fariedContributor

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"
    ], %{}}
 ], []}
Assignee
Assign to
Time tracking