@@ -93,7 +93,7 @@ function term(io::AnnotIO, md::Header{l}, columns) where l
93
93
underline = _header_underlines[l]
94
94
pre = ' ' ^ margin
95
95
local line_width
96
- with_output_annotations (io, :face => face) do io
96
+ with_output_annotations (io, :face => getface ( face) ) do io
97
97
headline = annotprint (terminline, md. text)
98
98
lines = wraplines (headline, columns - 4 margin)
99
99
for (i, line) in enumerate (lines)
@@ -111,7 +111,7 @@ function term(io::AnnotIO, md::Header{l}, columns) where l
111
111
header_width = max (0 , line_width)
112
112
if underline != ' ' && header_width > 0
113
113
print (io, ' \n ' , ' ' ^ (margin))
114
- with_output_annotations (io -> print (io, underline^ header_width), io, :face => face)
114
+ with_output_annotations (io -> print (io, underline^ header_width), io, :face => getface ( face) )
115
115
end
116
116
end
117
117
@@ -178,11 +178,11 @@ function terminline(io::IO, md::AbstractString)
178
178
end
179
179
180
180
function terminline (io:: AnnotIO , md:: Bold )
181
- with_output_annotations (io -> terminline (io, md. text), io, :face => :bold )
181
+ with_output_annotations (io -> terminline (io, md. text), io, :face => getface ( :bold ) )
182
182
end
183
183
184
184
function terminline (io:: AnnotIO , md:: Italic )
185
- with_output_annotations (io -> terminline (io, md. text), io, :face => :italic )
185
+ with_output_annotations (io -> terminline (io, md. text), io, :face => getface ( :italic ) )
186
186
end
187
187
188
188
function terminline (io:: IO , md:: LineBreak )
199
199
200
200
function terminline (io:: AnnotIO , md:: Link )
201
201
annots = if occursin (r" ^(https?|file)://" , md. url)
202
- (:face => :markdown_link , :link => md. url)
202
+ (:face => getface ( :markdown_link ) , :link => md. url)
203
203
else
204
- (:face => :markdown_link ,)
204
+ (:face => getface ( :markdown_link ) ,)
205
205
end
206
206
with_output_annotations (io -> terminline (io, md. text), io, annots... )
207
207
end
0 commit comments