推荐一个超棒的软件 haroopad

Standard Markdown

  • \ backslash
  • ` backtick
  • * asterisk
  • _ underscore
  • {} curly braces
  • [] square brackets
  • () parentheses
  • # hash mark
  • + plus sign
  • - minus sign (hyphen)
  • . dot
  • ! exclamation mark

HEADERS

  1. This is an H1
  2. =============
  3.  
  4. This is an H2
  5. -------------

Any number of underlining =’s or -’s will work.

  1. # This is an H1
  2.  
  3. ## This is an H2
  4.  
  5. ###### This is an H6

BLOCKQUOTES

  1. > This is the first level of quoting.
  2. >
  3. > > This is nested blockquote.
  4. >
  5. > Back to the first level.

Blockquotes can contain other Markdown elements, including headers, lists, and code blocks:

  1. > ## This is a header.
  2. >
  3. > 1. This is the first list item.
  4. > 2. This is the second list item.
  5. >
  6. > Here's some example code:
  7. >
  8. > return shell_exec("echo $input | $markdown_script");

LISTS

  1. * Red
  2. * Green
  3. * Blue

is equivalent to:

  1. + Red
  2. + Green
  3. + Blue

and:

  1. - Red
  2. - Green
  3. - Blue

Ordered lists use numbers followed by periods:

  1. 1. Bird
  2. 2. McHale
  3. 3. Parish

CODE BLOCKS

  1. This is a normal paragraph:
  2.  
  3. This is a code block.

One level of indentation — 4 spaces or 1 tab — is removed from each line of the code block. For example, this:

  1. Here is an example of AppleScript:
  2.  
  3. tell application "Foo"
  4. beep
  5. end tell

HORIZONTAL RULES

  1. * * *
  2.  
  3. ***
  4.  
  5. *****
  6.  
  7. - - -
  8.  
  9. ---------------------------------------

LINKS

  1. This is [an example](http://example.com/ "Title") inline link.
  2.  
  3. [This link](http://example.net/) has no title attribute.

Here’s an example of reference links in action:

  1. I get 10 times more traffic from [Google][] than from
  2. [Yahoo][] or [MSN][].

EMPHASIS

  1. *single asterisks*
  2.  
  3. _single underscores_ (not support in haroopad)
  4.  
  5. **double asterisks**
  6.  
  7. __double underscores__

CODE

  1. Use the `printf()` function.

Use the printf() function.

IMAGES

  1. ![Alt text](/path/to/img.jpg)
  2.  
  3. ![Alt text](/path/to/img.jpg "Optional title")
  4.  
  5. ![Alt text][id]

EMAIL

  1. Contact to <example@example.com>.

Contact to example@example.com.

Github Flavored Markdown

Newlines

The next paragraph contains two phrases separated by a single newline character

  1. Haroopad
  2. The next document processor

Haroopad
The next document processor

Multiple underscores in words

It is not reasonable to italicize just part of a word, especially when you're dealing with code and names often appear with multiple underscores. Therefore, GFM ignores multiple underscores in words.

  1. perform_complicated_task
  2. do_this_and_do_that_and_another_thing

perform_complicated_task do_this_and_do_that_and_another_thing

URL autolinking

GFM will autolink standard URLs, so if you want to link to a URL (instead of setting link text), you can simply enter the URL and it will be turned into a link to that URL.

Table

Tables aren't part of the core Markdown spec, but they are part of GFM and Markdown Here supports them.

Colons(:) can be used to align columns.

Left : |:------| Right : |------:| Center : |:-----:|

  1. | name | age | gender | money |
  2. |-------|:---:|-----------|-------:|
  3. | rhio | 384 | robot | $3,000 |
  4. | haroo | .3 | bird | $430 |
  5. | jedi | ? | undefined | $0 |
name age gender money
rhio 384 robot $3,000
haroo .3 bird $430
jedi ? undefined $0

Fenced code blocks

Markdown converts text with four spaces at the front of each line to code blocks. GFM supports that, but we also support fenced blocks. Just wrap your code blocks in ``` and you won't need to indent manually to trigger a code block. Keep in mind that both types of code blocks need to have a blank line before them:

Here's an example:

  1. function test() {
  2. console.log("notice the blank line before this function?");
  3. }

Syntax highlighting

