You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2019-08-08-text-and-typography.md
+32-15Lines changed: 32 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,25 +5,24 @@ date: 2019-08-08 11:33:00 +0800
5
5
categories: [Blogging, Demo]
6
6
tags: [typography]
7
7
math: true
8
+
mermaid: true
8
9
image: /assets/img/sample/devices-mockup.png
9
10
---
10
11
11
12
This post is to show Markdown syntax rendering on [**Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/fork), you can also use it as an example of writing. Now, let's start looking at text and typography.
12
13
13
14
14
15
## Titles
15
-
16
16
---
17
+
# H1 - heading
17
18
18
-
# H1
19
-
20
-
<h2data-toc-skip>H2</h2>
21
-
22
-
<h3data-toc-skip>H3</h3>
19
+
<h2data-toc-skip>H2 - heading</h2>
23
20
24
-
<h4>H4</h4>
21
+
<h3data-toc-skip>H3 - heading</h3>
25
22
23
+
<h4>H4 - heading</h4>
26
24
---
25
+
<br>
27
26
28
27
## Paragraph
29
28
@@ -79,32 +78,50 @@ Click the hook will locate the footnote[^footnote].
79
78
80
79
## Images
81
80
82
-
By default, the image is centered and the image caption can be displayed at the bottom:
In addition, you can use class `normal` , `left` and `right` to specify the image position (but in these case, the image caption is prohibited), for example:
"A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space."
"A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space."
107
112
113
+
<br>
114
+
115
+
## Mermaid SVG
116
+
117
+
```mermaid
118
+
gantt
119
+
title Adding GANTT diagram functionality to mermaid
Copy file name to clipboardExpand all lines: _posts/2019-08-08-write-a-new-post.md
+59-1Lines changed: 59 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,22 @@ math: true
68
68
---
69
69
```
70
70
71
-
## Preview Image
71
+
## Mermaid
72
+
73
+
[**Mermaid**](https://github.com/mermaid-js/mermaid) is a great diagrams generation tool. To enable it on your post, add the following to the YAML block:
74
+
75
+
```yml
76
+
---
77
+
mermaid: true
78
+
---
79
+
```
80
+
81
+
Then you can use it like other markdown language: surround the graph code with <code class="language-plaintext highlighter-rouge">```mermaid</code>
82
+
and <code class="language-plaintext highlighter-rouge">```</code>.
83
+
84
+
## Images
85
+
86
+
### Preview image
72
87
73
88
If you want to add an image to the top of the post contents, specify the url for the image by:
74
89
@@ -78,6 +93,49 @@ image: /path/to/image-file
78
93
---
79
94
```
80
95
96
+
### Image caption
97
+
98
+
Add italics to the next line of an image,then it will become the caption and appear at the bottom of the image:
99
+
100
+
```markdown
101
+

102
+
_Image Caption_
103
+
```
104
+
105
+
### Image size
106
+
107
+
You can specify the width (and height) of a image with `width`:
0 commit comments