@@ -2,21 +2,25 @@ open Cmarkit
2
2
3
3
let of_cmarkit resolve_images =
4
4
let block m = function
5
- | Block. Block_quote ((bq , (( attrs , _ ) as a )), meta ) ->
5
+ | Block. Block_quote ((bq , (attrs , meta2 )), meta ) ->
6
6
if Attributes. mem " blockquote" attrs then Mapper. default
7
7
else
8
8
let b = Block.Block_quote. block bq in
9
9
let b =
10
10
match Mapper. map_block m b with None -> Block. empty | Some b -> b
11
11
in
12
- Mapper. ret (Ast. Div ((b, a), meta))
13
- | Block. Code_block (((cb , _ ), _ ) as cbm ) ->
12
+ let attrs = Mapper. map_attrs m attrs in
13
+ Mapper. ret (Ast. Div ((b, (attrs, meta2)), meta))
14
+ | Block. Code_block ((cb , (attrs , meta )), meta2 ) ->
14
15
let ret =
15
16
match Block.Code_block. info_string cb with
16
17
| None -> Mapper. default
17
18
| Some (info , _ ) -> (
18
19
match Block.Code_block. language_of_info_string info with
19
- | Some ("slip-script" , _ ) -> Mapper. ret (Ast. SlipScript cbm)
20
+ | Some ("slip-script" , _ ) ->
21
+ Mapper. ret
22
+ (Ast. SlipScript
23
+ ((cb, (Mapper. map_attrs m attrs, meta)), meta2))
20
24
| _ -> Mapper. default)
21
25
in
22
26
ret
0 commit comments