Skip to content

Commit 065b20f

Browse files
committed
fixup! Revert "Highlight julia-repl code in Markdown specially (#54423)"
1 parent d6a017c commit 065b20f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

stdlib/Markdown/src/Common/block.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ end
3939
# Headers
4040
# –––––––
4141

42-
mutable struct Header{level}
42+
mutable struct Header{level} <: MarkdownElement
4343
text
4444
end
4545

stdlib/Markdown/src/Common/inline.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Emphasis
55
# ––––––––
66

7-
mutable struct Italic
7+
mutable struct Italic <: MarkdownElement
88
text
99
end
1010

@@ -20,7 +20,7 @@ function underscore_italic(stream::IO, md::MD)
2020
return result === nothing ? nothing : Italic(parseinline(result, md))
2121
end
2222

23-
mutable struct Bold
23+
mutable struct Bold <: MarkdownElement
2424
text
2525
end
2626

@@ -66,7 +66,7 @@ end
6666
# Images & Links
6767
# ––––––––––––––
6868

69-
mutable struct Image
69+
mutable struct Image <: MarkdownElement
7070
url::String
7171
alt::String
7272
end
@@ -85,7 +85,7 @@ function image(stream::IO, md::MD)
8585
end
8686
end
8787

88-
mutable struct Link
88+
mutable struct Link <: MarkdownElement
8989
text
9090
url::String
9191
end
@@ -156,7 +156,7 @@ end
156156
# Punctuation
157157
# –––––––––––
158158

159-
mutable struct LineBreak end
159+
mutable struct LineBreak <: MarkdownElement end
160160

161161
@trigger '\\' ->
162162
function linebreak(stream::IO, md::MD)

0 commit comments

Comments
 (0)