We take code blocks a step further and add syntax highlighting if you request it. In your fenced block, add an optional language identifier and we'll run it through syntax highlighting. For example, to syntax highlight Ruby code:

  1. require 'redcarpet'
  2. markdown = Redcarpet.new("Hello World!")
  3. puts markdown.to_html

Table of Contents

A table of contents, usually headed simply "Contents" and abbreviated informally as TOC, is a list of the parts of a book or document organized in the order in which the parts appear.

It will generate a table of content that you can insert [TOC] at the top of your markdown file.

  1. [TOC]
  2.  
  3. # Header 1
  4. Content 1
  5.  
  6. ## Header 2
  7. Content 2

example

[TOC]

Extras (only haroopad)

Experimental since v0.6.0

Highlight

Highlight (and highlights, highlighting, etc.) may refer to:

  1. Syntax ==highlighting==, **display of text** in different colors and/or fonts, depending upon its meaning in context (e.g. different parts of speech in a sentence, or ==function== vs. ==variables names== in computer source code)

Syntax ==highlighting==, display of text in different colors and/or fonts, depending upon its meaning in context (e.g. different parts of speech in a sentence, or ==function== vs. ==variables names== in computer source code)

Underline

  1. An ++underline++, also called an underscore is one or more horizontal lines immediately below a portion of writing.

An ++underline++, also called an underscore is one or more ++horizontal lines++ immediately below a portion of writing.

Embedding

