@@ -76,13 +76,6 @@ and inline_element_list_to_inlines inlines =
76
76
let inlines = List. map ~f: inline_element_to_inline inlines in
77
77
Inline. Inlines (inlines, Meta. none)
78
78
79
- (* * Hack: Because of bug described here:
80
- https://github.com/dbuenzli/cmarkit/issues/7 , we use only first block line.
81
- It contains whole string, which seems good enough for our use cases. To be
82
- removed when: https://github.com/dbuenzli/cmarkit/pull/8 gets merged and
83
- released *)
84
- let block_lines_of_string str = [ List. hd (Block_line. list_of_string str) ]
85
-
86
79
let rec nestable_block_element_to_block
87
80
(nestable :
88
81
Odoc_parser.Ast.nestable_block_element Odoc_parser.Loc.with_location ) =
@@ -140,18 +133,18 @@ let rec nestable_block_element_to_block
140
133
| Some ({ value = lang ; location = lang_log } , _env ) ->
141
134
Some (lang, loc_to_meta lang_log)
142
135
in
143
- let block_line = block_lines_of_string code in
136
+ let block_line = Block_line. list_of_string code in
144
137
let code_block = Block.Code_block. make ?info_string block_line in
145
138
let meta = loc_to_meta location in
146
139
Block. Code_block (code_block, meta)
147
140
| Odoc_parser.Loc. { value = `Verbatim code ; location } ->
148
141
let info_string = Some (" verb" , Meta. none) in
149
- let block_line = block_lines_of_string code in
142
+ let block_line = Block_line. list_of_string code in
150
143
let code_block = Block.Code_block. make ?info_string block_line in
151
144
let meta = loc_to_meta location in
152
145
Block. Code_block (code_block, meta)
153
146
| Odoc_parser.Loc. { value = `Math_block code ; location } ->
154
- let block_line = block_lines_of_string code in
147
+ let block_line = Block_line. list_of_string code in
155
148
let code_block = Block.Code_block. make block_line in
156
149
let meta = loc_to_meta location in
157
150
Block. Ext_math_block (code_block, meta)
0 commit comments