File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,6 @@ let rec internallink ~config ~emph_level ~resolve ?(a = []) (t : InternalLink.t)
101
101
let elt = (elt :> phrasing Html.elt ) in
102
102
[ elt ]
103
103
104
- and internallink_nolink ~emph_level
105
- ~(a : Html_types.span_attrib Html.attrib list ) (t : InternalLink.t ) =
106
- match t with
107
- | Resolved (_ , content ) | Unresolved content ->
108
- [ Html. span ~a (inline_nolink ~emph_level content) ]
109
-
110
104
and inline ~config ?(emph_level = 0 ) ~resolve (l : Inline.t ) :
111
105
phrasing Html. elt list =
112
106
let one (t : Inline.one ) =
@@ -146,8 +140,8 @@ and inline_nolink ?(emph_level = 0) (l : Inline.t) :
146
140
| Styled (style , c ) ->
147
141
let emph_level, app_style = styled style ~emph_level in
148
142
[ app_style @@ inline_nolink ~emph_level c ]
149
- | Link ( _ , c ) -> inline_nolink ~emph_level c
150
- | InternalLink c -> internallink_nolink ~emph_level ~a c
143
+ | Link _ -> assert false
144
+ | InternalLink _ -> assert false
151
145
| Source c -> source (inline_nolink ~emph_level ) ~a c
152
146
| Math s -> [ inline_math s ]
153
147
| Raw_markup r -> raw_markup r
You can’t perform that action at this time.
0 commit comments