Heading (h2)
h3
h4
h5
h6
Image (click to zoom in/out)
1 2 3 <!-- new line -->  <!-- new line -->
Inline image
Not bad.
With link
Travis CI build status:
Lastest release:
License:
hr
Below is a <hr>
, I guess.
Above is a <hr>
, I guess.
List
Unordered list
list item
list item
list item
Ordered list
list item
list item
list item
list item
list item
list item
list item
Checklist
Table
Hear no evil
Speak no evil
See no evil
🙉
🙊
🙈
Text align
Hear no evil
Speak no evil
See no evil
🙉
🙊
🙈
Headless
1 2 3 | | :-------:|:----------:|:-: One | Two | Three
Long table
Sun With Face
Grinning Face
Smiling Face
Grinning Face With Big Eyes
Smiling Face With Smiling Eyes
Full Moon Face
Grinning Face With Smiling Eyes
Face With Monocle
Cowboy Hat Face
Thinking Face
Face Vomiting
🌞
😀
☺️
😃
😊
🌝
😄
🧐
🤠
🤔
🤮
Blockquote
(https://hexo.io/docs/tag-plugins#Block-Quote )
Every interaction is both precious and an opportunity to delight.
NEW: DevDocs now comes with syntax highlighting. http://devdocs.io
Code Block
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 class Utils { animate (element : Element , attr : string , change : { from : number , to: number , duration?: number }, onEnd?: () => void ) { if (change.from === change.to ) return ; if (!change.duration ) element[attr] = change.to ; const easing = (t, b, c, d ) => c * ((t = t / d - 1 ) * t * t + 1 ) + b, { from , to } = change, during = Math .ceil ((change.duration || 300 ) / 17 ) || 1 ; let start = 0 , instance = null ; step (); function step ( ) { const value = Math .ceil (easing (start, from , to - from , during)); start++; if (start <= during) { element[attr] = value; instance = requestAnimationFrame (step); } else { if (onEnd) onEnd (); cancelAnimationFrame (instance); } } } }
With caption
(https://hexo.io/docs/tag-plugins#Code-Block )
_.compact Underscore.js 1 2 _.compact ([0 , 1 , false , 2 , '' , 3 ]);
With blockquote
1 2 3 interface World { stop : () => never ; }
Gist
(https://hexo.io/docs/tag-plugins#Gist )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface Skill {
name: string;
description: string;
sacrifice: Sacrifice;
energy: Energy;
activationTime: Timing;
rechargeTime: Timing;
questReward: boolean;
}
Embed(iframe)
1 2 3 4 {% canvas [width] [height] %} ctx.fillStyle = 'red' ; ctx.fillRect (0 , 0 , w, h); {% endcanvas %}
width is default to 300
, height is default to 150
,also the following constants are available in the scope:
constant
ctx
CanvasRenderingContext2D
w
Canvas width
h
Canvas height
For example:
1 2 3 4 5 6 {% canvas 100 100 %} const r = w / 2 ;ctx.fillStyle = 'antiquewhite' ; ctx.arc (r, r, r, 0 , Math .PI * 2 ); ctx.fill (); {% endcanvas %}
-->
MathJax (SSR)
When
a \ne 0
, there are two solutions to
ax^2 + bx + c = 0
and they are
x = {-b \pm \sqrt{b^2-4ac} \over 2a}.
Extensions
Timeline
1 2 3 4 5 6 ::: timeline - xxx 2020/04/10- xxx 2020/04/11- xxx 2020/04/12- xxx 2020/04/13:::
xxx 2020/04/10
xxx 2020/04/11
xxx 2020/04/12
xxx 2020/04/13
Collapsable
1 2 3 ::: collapse Click to show a secret 🥱 You got me ! :::
or just use native html tag
1 2 3 4 <details > <summary > Click to show a secret</summary > <p > 🥱 You got me !</p > </details >
Click to show a secret 🥱 You got me !
Tree
1 2 3 4 5 6 7 8 # square by default ::: tree ::: tree icon:arrow ::: tree icon:circle - level 1 - level 2 - level 3:::
Here is a footnote reference, and another.