在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):INFO-201/m3-markdown开源软件地址(OpenSource Url):https://github.com/INFO-201/m3-markdown开源编程语言(OpenSource Language):开源软件介绍(OpenSource Introduction):Module 3: MarkdownOverviewMarkdown syntax provides a simple way to describe the desired formatting of text documents. In fact, all of the learning modules (including this one you're reading) were written using Markdown! With only a small handful of options, Markdown allows you to provide structure to a document, as well as formatting to your text (like bold, or italics). There are a number of programs that support the rendering of Markdown, including GitHub, Slack, and StackOverflow (note: the syntax implementation may vary slightly across programs). In this section, you'll learn the basics of Markdown syntax, and how to leverage it. Contents Resources
Writing MarkdownMarkdown is an easy to write (and easy to read) syntax for declaring document structure and formatting. In the text-editor of your choice, you can add Markdown syntax to plain text to provide your writing with structure and emphasis. Document StructureMarkdown isn't just about adding bold and italics to your paragraphs - it enables you to create distinct sections of your page, such as a header or a block of code. Markdown is most easily explained through example, so let's take a look at how a few simple approaches can produce a thoroughly formatted document (code on the left, rendered version on the right): As you can see, the document (right) is produced using the following Markdown shorthand:
And as you can see, Markdown can even make tables! Text formattingIn addition to lending structure to your documents, the use of Markdown allows you to declare text formatting options. Let's take a look at another example:
For more thorough lists of Markdown options, see the online resources linked above. To practice your Markdown skills, see exercise-1 and exercise-2. Rendering MarkdownIn order to view the rendered version of your Markdown sytax, you need to use a program that converts from Markdown into a formatted document. Luckily, GitHub will automatically render your Markdown Reader (Chrome Extension)There are a number of Google Chrome Extensions that you can install that will render Markdown files for you. One which I've found useful is Markdown Reader, which provides you with a simple rendering of a Markdown file (note, it may differ slightly from the way GitHub would render the document). Once you've installed the Extension, you can drag + drop a Online EditorsThere are a variety of Markdown editors online that you can use to practice Markdown. This isn't likely how you'll want to write your code, but they're a fun sandbox to get started. One I've found easy to use is dillinger, though there are plenty if you are looking for something more specific. MacdownMacdown is a program (for Macs only, unfortunately) that is designed for writing Markdown documents. It's biggest advantage is that it provides a live view of how your Markdown document will be rendered: Download here. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论