Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Markdown Basics Understanding Markdown Headlines, Paragraphs, and Basic Formatting with Markdown

Stephen Cole
PLUS
Stephen Cole
Courses Plus Student 15,809 Points

Hyphens and the Horizontal Rule

It appears, in my editor (VS Code), that when I use hyphens to make a horizontal rule, it must be preceded by a blank line. Otherwise, it makes text bold. Is this by design?

However, when using asterisks or underscores, this does not seem to be the case.

For example, I will put the words "Three Hyphens" before a line with three hyphens. At the bottom, there are no blank lines that separate the three hyphen characters, the three asterisks, or the three underscores.

Three Hyphens

vs.

Three Hyphens


Three Asterisks


Three Underscores


Also, it appears that, here in the Treehouse, I cannot make things bold and in italics at the same time using Markdown.

2 Answers

Steven Parker
Steven Parker
229,608 Points

Multiple hyphens or equal signs (without a blank line) denote a title.

You can see this discussed in the Markdown Basics page of the official website. So this is by design.

But not being able to create italics and bold and the same time can probably be considered a bug. Bug reporting instructions can be found on the Support page. You might even get a special "Exterminator badge".

Stephen Cole
PLUS
Stephen Cole
Courses Plus Student 15,809 Points

Thanks!

I looked for this behavior in the docs but must not have used search terms that were specific enough.

I've sent a note to support about the bold and italics issue.

Stephen