File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
stdlib/Markdown/src/Common Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 39
39
# Headers
40
40
# –––––––
41
41
42
- mutable struct Header{level}
42
+ mutable struct Header{level} <: MarkdownElement
43
43
text
44
44
end
45
45
Original file line number Diff line number Diff line change 4
4
# Emphasis
5
5
# ––––––––
6
6
7
- mutable struct Italic
7
+ mutable struct Italic <: MarkdownElement
8
8
text
9
9
end
10
10
@@ -20,7 +20,7 @@ function underscore_italic(stream::IO, md::MD)
20
20
return result === nothing ? nothing : Italic (parseinline (result, md))
21
21
end
22
22
23
- mutable struct Bold
23
+ mutable struct Bold <: MarkdownElement
24
24
text
25
25
end
26
26
66
66
# Images & Links
67
67
# ––––––––––––––
68
68
69
- mutable struct Image
69
+ mutable struct Image <: MarkdownElement
70
70
url:: String
71
71
alt:: String
72
72
end
@@ -85,7 +85,7 @@ function image(stream::IO, md::MD)
85
85
end
86
86
end
87
87
88
- mutable struct Link
88
+ mutable struct Link <: MarkdownElement
89
89
text
90
90
url:: String
91
91
end
156
156
# Punctuation
157
157
# –––––––––––
158
158
159
- mutable struct LineBreak end
159
+ mutable struct LineBreak <: MarkdownElement end
160
160
161
161
@trigger ' \\ ' ->
162
162
function linebreak (stream:: IO , md:: MD )
You can’t perform that action at this time.
0 commit comments