From the course: Learning Markdown: Formatting Text without the Complexity

Inline content

- [Narrator] Let's start by talking about the most basic type of styles that you can do with Markdown and that's regular inline styles. Whenever I write a block post, article, or even a prompt like this, Markdown is great because the tools that understand it will convert the special characters to formatting. Plus, tools like chat GPT understand the meaning of any special characters you insert. So, making something bold or italics communicates special emphasis. Now you can see the text right here and there's a few things going on already. Notice that Markdown respects multiple carriage returns like this and arranges them as new paragraphs. But notice that if I add extra spaces between words like this, it doesn't make a difference. It doesn't see that as formatting. One thing you can do to emphasize things in Markdown is use special characters to denote different types of emphasis. So, if I use just one special kind of character, like an asterisk right here, you can see that it shows up as regular emphasis. If I use two of these, it shows up as bold. And you can use either asterisks or underscores. If you just use one pair of underscores, you'll see that it shows up as italics or emphasis. And two will show up as bold. So, it doesn't matter what you use as long as you're consistent. I happen to use single underscores for italics and double stars for emphasis. If you try to add an asterisk at the beginning, to Markdown, that means that you want to start a list, so it shows up like this. Another way to emphasize text is to use tick marks that will get placed into code tags and the formatting will change so that it shows up in a different font. It looks like a programming typeface. If you do need to type any sort of literal characters, then you can type in a forward slash. And now you can see that the tick mark shows up properly. Now you would probably want to put another one right here although sometimes, it won't show up. As you can see, some of the Markdown formatters would get a little bit confused. Markdown is also pretty smart about any tags that you want to use in HTML. We'll talk a little more about that later, but instead of these tick marks, you can use a literal code tag here and we'll close that up over here. And that'll work in the same manner. Sometimes, that's a little bit more convenient to do. In the same way, you can use bold or italic tags and that would work in the same way. Markdown is a great language because of its flexibility and its ease of use. By using some simple characters, you can make it display inline content in different ways.

Contents