File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ let context_of_lang = function
218
218
(* * Given the payload of a [%html ...] or [%svg ...] expression,
219
219
converts it to a TyXML expression representing the markup
220
220
contained therein. *)
221
- let markup_to_expr lang loc expr =
221
+ let markup_to_expr ?( simplify = true ) lang loc expr =
222
222
let context = context_of_lang lang in
223
223
224
224
let input_stream, adjust_location = ast_to_stream expr in
@@ -270,7 +270,7 @@ let markup_to_expr lang loc expr =
270
270
in
271
271
272
272
match l with
273
- | [ Val x | Antiquot x ] -> x
273
+ | [ Val x | Antiquot x ] when simplify -> x
274
274
| l -> Ppx_common. list_wrap_value lang loc l
275
275
276
276
let markup_to_expr_with_implementation lang modname loc expr =
Original file line number Diff line number Diff line change 25
25
*)
26
26
27
27
val markup_to_expr :
28
+ ?simplify : bool ->
28
29
Ppx_common .lang ->
29
30
Location .t -> Parsetree .expression list -> Parsetree .expression
30
31
(* * Given the payload of a [%html ...] or [%svg ...] expression,
You can’t perform that action at this time.
0 commit comments