博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
md format and how to edit
阅读量:4031 次
发布时间:2019-05-24

本文共 6096 字,大约阅读时间需要 20 分钟。

625
106

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?

 
26  
I guess this is evidence in favor of using the .markdown extension instead, though it's so awfully long... –   
May 22 '12 at 19:30
6  
Here is a link that may help you ->  –   
Sep 21 '12 at 16:39
1  
 is a nice application for MarkDown editing in Windows. It presents you with the preview of the edits. –   
Aug 31 '13 at 20:23
1  
User can try , a Chrome extension for editing and viewing markdown file inside the browser. –   
Jan 20 '14 at 6:48
1  
Full guide to help you start with markdown: . You should try to write markdown with a way to live visualizing the result (with an application like ). Did you know that stackoverflow post and comment syntax is based on markdown ? :)  – 
Jul 4 '14 at 10:07 

15 Answers

548
accepted

The extensions .md and .markdown are just text files written in  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  and . They provide live preview. You can also export your files to  or .

 
12  
I found Github's  very useful as a quick introduction too. –   
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. – 
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. –   
Mar 24 '15 at 20:56
 
can we add images or through link in .md file... is it possible? –   
Jan 22 at 4:54 
68

If you are looking for an editor, I suggest you use . 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 . It is quite good and full of examples.

 
2  
It seems to be back to life? –   
Mar 7 '13 at 15:04
 
Mou is a nice tool ! –   
Jul 22 '13 at 10:20
2  
 works nicely on Window. –   
Aug 31 '13 at 20:20 
4  
I'd like suggest , another really cool browser-based text editor. It also allows you to link Dropbox, Github and Google drive. –   
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? –   
Jul 31 '14 at 3:31
21

Github's  has a  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

 
14

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.

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

Yup, just . 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.

 
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 '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. –   
Oct 2 '13 at 18:36
5

 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

.

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

 will also display MD on the mac.

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

 
2

 is a very nice online tool for editing Markdown syntax

 
1

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

 

转载地址:http://iuebi.baihongyu.com/

你可能感兴趣的文章
如此调用
查看>>
计算机的发展史
查看>>
带WiringPi库的交叉编译如何处理一
查看>>
带WiringPi库的交叉笔译如何处理二之软链接概念
查看>>
Spring事务的七种传播行为
查看>>
ES写入找不到主节点问题排查
查看>>
Java8 HashMap集合解析
查看>>
ArrayList集合解析
查看>>
欢迎使用CSDN-markdown编辑器
查看>>
Android计算器实现源码分析
查看>>
Android系统构架
查看>>
Android 跨应用程序访问窗口知识点总结
查看>>
各种排序算法的分析及java实现
查看>>
SSH框架总结(框架分析+环境搭建+实例源码下载)
查看>>
js弹窗插件
查看>>
自定义 select 下拉框 多选插件
查看>>
js判断数组内是否有重复值
查看>>
js获取url链接携带的参数值
查看>>
gdb 调试core dump
查看>>
gdb debug tips
查看>>