Skip to content

Commit d9cf949

Browse files
committed
Mark Compat.Markdown from #492 for deprecation
1 parent 989e85c commit d9cf949

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ Currently, the `@compat` macro supports the following syntaxes:
8181
* `using Compat.UUIDs` is provided on versions older than 0.7, where this library is
8282
not yet part of the standard library ([#25819]).
8383

84-
* `using Compat.Markdown` is provided on versions older than 0.7, where this library is
85-
not yet part of the standard library ([#25738]).
86-
8784
* `using Compat.Statistics` is provided on versions older than 0.7, where this library is
8885
not yet part of the standard library ([#27834]).
8986

src/Compat.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,11 @@ import Printf
2727
import LinearAlgebra
2828
import SparseArrays
2929
import Random
30+
import Markdown
3031

3132

3233
include("compatmacro.jl")
3334

34-
if VERSION < v"0.7.0-DEV.3589"
35-
const Markdown = Base.Markdown
36-
else
37-
import Markdown
38-
end
39-
4035
if VERSION < v"0.7.0-DEV.2609"
4136
@eval module SuiteSparse
4237
if Base.USE_GPL_LIBS

test/old.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ Random.seed!(rng, 1)
133133
@test rand(rng) 0.23603334566204692
134134
@test 0 < rand(Random.GLOBAL_RNG, Random.RangeGenerator(1:3)) < 4
135135

136+
# 0.7.0-DEV.3589
137+
import Compat.Markdown
138+
@test isa(Markdown.parse("foo"), Markdown.MD)
139+
136140

137141
# tests of removed functionality (i.e. justs tests Base)
138142

test/runtests.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,6 @@ module TestUUIDs
483483
@test uuid4() isa UUID
484484
end
485485

486-
# 0.7.0-DEV.3589
487-
import Compat.Markdown
488-
@test isa(Markdown.parse("foo"), Markdown.MD)
489-
490486
@test repr("text/plain", "string") == "\"string\"" #25990
491487
@test showable("text/plain", 3.14159) #26089
492488

0 commit comments

Comments
 (0)