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
  • #7923

Closed
Open
Created Sep 30, 2014 by Administrator@rootOwner

Gitlab Flavored Markdown Annoying Formatting Error in Wiki

Created by: demisx

If I use tripple backticks for formatting code as part of the ordered list, the code snippet is not formatted properly if it is in the last bullet and this is the only code snippet in the list (it just gets inserted highlighted inline):

  1. Bullet 1
  2. Bullet 2
  3. Bullet 3 bash $ cd /tmp $ git clone some_repo

I always need to follow it with a 4th bullet without the snippet to make it show up correctly, e.g.:

  1. Bullet 1

  2. Bullet 2

  3. Bullet 3

    $ cd /tmp
    $ git clone some_repo
  4. Bullet 4

    Very annoying and hard to remember when writing wiki pages and sometimes there is really no need to have this bullet 4. How can I make the last bullet in a list to properly show the indented code snippet?

Assignee
Assign to
Time tracking