From 263c1a7b9fe13df1fc910097ee272a7eeebf04c8 Mon Sep 17 00:00:00 2001 From: Alexander Plavin Date: Tue, 7 Jan 2025 17:43:53 -0500 Subject: [PATCH] remove Markdown dep --- Project.toml | 2 -- src/Accessors.jl | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index e2a31007..adec8dce 100644 --- a/Project.toml +++ b/Project.toml @@ -10,7 +10,6 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" InverseFunctions = "3587e190-3f89-42d0-90ee-14403ec27112" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09" -Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a" Requires = "ae029012-a4dd-5104-9daa-d747884805df" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" @@ -44,7 +43,6 @@ IntervalSets = "0.7" InverseFunctions = "0.1.5" LinearAlgebra = "1" MacroTools = "0.5" -Markdown = "1" Requires = "0.5, 1.0" StaticArrays = "1" StructArrays = "0.6, 0.7" diff --git a/src/Accessors.jl b/src/Accessors.jl index c41208b3..6beff7a6 100644 --- a/src/Accessors.jl +++ b/src/Accessors.jl @@ -2,7 +2,6 @@ module Accessors using MacroTools using MacroTools: isstructdef, splitstructdef, postwalk using InverseFunctions -using Markdown: Markdown, @md_str, term if !isdefined(Base, :get_extension) using Requires @@ -30,7 +29,7 @@ function __init__() Base.Experimental.register_error_hint(MethodError) do io, exc, argtypes, kwargs if exc.f === insert && argtypes[2] <: Accessors.DynamicIndexLens println(io) - term(io, md""" + print(io, """ `insert` with a `DynamicIndexLens` is not supported, this can happen when you write code such as `@insert a[end] = 1` or `@insert a[begin] = 1` since `end` and `begin` are functions of `a`. The reason we do not support these with `insert` is that