Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4430

Closed
Open
Created Jun 26, 2013 by Administrator@rootOwner

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:

gfm

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
Assignee
Assign to
Time tracking