From e24cc257401ba487a394327e591033bf326be6c4 Mon Sep 17 00:00:00 2001 From: Robert Dober Date: Fri, 3 Mar 2023 21:39:59 +0100 Subject: [PATCH] Update Earmark (#1671) It contains security fixes. Albeit they are unlikely to apply to ExDoc, it doesn't hurt to update. --- mix.exs | 2 +- test/ex_doc/doc_ast_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index 98498a4cd..95a9fb168 100644 --- a/mix.exs +++ b/mix.exs @@ -31,7 +31,7 @@ defmodule ExDoc.Mixfile do defp deps do [ - {:earmark_parser, "~> 1.4.19"}, + {:earmark_parser, "~> 1.4.31"}, {:makeup_elixir, "~> 0.14"}, {:makeup_erlang, "~> 0.1"}, {:makeup_html, ">= 0.0.0", only: :dev}, diff --git a/test/ex_doc/doc_ast_test.exs b/test/ex_doc/doc_ast_test.exs index de7e764a1..67064d9c4 100644 --- a/test/ex_doc/doc_ast_test.exs +++ b/test/ex_doc/doc_ast_test.exs @@ -67,7 +67,7 @@ defmodule ExDoc.DocASTTest do """ ast = DocAST.parse!(markdown, "text/markdown") - assert DocAST.to_string(ast) == ~s{} + assert DocAST.to_string(ast) == ~s{\n} end test "with fun" do