gitlab-flavored markdown removes line breaks from list items
Created by: jbohren
Summary:
In a paragraph of text, gitlab-flavored markdown renders line breaks in the raw file as line breaks in the HTML, but line breaks in bulletted list items are ignored.
Steps to reproduce:
Add the following to a .md file in a repository in gitlab, and view the file with the gitlab web interface:
A list:
* this line is long and it has no breaks no breaks no breaks no breaks no breaks no breaks
* this line is long and it has a break a break a break a break a break a break
HERE
* this line is short and has no breaks
* this line is short and has a break
HERE
* another line
* another line
* another line, nested, and with a break
HERE
* yet another line
Expected behavior:
The rendered text should break the lines (all "HERE"s should be on separate lines) to be consistent with the behavior of line breaks in paragraphs when rendered with gitlab-flavored markdown.
Observed behavior:
The line breaks are removed from the list items:
Gitlab Version: 5.3.0
Gitlab sha1: 148eade9
Application Check:
Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 1.4.0 ? ... OK (1.4.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ...
>>REDACTED<<
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Checking Sidekiq ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
Projects have satellites? ...
>>REDACTED<<
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... no
Try fixing it:
Update your git to a version >= 1.7.10 from 1.7.9
Please fix the error above and rerun the checks.
Checking GitLab ... Finished
Setup Description:
Checking Environment ...
System information
System: Ubuntu 12.04
Current User: git
Using RVM: no
Ruby Version: 1.9.3p194
Gem Version: 1.8.23
Bundler Version:1.2.2
Rake Version: 10.0.4
GitLab information
Version: 5.3.0
Revision: 148eade
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: >>REDACTED<<
HTTP Clone URL: >>REDACTED<<
SSH Clone URL: >>REDACTED<<
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: google_oauth2
GitLab Shell
Version: 1.4.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git