Markdown is one of the best tools for taking `notes` and creating `readme` files.Īdd Inline Code Add Code Block Syntax HighlightingĪdd tabs or 4 spaces and place your code to render it as a code block. Look at the word notes and readme which was rendered as inline code. The below example demonstrates how to create inline code. You can also create nested block quotes too by adding two greater than symbols (>). This way you can create a line break between each line within the same block. Leave the alternate lines empty prefixed by greater than a symbol. This way each line will not be rendered in a single line. You can use line return by leaving two spaces at the end of each line. Both the lines are rendered in the same line. See how the below block quote is rendered. Use Greater than a symbol (>) for blockquote. I am just striking the word ~~Howdy~~.Īdd Strike-Through to Lines How to Add a Blockquote Surround whatever you need to strike through between double tildes (~~). To strike anything you have to use a double tilde. Make Text Italic How to Add a Strike-Through to Lines _Making this line to be italicized using underscore._ *Making this line to be italicized using asterisks.* To make words or lines ITALICS, surround the word or lines between single asterisks (*) or single underscore (_). _Making this sentence bold using double underscore._īold a Line or Text How to Make a Text Italics **Making this sentence bold using double asterisks.** To make word or lines BOLD, surround the word or lines between double asterisks (**) or double underscore (_). * * *Īdd Horizontal Lines How to Make a Text Bold The horizontal rule can be created by placing three or more asterisks (*), hyphens(-), or underscores(_) on a single line. Hardline Break How to Add Horizontal Lines Hardline breaks can be created by inserting an empty line between each line. This way markdown will render each line to be separate lines. Soft line breaks can be created by adding two spaces at the end of the line. Normally when you type something in separate lines one after another markdown will render it as a single line. Īdd Comments to Editor How to Render Text as a Single Line This will not be rendered by the markdown engine. Headings Alignments How to Add Comments to Markdown EditorĬomments are a way to document certain things for a better understanding of code/Documents. You can embed HTML/CSS tags within markdown to achieve alignment. By default, headings are rendered with left alignment. But the sad story is alignment is not supported by default in markdown. Sometimes you may wish to align the heading towards the center. NOTE: H1 and H2 will have an underline style by default. Higher the hash value lower the size of the heading. To create a heading use the Hash (#) symbol followed by a space and name of the heading. There are 6 levels of heading supported in markdown. To work with markdown the file should be saved with. Some editors like Atom and Vscode come with markdown support and for some editors, we need to install a markdown plugin. I am using VScode to demonstrate this but you can choose any Linux editor that is suitable for you. Let’s jump in and explore the syntax for GFM and how to use it in different cases. There are a lot of additional features supported in GFM like tables, code fencing, etc. But in this article, our focus will be mainly on Github Flavored Markdown (GFM). Over time there are many flavors of markdown created. The purpose of markdown is to make life easy when we are writing on the internet. Markdown is a formatting language that is created for the web.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |