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.

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

Stephen Cole
PLUS
Stephen Cole
Courses Plus Student 15,592 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
218,692 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,592 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