BLOCK ELEMENTS
This is an H1
This is an H2
This is an H3
This is an H4
This is an H5
This is an H6
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
UNORDERED LIST
- Red
- Green
- Blue
or
- Red
- Green
- Blue
ORDERD LIST
- Bird
- McHale
- Parish
multiple lines
This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
You can use backslash-escape to avoid list
1986. What a great season.
CODE BLOCKS
我们统一使用github风格的代码片段,使用highlight.js,代码高亮支持的语言列表
####javascript
var MAX_NUMBER = 256;
var REG = /^\d{1,3}.+\.html$/gi;
var str = 'a long long string';
/**
* class Dog
* @link http://google.com
*/
function Dog(age, size){
if(size === undefined){
size = 1; // 0:tiny, 1:small, 2:big
}
}
Dog.prototype.name = 'dog';
####css
@media screen and (-webkit-min-device-pixel-ratio: 0) {
body:first-of-type pre::after {
content: 'highlight: ' attr(class);
}
}
@import url('print.css');
@page:right {
margin: 1cm 2cm 1.3cm 4cm;
}
@font-face {
font-family: Chunkfive; src: url('Chunkfive.otf');
}
div.text,
#content,
li[lang=ru] {
font: Tahoma, Chunkfive, sans-serif;
background: url('hatch.png') /* wtf? */; color: #F0F0F0 !important;
width: 100%;
}
####html
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="base.css" />
</head>
<body>
<div id="doc">
<h1>hello world!</h1>
</div>
</body>
</html>
####SQL
select
concat('<a target=_blank href=http://stat.meituan.com/stat/dictionary/edit/', d.id, '>编辑</a>'),
p.name,
i.name,
d.comment
from
space_report_page_item i
join dictionary d on i.dictionaryid=d.id
join space_report_sql_column c on i.space_sql_column_id=c.dictionaryid
join space_report_page_element e on i.space_page_element_id=e.dictionaryid
join space_report_page p on e.space_page_id=p.dictionaryid
join space_report_sql s on c.space_sql_id=s.dictionaryid
where
p.dictionaryid='195737'
group by i.name
####php
//发送短信的逻辑
$showSendSms = false;
foreach ($couponlist as $tmpCoupon) {
if ($tmpCoupon['status'] === '' && $tmpCoupon['frozen'] === false) {
$showSendSms = true;
break;
}
}
HORIZONTAL RULES
这是一条横线
SPAN ELEMENTS
This is an example inline link.
See my About page for details.
EMPHASIS
em:single asterisks
strong:double asterisks
CODE
Use the printf()
function.
IMAGES
TABLES
id | nameu |
---|---|
1 | zhiyelee |
2 | zhiyelee |
2 | zhiyelee |