@@ -93,7 +93,7 @@ function term(io::AnnotIO, md::Header{l}, columns) where l
9393 underline = _header_underlines[l]
9494 pre = ' ' ^ margin
9595 local line_width
96- with_output_annotations (io, :face => face) do io
96+ with_output_annotations (io, :face => getface ( face) ) do io
9797 headline = annotprint (terminline, md. text)
9898 lines = wraplines (headline, columns - 4 margin)
9999 for (i, line) in enumerate (lines)
@@ -111,7 +111,7 @@ function term(io::AnnotIO, md::Header{l}, columns) where l
111111 header_width = max (0 , line_width)
112112 if underline != ' ' && header_width > 0
113113 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) )
115115 end
116116end
117117
@@ -178,11 +178,11 @@ function terminline(io::IO, md::AbstractString)
178178end
179179
180180function 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 ) )
182182end
183183
184184function 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 ) )
186186end
187187
188188function terminline (io:: IO , md:: LineBreak )
199199
200200function terminline (io:: AnnotIO , md:: Link )
201201 annots = if occursin (r" ^(https?|file)://" , md. url)
202- (:face => :markdown_link , :link => md. url)
202+ (:face => getface ( :markdown_link ) , :link => md. url)
203203 else
204- (:face => :markdown_link ,)
204+ (:face => getface ( :markdown_link ) ,)
205205 end
206206 with_output_annotations (io -> terminline (io, md. text), io, annots... )
207207end
0 commit comments