Comment Format Support
The supported Markdown syntax in comments is as follows.
Markdown Support
Headings
Heading1
Heading2
Heading3
Heading4
Heading5
Heading7
# Heading1
## Heading2
### Heading3
#### Heading4
##### Heading5
###### Heading7
Text
This sentence has bold、italic and delete style text.
This sentence has **bold**、_italic_ and ~~delete~~ style text.
Paragraph
This is a paragraph.
This is another paragraph.
This is a paragraph.
This is another paragraph.
Line Break
I would like to line break at
this point
I would like to line break at
this point
Blockquotes
Blockquotes can also be nested...
...by using greater-than signs right next to each other...
...or with spaces between arrows.
> Blockquotes can also be nested...
>
> > ...by using greater-than signs right next to each other...
> >
> > > ...or with spaces between arrows.
Unordered List
Create a list by starting a line with
-
Make sub-lists by indenting 2 spaces:
Marker character change forces new list start:
Ac tristique libero volutpat at
Facilisis in pretium nisl aliquet
Nulla volutpat aliquam velit
link breakNew paragraph
It’s easy!
- Create a list by starting a line with `-`
- Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
- Ac tristique libero volutpat at
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
link break
New paragraph
- Very easy!
Ordered List
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
line break
line break again - Integer molestie lorem at massa
1. Lorem ipsum dolor sit amet
1. Consectetur adipiscing elit
line break
line break again
1. Integer molestie lorem at massa
HR
---
Image
![Logo](/logo.png)
Table
center | right | left |
---|---|---|
For center align use :-: | For right align use -: | For left align use :- |
b | aaaaaaaaa | aaaa |
c | aaaa | a |
| center | right | left |
| :------------------------: | -----------------------: | :---------------------- |
| For center align use `:-:` | For right align use `-:` | For left align use `:-` |
| b | aaaaaaaaa | aaaa |
| c | aaaa | a |
Code
Inline Code: code
Inline Code: `code`
Block code:
var foo = function (bar) {
return bar++;
};
console.log(foo(5));
Block code:
```js
var foo = function (bar) {
return bar++;
};
console.log(foo(5));
```
Superscript and Subscript
Use ^
and ~
to mark the superscript and subscript.
Demo
- 19th
- H2O
- 19^th^
- H~2~O
Emojis
Besides user-configured or built-in Weibo emojis, we also support complete Emoji shorthand emoticons.
Demo
Classic:
😉 😢 😆 😋
:wink: :cry: :laughing: :yum:
Shortcuts:
😎 😃 :* 😦 😃 😦 😉
8-) :) :\* :( :-) :-( ;)
Code Block Highlight
We support highlighting in almost all languages.
Demo
<!doctype html>
<html lang="en">
<head>
<script>
// Just a lil’ script to show off that inline JS gets highlighted
window.console && console.log('foo');
</script>
<meta charset="utf-8" />
<link rel="icon" href="assets/favicon.png" />
<title>Prism</title>
<link rel="stylesheet" href="assets/style.css" />
<link rel="stylesheet" href="themes/prism.css" data-noprefix />
<script src="assets/vendor/prefixfree.min.js"></script>
<script>
var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];
</script>
<script src="https://www.google-analytics.com/ga.js" async></script>
</head>
<body></body>
</html>
/** @deprecated Use `Prism.plugins.fileHighlight.highlight` instead. */
Prism.fileHighlight = function () {
if (!logged) {
console.warn(
'Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead.',
);
logged = true;
}
Prism.plugins.fileHighlight.highlight.apply(this, arguments);
};
@import url(https://fonts.googleapis.com/css?family=Questrial);
@import url(https://fonts.googleapis.com/css?family=Arvo);
@font-face {
src: url(https://lea.verou.me/logo.otf);
font-family: 'LeaVerou';
}
/*
Shared styles
*/
section h1,
#features li strong,
header h2,
footer p {
font:
100% Rockwell,
Arvo,
serif;
}
Mathematical formula
You can use $ ... $
to create inline formulas, or use $$ ... $$
to create block-level formulas.
:::
Demo
Euler’s identity
Euler’s identity $e^{i\pi}+1=0$ is a beautiful formula in $\mathbb{R}^2$.
$$
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
= \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^i r \cdots (r-i+1) (\log y)^{r-i}} {\omega^i} \right\}
$$
Embed HTML
Feel free to add any HTML content unless triggering the protection mechanism.
- 0
- 0
- 0
- 0
- 0
- 0