Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
653 views
in Technique[技术] by (71.8m points)

markdown - 什么文件使用.md扩展名,我该如何编辑它们?(What file uses .md extension and how should I edit them?)

On GitHub, several projects have README.md files.

(在GitHub上,有几个项目有README.md文件。)

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?

(我在哪里可以找到.md文件的介绍?)

  ask by Lai Yu-Hsuan translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Markdown is a plain-text file format.

(Markdown是一种纯文本文件格式。)

The extensions .md and .markdown are just text files written in Markdown syntax.

(扩展名.md.markdown只是用Markdown语法编写的文本文件。)

If you have a Readme.md in your repo, GitHub will show the contents on the home page of your repo.

(如果您的Readme.md中有Readme.md ,GitHub将在您的Readme.md上显示内容。)

Read the documentation:

(阅读文档:)

You can edit the Readme.md file in GitHub itself.

(您可以在GitHub中编辑Readme.md文件。)

Click on Readme.md, you will find an edit button.

(单击Readme.md,您将找到一个编辑按钮。)

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.

(由于它是文本文件,因此可以使用Notepad或Notepad ++(Windows),TextEdit(Mac)或任何其他文本编辑器进行编辑和修改。)

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 .

(如果要创建带预览的md文件,如果不想安装任何特殊编辑器,可以使用dillinger.iostackedit.io等在线编辑器。)

They provide live preview.

(它们提供实时预览。)

You can also export your files to Google Drive or Dropbox .

(您还可以将文件导出到Google云端硬盘Dropbox 。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...