966

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?

6
  • 44
    I guess this is evidence in favor of using the .markdown extension instead, though it's so awfully long...
    – endolith
    May 22, 2012 at 19:30
  • 7
    Here is a link that may help you -> .MD File Extension Sep 21, 2012 at 16:39
  • 2
    MarkPad is a nice application for MarkDown editing in Windows. It presents you with the preview of the edits.
    – skjoshi
    Aug 31, 2013 at 20:23
  • 2
    User can try MarkView, a Chrome extension for editing and viewing markdown file inside the browser.
    – swcool
    Jan 20, 2014 at 6:48
  • 1
    Full guide to help you start with markdown: blog.wax-o.com/2014/04/…. You should try to write markdown with a way to live visualizing the result (with an application like mouapp.com). Did you know that stackoverflow post and comment syntax is based on markdown ? :) stackoverflow.com/editing-help
    – fabien
    Jul 4, 2014 at 10:07

18 Answers 18

803

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.

6
  • 35
    I found Github's basic explanation very useful as a quick introduction too.
    – Voo
    Mar 28, 2014 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 8, 2014 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, 2015 at 20:56
  • 1
    can we add images or through link in .md file... is it possible?
    – Raphael
    Jan 22, 2016 at 4:54
  • 1
    @user1645290 Yes, it's possible. see
    – B-GangsteR
    Nov 28, 2016 at 23:44
93

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.

6
  • 2
    It seems to be back to life?
    – GuiSim
    Mar 7, 2013 at 15:04
  • 6
    I'd like suggest http://dillinger.io/, another really cool browser-based text editor. It also allows you to link Dropbox, Github and Google drive.
    – sirLisko
    Feb 6, 2014 at 15:01
  • The Notepad link in this answer triggers a RAR file download. Why is there no webpage, didn't you say it was a browser-based editor? Jul 31, 2014 at 3:31
  • that link is no longer valid Nov 6, 2014 at 2:02
  • 1
    Just pointing out that this is not a full answer to the question. You don't explain what .md is, only how it can be edited
    – Zoe is on strike
    May 3, 2017 at 14:29
50

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

45

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.

1
  • If you are using Visual Studio 2015 instead see my answer below.
    – bytedev
    Sep 21, 2016 at 13:34
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.

1
  • 4
    Actually, you will see it in Markdown format. You won't see it as bold, italics, indents and code blocks, though. Oct 4, 2013 at 14:08
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.

2
  • 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. Dec 23, 2012 at 6: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. Oct 2, 2013 at 18:36
5

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

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

4

BBEdit will also display MD on the mac.

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

4

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.

2

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

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/

1
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.

2

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

0
1

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.

1
  • This will only work if you have a plugin that reads .md files.
    – Brad Bruce
    Nov 6, 2013 at 23:25
1

If you're willing to chip in some money, Writage is pretty good. It's a Microsoft Word add-on that enables Word to save in markdown format and read markdown files (.md or .markdown).

It doesn't work with all of Word's features, but it does enough to do most of what I need it to. It has its own tab in the ribbon so you can edit with the features it does support.

It's great because you can see the text the way it would be displayed while also being able to edit it in place.

https://www.writage.com/

The Writage ribbon tab:
NOTE: After installing, you have to restart Word in order for it to show up enter image description here A snippet of the intro page it gives you after installing: enter image description here

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

0

**Basic writing and formatting syntax to .md files **

You can see the official documentation on Github

Not the answer you're looking for? Browse other questions tagged or ask your own question.