md format and how to edit

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?

share improve this question
 
26 
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
6 
Here is a link that may help you -> .MD File Extension –  Vipin Kr. Singh  Sep 21 '12 at 16:39
1 
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
1 
User can try MarkView, a Chrome extension for editing and viewing markdown file inside the browser. –  swcool  Jan 20 '14 at 6:48
1 
Full guide to help you start with markdownblog.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 '14 at 10:07 

15 Answers

up vote 548 down vote accepted

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

share improve this answer
 
12 
I found Github's basic explanation very useful as a quick introduction too. –  Voo  Mar 28 '14 at 19:03
1 
On Windows you might want to use WordPad to make use of the formatting for an easier read. –  G O'Rilla Nov 8 '14 at 16:21
2 
@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
 
can we add images or through link in .md file... is it possible? –  user1645290  Jan 22 at 4:54 

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.

share improve this answer
 
2 
It seems to be back to life? –  GuiSim  Mar 7 '13 at 15:04
 
Mou is a nice tool ! –  yunas  Jul 22 '13 at 10:20
2 
MarkPad works nicely on Window. –  skjoshi  Aug 31 '13 at 20:20 
4 
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 '14 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? –  evanrmurphy  Jul 31 '14 at 3:31

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

share improve this answer
 

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.

share improve this answer
 
4 
Actually, you will see it in Markdown format. You won't see it as bold, italics, indents and code blocks, though.–  Lightness Races in Orbit  Oct 4 '13 at 14:08

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.

share improve this answer
 
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 6:36
 
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 2 '13 at 18:36

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

share improve this answer
 

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

share improve this answer
 

BBEdit will also display MD on the mac.

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

share improve this answer
 

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

share improve this answer
 

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/

share improve this answer
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值