918

On GitHub, several projects have README.md files. It seems like a simple format file to express text and pictures.

I guess there is an editor or syntax explanation somewhere.

Where can I find an introduction to .md files?

entpnerd
  • 8,063
  • 5
  • 36
  • 60
Lai Yu-Hsuan
  • 25,828
  • 23
  • 91
  • 156
  • 39
    I guess this is evidence in favor of using the `.markdown` extension instead, though it's so awfully long... – endolith May 22 '12 at 19:30
  • 7
    Here is a link that may help you -> [.MD File Extension](http://www.fileinfo.com/extension/md) – Vipin Kr. Singh Sep 21 '12 at 16:39
  • 2
    User can try [MarkView](https://chrome.google.com/webstore/detail/markview/iaddkimmopgchbbnmfmdcophmlnghkim), a Chrome extension for editing and viewing markdown file inside the browser. – swcool Jan 20 '14 at 06:48
  • 2
    [MarkPad](http://code52.org/DownmarkerWPF/ "MarkPad") is a nice application for MarkDown editing in Windows. It presents you with the preview of the edits. – skjoshi Aug 31 '13 at 20:23
  • Xcode can be used to view/edit/read these files. – Anoop Vaidya Apr 28 '14 at 14:28
  • 1
    Full guide to help you start with `markdown`: http://blog.wax-o.com/2014/04/tutorial-short-guide-to-start-with-markdown/. You should try to write markdown with a way to live visualizing the result (with an application like http://mouapp.com/). Did you know that stackoverflow post and comment syntax is based on markdown ? :) http://stackoverflow.com/editing-help – fabien Jul 04 '14 at 10:07

16 Answers16

764

Markdown is a plain-text file format. The extensions .md and .markdown are just text files written in Markdown syntax. If you have a Readme.md in your repo, GitHub will show the contents on the home page of your repo. Read the documentation:

You can edit the Readme.md file in GitHub itself. Click on Readme.md, you will find an edit button. You can preview your changes and even commit them from there.

Since it is a text file, Notepad or Notepad++ (Windows), TextEdit (Mac) or any other text editor can be used to edit and modify it. Specialized editors exist that automatically parse the markdown as you type it and generate a preview, while others apply various syntax coloring and decorations to the displayed text. In both cases though, the saved file is still a readable text file.

If you want to create an md file with preview and if you prefer not to install any special editors, you can use online editors like dillinger.io and stackedit.io. They provide live preview. You can also export your files to Google Drive or Dropbox.

Josh Habdas
  • 6,370
  • 2
  • 53
  • 55
Kien Truong
  • 10,686
  • 2
  • 26
  • 34
  • 30
    I found Github's [basic explanation](https://help.github.com/articles/markdown-basics) very useful as a quick introduction too. – Voo Mar 28 '14 at 19:03
  • 2
    On Windows you might want to use WordPad to make use of the formatting for an easier read. – G O'Rilla Nov 08 '14 at 16:21
  • 4
    @GO'Rilla, IMHO avoid WordPad like the plague unless writing little notes to yourself that you will never share with anyone. What it adds to the .txt file can wreak havoc on other editors (vim, Notepad++, etc). Much better to work in plain text when dealing with .txt and use a word processor or Acrobat for non .txt textual files like .doc and .pdf. – labyrinth Mar 24 '15 at 20:56
  • 1
    can we add images or through link in .md file... is it possible? – Raphael Jan 22 '16 at 04:54
  • 1
    @user1645290 Yes, it's possible. [see](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#images) – B-GangsteR Nov 28 '16 at 23:44
  • Under which scenarios should this format be used? I know you can use it if you have the intention of using the information in it in a web page. I had the intention of using it for a simple note, something not really important about the (Git) repo, but good to have at hand and to know, just in case. Should I use .md in a case like that? – carloswm85 Oct 13 '20 at 14:48
88

If you are looking for an editor, I suggest you use http://dillinger.io/. It is a simple browser-based text editor that can render Markdown on the fly.

However, if you prefer an app, and you are using OS X, you could try Mou. It is quite good and full of examples.

sirLisko
  • 1,314
  • 10
  • 13
47

Github's Atom text editor has a live-preview mode for markdown files.

The keyboard shortcut is CTRL+SHIFT+M.

It can be activated from the editor using the CTRL+SHIFT+M key-binding and is currently enabled for .markdown, .md, .mkd, .mkdown, and .ron files.

enter image description here

Arsen Khachaturyan
  • 6,472
  • 4
  • 32
  • 36
Feckmore
  • 3,472
  • 5
  • 39
  • 47
38

Microsoft's Visual Studio Code text editor has built in support for .md files written in markdown syntax.

The syntax is automatically color-coded inside of the .md file, and a preview window of the rendered markdown can be viewed by pressing Shift+Ctrl+V (Windows) or Shift+Cmd+V (Mac).

To see them side-by-side, drag the preview tab to the right side of the editor, or use Ctrl+K V (Windows) or Cmd+K V (Mac) instead.

enter image description here

VS Code uses the marked library for parsing, and has Github Flavored Markdown support enabled by default, but it will not display the Github Emoji inline like Github's Atom text editor does.

Also, VS Code supports has several markdown plugins available for extended functionality.

Feckmore
  • 3,472
  • 5
  • 39
  • 47
17

Extension '.md' refers to Markdown files.

If you don't want to install an app to read them in that format, you can simply use TextEdit or Xcode itself to open it on Mac.

On any other OS, you should be able to open it using any text editor, though as expected, you will not see it in Markdown format.

codeburn
  • 1,988
  • 16
  • 20
14

Yup, just GitHub flavored Markdown. Including a README file in your repository will help others quickly determine what it's about and how to install it. Very helpful to include in your repos.

Erick Robertson
  • 29,556
  • 11
  • 66
  • 98
esilvas
  • 310
  • 2
  • 4
  • 5
    Downvoted. By “one” in “including one in your repository” you should mean “a README file in any format”, not just “a README.md file”. But the question is asking about “.md” files in general, not about READMEs in general. So this answer is irrelevant to the question. Also, the ambiguity with “one” could make a reader think that Markdown READMEs are necessarily better than other READMEs, which is wrong. – Rory O'Kane Dec 23 '12 at 06:36
  • 1
    I made the change specified in the previous comment, because it makes sense and I think it could help avoid confusion. I don't think this is a very good answer, though, as it adds nothing new that's relevant. This question isn't about README's, it is about the .md extension. There's no reason to add this answer six weeks after the accepted answer provided the same information. – Erick Robertson Oct 02 '13 at 18:36
5

Stack Edit is an online markdown editor with the ability to save to Google Drive and DropBox.

Philip
  • 3,839
  • 4
  • 28
  • 48
5

Markdown is just a text file which optionally has .md, or .markdown extensions. It can be converted to HTML. To know syntax of Markdown, Check out

GitHub Flavored Markdown.

You can use any text editor for markdown. If you are sublime text user, you can check out Markdown Preview plugin which will display the rendered markdown content in browser and updates whenever you change the markdown file.

Some of the online markdown editor

Fizer Khan
  • 71,869
  • 26
  • 133
  • 149
4

BBEdit will also display MD on the mac.

and here is a quicklook plugin to display them when you preview them.

nycynik
  • 6,712
  • 5
  • 54
  • 80
3

I suggest StackEdit. It is simple WISIWIG editor. You can use both editor and markdown syntax. There is a quick markdown help syntax there. Undo/redo, comments, GoogleDrive, Dropbox interconnection.

Unicorn
  • 1,237
  • 1
  • 13
  • 23
2

markable.in is a very nice online tool for editing Markdown syntax

user1337432
  • 39
  • 2
  • 8
2

There is an ongoing effort to standardize Markdown and as of now, this is probably the best place to learn about markdown:

http://standardmarkdown.com/

Afaque H
  • 151
  • 2
  • 3
  • 2
    It's http://commonmark.org now (see http://blog.codinghorror.com/standard-markdown-is-now-common-markdown) – JeffRSon Sep 04 '15 at 10:33
2

If you are creating .md files for your .NET solutions I recommend the Visual Studio 2015 extension Markdown Editor as it has a preview panel so you can see your changes in real time.

EDIT: This also should now work with Visual Studio 2017.

bytedev
  • 5,800
  • 3
  • 33
  • 43
0

The easiest thing to do, if you do not have a reader, is to open the MD file with a text editor and then write the MD file out as an HTML file and then double click to view it with browser.

0

The .md stands for Markdown Text. Basically, its just another type of text file, like .txt

I use Notepad++ for reading and editing these

NocFenix
  • 631
  • 5
  • 18
0

A .md file stands for a Markdown file extension. A popular app for editing these files is Typora

T cube
  • 17
  • 8