aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/asciideck_parser.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/asciideck_parser.erl b/src/asciideck_parser.erl
index 9755d29..8016395 100644
--- a/src/asciideck_parser.erl
+++ b/src/asciideck_parser.erl
@@ -214,7 +214,8 @@ p1_text(Lines=[{LN, Line}|Tail], AST, St) ->
Size = byte_size(Text0) - 1,
<< Text:Size/binary, _ >> = Text0,
{Tail1, Glob} = p1_ll_glob([{LN, Text}|Tail]),
- p1(Tail1, [{label, Label, p1(Glob, [], St), ann(LN, St)}|AST], St);
+ %% Text on the same line is necessarily a paragraph I believe.
+ p1_p(Tail1, [{label, Label, p1(Glob, [], St), ann(LN, St)}|AST], St, LN, []);
%% Not a labeled list.
_ ->
p1_maybe_p(Lines, AST, St)