웹 문서를 작성하다 보면 비디오, 음악을 포함한 다양한 온라인 콘텐츠를 이용하기 마련이다. 이에 경량의 문법을 이용하는 마크다운의 특성을 유지하고 기존의 마크다운 사용자 경험에 크게 벗어나지 않으며 강력한 웹 콘텐츠를 문서내에 쉽게 추가할 수 있도록 새로운 문법을 추가하였다.

  1. @[Vimeo Video](https://vimeo.com/70762354 'float:left;width:400px')
  2.  
  3. **Haroopad** is a markdown enabled document processor for creating web-friendly documents.
  4.  
  5. You can author professional-looking documents of various formats: blog posts, slides, presentations, reports, email and more.
  6.  
  7. Haroopad gives you the same editing experience regardless of the platform you are working on. It runs on all three major operating systemsWindows, Mac OS X, and Linux.
  8.  
  9. ![haroopad icon](http://pad.haroopress.com/assets/images/logo-small.png)

@Haroopad intro

Haroopad is a markdown enabled document processor for creating web-friendly documents.

You can author professional-looking documents of various formats: blog posts, slides, presentations, reports, email and more.

Haroopad gives you the same editing experience regardless of the platform you are working on. It runs on all three major operating systems—Windows, Mac OS X, and Linux.

Mathematics Expression

Haroopad uses MathJax to render LaTeX. You can use triple dollar sign ($$$..$$$) to delimit inline equations, and double dollars ($$..$$) for blocks

example

  1. The *Gamma function* satisfying $\Gamma(n) = (n-1)!\quad\forall
  2. n\in\mathbb N$ is via through the Euler integral
  3.  
  4. $$
  5. \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
  6. $$

become

The Gamma function satisfying $\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$ is via through the Euler integral

$$ \Gamma(z) = \int_0\infty t{z-1}e{-t}dt\,. $$

Diagram

This statement helps to render the flow charts and diagrams to extend the fence code block.

Just write the mermaid grammar in the fenced code block, as in the example below.

You get the detail - Click Here

example

  1. ```mermaid
  2. graph TD;
  3. A-->B;
  4. A-->D;
  5. B-->C;
  6. D-->C;
  1. **become**
  2.  
  3. ```mermaid
  4. graph TD;
  5. A-->B;
  6. A-->D;
  7. B-->C;
  8. D-->C;

Tasklist

So that it can be represented as a checkbox item GFM statement. This statement is useful when you create the TODO or Checklist.

example

  1. - [ ] first task
  2. - [x] second task is done
  3. - [ ] third task
  • first task
  • second task is done
  • third task

Presentation

Just insert *** or --- separator to separate each slide.

example

  1. ## slide1 title slide2 content *** ## slide2 title slide2 content

README 语法编写的更多相关文章

  1. CSDN-markdown语法之怎样使用LaTeX语法编写数学公式

    文件夹 文件夹 正文 标记公式 行内公式 块级公式 上标和下标 分数表示 各种括号 根号表示 省略号 矢量表示 间隔空间 希腊字母 特殊字符 关系运算符 集合运算符 对数运算符 三角运算符 微积分运算 ...

  2. markdown语法之如何使用LaTeX语法编写数学公式

    CSDN-markdown语法之如何使用LaTeX语法编写数学公式 目录 目录 正文 标记公式 行内公式 块级公式 上标和下标 分数表示 各种括号 根号表示 省略号 矢量表示 间隔空间 希腊字母 特殊 ...

  3. GitHub上README.md编写教程(基本语法)

    一.标题写法: 第一种方法: 1.在文本下面加上 等于号 = ,那么上方的文本就变成了大标题.等于号的个数无限制,但一定要大于0个哦.. 2.在文本下面加上 下划线 - ,那么上方的文本就变成了中标题 ...

  4. Github readme语法-- markdown

    README 该文件用来测试和展示书写README的各种markdown语法.GitHub的markdown语法在标准的markdown语法基础上做了扩充,称之为GitHub Flavored Mar ...

  5. readme 语法

    README =========================== 该文件用来测试和展示书写README的各种markdown语法.GitHub的markdown语法在标准的markdown语法基础 ...

  6. README.md 编写

    Spring Boot Demo =========================== 该文件用来测试和展示书写README的各种markdown语法.GitHub的markdown语法在标准的ma ...

  7. 使用 Typora 编辑器运用 Markdown 的语法编写文档

    Markdown 介绍 Markdown 是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档. Markdown 语言在 2004 由约翰·格鲁伯(英语:John Gruber)创建. ...

  8. Gitlab中README.MD编写格式模板

    README.MD文件 格式: 源码: # Hbase组件 ## Maven依赖 ``` <dependency> <groupId>catf</groupId> ...

  9. README 语法记录

    转自:nblogs.com/liugang-vip/p/6337580.html 正文: 1.标题的几种写法: 第一种:     前面带#号,后面带文字,分别表示h1-h6,上图可以看出,只到h6,而 ...

随机推荐

  1. Alljoyn 概述(1)

    Alljoyn Overview Feb. 2012- AllJoyn 是什么? • 2011年2月9日发布,由 QuiC(高通创新中心)开发维护的开源软 件项目,采用 Apache license ...

  2. Cookie技术详解

    1. Cookie的特性 属性: 1> name: Cookie的名字 2> value: Cookie的值 3> path: 可选,Cookie的存储路径,默认情况下的存储路径时访 ...

  3. 根据CreateDirectory递归创建多级目录

    分为MFC下的和非MFC下的两种,MFC路径是CString类型的,非MFC的路径是wstring类型的. 下面是MFC下的创建目录: void __fastcall RecursiveDirecto ...

  4. 解决办法:CMake编译时出现“error in configuration process project files may be invalid”

    无论是CMake2.84 还是当前最新的CMake2.87都可能会出现这种错: 查遍国内外的网上都没有给出可行办法,结果还是自己解决了 现把出错原因和解决办法如下:出错原因:因是英文版本,通常安装没有 ...

  5. cocos2dx ease 公式

    所有ease计算公式都在CCTweenFunction.cpp里.

  6. mongo db安装和php,python插件安装

    安装mongodb 1.下载,解压mongodb(下载解压目录为/opt) 在/opt目录下执行命令 wget fastdl.mongodb.org/linux/mongodb-linux-x86_6 ...

  7. jQuery--引入,基本语法,以及常用事件

    一.初识jQuery jQuery是一个JavaScript函数库.主要包含的功能有:HTML元素的选取.操作,CSS操作,HTML事件函数,JavaScript特效和动画,HTML DOM遍历和修改 ...

  8. window 配置 sendmail

    从http://glob.com.au/sendmail/下载sendmail.zip 解压sendmail.zip到目录下(最好使用短路径,长路径会导致问题的出现),我安装的路径是: E:\wamp ...

  9. css实现三角的一些方法

    css实现三角没有想象中的那么难,只要明白border的各种属性的意思就很好明白css三角是如何实现的. 一下是几个很简单的例子:   css三角形状的制作:     css样式:    .trian ...

  10. Android SlidingMenu开源库及其使用

    极客学院教程: http://www.jikexueyuan.com/course/61_5.html?ss=1 1. SlidingMenu开源库的配置 2. SlidingMenu 的使用 --- ...