diff --git a/app/com/gitpitch/models/MarkdownModel.java b/app/com/gitpitch/models/MarkdownModel.java index 08f5e34..186c13b 100644 --- a/app/com/gitpitch/models/MarkdownModel.java +++ b/app/com/gitpitch/models/MarkdownModel.java @@ -124,13 +124,15 @@ public class MarkdownModel implements Markdown { YAMLOptions yOpts, String gitRawBase) { - /* - * Clean md fragment before processing. - */ - md = (md != null) ? md.trim() : md; - if (slideDelimFound(md)) { + /* + * Clean only delimiter fragments of whitespace + * noise before processing. Preserve end-of-line + * characters on all non-delimiter fragments. + */ + md = md.trim(); + if (videoDelimFound(md)) { /*