diff --git a/present/parse.go b/present/parse.go index 83405599d2..4294ea5f9c 100644 --- a/present/parse.go +++ b/present/parse.go @@ -525,6 +525,7 @@ func parseSections(ctx *Context, name, prefix string, lines *Lines, number []int // Command breaks text block. // Section heading breaks text block in markdown. if text[0] == '.' || isSpeakerNote(text) { + lines.back() break } if strings.HasPrefix(text, `\.`) { // Backslash escapes initial period. diff --git a/present/testdata/media.p b/present/testdata/media.p index f11970b793..ffddf9f35f 100644 --- a/present/testdata/media.p +++ b/present/testdata/media.p @@ -2,6 +2,7 @@ Media * +The Gopher .image gopher.jpg _ 100 .caption A gopher. @@ -14,6 +15,7 @@ Media ---
The Gopher