Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 607
Lai Yu-Hsuan Avatar asked May 07 '11 17:05

Lai Yu-Hsuan


People also ask

How do I edit .MD files?

Open the project editor and make sure that the README.md file is selected in the file view on the left. At the top of the editing pane, click the EDIT MARKDOWN button to reveal edit mode for the file. Now you can start typing directly in the file.

What program opens a .MD file?

You can open and edit an MD file in any text editor, including: Microsoft Notepad (Windows) Apple TextEdit (Mac) Vim (Linux, Mac)

What uses the .MD extension?

MD files are the extensions of files created Markdown language software. Markdown is a lightweight markup language intended for one purpose, to be used to format text on the web with plain text formatting syntax.

What is the Markdown file extension?

The 'MD' in the . md file extension (also written as . markdown) stands for 'Markdown documentation'. Markdown is a lightweight mark-up language, and each MD file is written in a particular 'flavour' of Markdown.


1 Answers

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.

like image 181
9 revs, 8 users 35% Avatar answered Oct 03 '22 06:10

9 revs, 8 users 35%