Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Nick Nish
Nick Nish
7,304 Points

Correct Markdown syntax for Ordered List & Suggestions

Hey guys,

I can't figure out what the correct Markdown syntax for ordered lists are. Often times when I try, it will collapse and instead of being in nice rows, it will all be one single, paragraph.

Edit: Nevermind, in making this post, I learned the correct syntax:

  1. Make sure you have [Return] twice to start a new paragraph
  2. Make sure you have a [space] in between the number and list item

Also, I'm really liking Treehouse's new features. Forums enabled by what badges you've earned is really interesting. Other suggestions:

  1. Make workspaces shareable (I know you guys are working on it ;) Markdown is incredibly helpful in the forums, but sometimes sharing all of a project's code (especially to lint small details like missing semicolons) can be pretty tedious.
  2. Preview a way to see what your post will look like before it is published. I edited the same post 4-5 times to try to get the ordered list to work, and in between I had to add backticks to differentiate text all over again.
  3. A way to go directly to the challenge that someone might be referring to. To help someone in the forums for a specific question, he forgot to mention what exactly the question was asking. It took me 3-4 minutes to go find the exact problem they needed to solve (Library>HTML>CMD+F>Solve a few challenges), but it was still faster than asking and waiting for a response.

Thanks guys! Let me know if I can help by giving more feedback or with general questions.

4 Answers

I'd tried ordered lists in an earlier post and could not get it to work.

My post:

Treehouse forums ordered list syntax

Outputted to:

Treehouse forums ordered list syntax

Not sure what I'm doing wrong in that but I'd agree with some of your other suggestions. Thanks for posting this.

Nick Nish
Nick Nish
7,304 Points

Hey Dustin Matlock I think the [return] space between each order item screwed up the output. Testing this now:

  1. First with spaces.

  2. Lots of

  3. Space! ^^


And now..

  1. This one
  2. Is without
  3. Space inbetween items
Nick Nish
Nick Nish
7,304 Points
1. First with spaces.

2. Lots of

3. Space! ^^

And now..

1. This one
2. Is without
3. Space inbetween items

This is what I posted, the output is above. Made me look like a fool!

I don't understand it either but you obviously did it before. I have a support request for this. Maybe there's something missing or possibly a bug we don't know about.

James Barnett
James Barnett
39,199 Points

Those are all great ideas, while Treehouse is working on these here are some things we can do on the forum to help each other out.

Nick Nish
Nick Nish
7,304 Points

Thanks James Barnett, I already actively use CodePen and I bookmarked dillinger.io.

To clear up #3:

Content tags are great for referring to other questions posted about the same video but there isn't a way to go directly to the challenge or video they're referring to. Let me illustrate an example:

  1. You want to help someone who is struggling with a code challenge. They didn't explain their question well, but you don't want to ask for them to explain more clearly and wait. You know they're inside a CSS course and that their particular challenge refers to the Adaptive Layouts with Media Queries. How do we find out exactly what they need to solve and they code they need?

  2. We see a button below the question with the familiar Play button so we click on it thinking it will take us to the video/challenge, but it takes us back to the forum and adds a filter. It's logical to think that because the content tag button looks like the video button, it will cause the same behavior. Look below. Imgur

  3. Despite this setback, we decide to find it ourselves. We click Library.

    1. First we try searching on the right, "Adaptive Layouts". No go, so we click on the CSS filter.
    2. Then we guess, trying to find the right course. Each one opening up the panes so we can search within them, using CMD+F.
    3. Finally, we find the exact challenge we were looking for. We have our answer!
  4. Navigate back, and answer the question.

Sorry for how long this was – I really want to illustrate how difficult this process can be, and how confusing a simple UI element like that play button can be. Let me know if I'm being extraordinarily nitpicky (after all I spent a good 15 minutes on this).

I agree — the tags do seem to give the idea that you may be taken to a video or challenge. There is however something that is correct most times.

Treehouse Related Forum Content

Nick Nish
Nick Nish
7,304 Points

Not sure what's going on with the Markdown editor, but take a look at this screenshot of [dillinger.io(http://www.dillinger.io).

Imgur Imgur

James Barnett
James Barnett
39,199 Points

Nick Nish -

> Not sure what's going on with the Markdown editor, but take a look at this screenshot

Looks fine to me, can you be more specific. Maybe annotate your screenshot.

Nick Nish
Nick Nish
7,304 Points

James Barnett the outputs are starkly different. It's a little tough to see because the second screen is so large, but the same Markdown was an Ordered list in Dillinger.io and an Unordered list in Treehouse, giving my original concern validity.

That's most likely the bug we were talking about earlier. I have a support request open, so if anyone is interested I can provide an update on that. In addition to the ordered list issue, I'm also having trouble getting breakpoints to work, say, between headings.

It'd also be nice to see block/quoted material have some sort of styling.

Dave McFarland wrote Posting Code to the Forum. Maybe he could chime in on how to get it working.