ChatGPT解决这个技术问题 Extra ChatGPT

What file uses .md extension and how should I edit them?

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?

I guess this is evidence in favor of using the .markdown extension instead, though it's so awfully long...
Here is a link that may help you -> .MD File Extension
MarkPad is a nice application for MarkDown editing in Windows. It presents you with the preview of the edits.
User can try MarkView, a Chrome extension for editing and viewing markdown file inside the browser.
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

9
9 revs, 8 users 35%

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:

Standard Markdown

GitHub Flavored Markdown

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.


I found Github's basic explanation very useful as a quick introduction too.
On Windows you might want to use WordPad to make use of the formatting for an easier read.
@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.
can we add images or through link in .md file... is it possible?
@user1645290 Yes, it's possible. see
s
sirLisko

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.


It seems to be back to life?
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.
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?
that link is no longer valid
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
A
Arsen Khachaturyan

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.

https://i.stack.imgur.com/VxLKL.png


F
Feckmore

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.

https://i.stack.imgur.com/45ggT.png

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.


If you are using Visual Studio 2015 instead see my answer below.
c
codeburn

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.


Actually, you will see it in Markdown format. You won't see it as bold, italics, indents and code blocks, though.
E
Erick Robertson

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.


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.
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.
P
Philip

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


F
Fizer Khan

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

Markable

dillinger

markdownviewer


n
nycynik

BBEdit will also display MD on the mac.

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


U
Unicorn

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.


h
h0n24

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


A
Afaque H

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/


b
bytedev

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.


T
T cube

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


r
richardwendrock

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.


This will only work if you have a plugin that reads .md files.
N
NocFenix

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

I use Notepad++ for reading and editing these