Skip to content

Commit

Permalink
Fixed a bug where double line breaks in the markdown translation was …
Browse files Browse the repository at this point in the history
…not being handled properly
  • Loading branch information
facundoy committed Dec 15, 2024
1 parent 5092383 commit dd717ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/haz3lweb/view/ExplainThis.re
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ let mk_translation = (~inject, text: string): (list(Node.t), ColorSteps.t) => {
List.fold_left(
((msg, mapping), elem) => {
switch (elem) {
| Omd.Paragraph(_, d) => translate_inline(d, msg, mapping, ~inject)
| Omd.Paragraph(_, d) =>
let (n, _) = translate_inline(d, [], mapping, ~inject);
(List.append(msg, [Node.p(n)]), mapping);
| Omd.List(_, _, _, items) =>
let (bullets, mapping) =
List.fold_left(
Expand Down

0 comments on commit dd717ae

Please sign in to comment.