Yanick Nedderhoff
Yanick Nedderhoff

Reputation: 1234

Lists without bullets points in Markdown

I want to create a list in Markdown, but without bullet points. Is that possible?

The only recommended ways I found so far are using HTML, which I want to avoid.

Upvotes: 40

Views: 29844

Answers (6)

Myeongsik Joo
Myeongsik Joo

Reputation: 609

How about using pre tag?

<pre>
first 
second
third 
</pre>

rendered output is below

first 
second
third 

Upvotes: 0

Nathan5x
Nathan5x

Reputation: 199

You could simply put the items in new lines with every line ends with

Example:

item 1 <br/>
item 2 <br/>
item 3 <br/>
item 4 <br/>

Upvotes: 1

psygo
psygo

Reputation: 7573

I know this isn't really specific to Github, but, if that were the case, you could then leverage the native CSS styling there:

<div id="user-content-toc">
  <ul>
    ...
  </ul>
</div>

Upvotes: 1

schuhwerk
schuhwerk

Reputation: 462

This might sound obvious but... you could understand a list as "lines separated by line breaks" (when you think about the output, not the markup).

First item  (<-- two spaces)  
Second item  

This will render to:

First item
Second item

This looks like a list with no bullet points :)
A more beautiful example.

Upvotes: 29

Rehmat
Rehmat

Reputation: 2299

Like @mb21 specified, here is the CSS if someone needs:

ul {
    list-style-type: none;
    margin-left: 40px;
}

Upvotes: 6

mb21
mb21

Reputation: 39227

No, with pure markdown this is not possible.

Think of Markdown as a simpler syntax for HTML. To change the styling you'll need to add a CSS to the generated HTML.

Upvotes: 16

Related Questions