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: docs/markdown-guidelines.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,12 +68,14 @@ This is a standard sentence with `console.log("yeah!")` in it.
68
68
69
69
Wrap the code blocks with triple Grave accent keys. **```** for showing big blocks of code in your content. For example:
70
70
71
+
~~~
71
72
```
72
73
if (isServer && user){
73
-
store.userStore.currentUser = user;
74
+
store.userStore.currentUser = user;
74
75
}
75
76
```
76
-
77
+
~~~
78
+
77
79
The above will look like:
78
80
79
81
```
@@ -84,7 +86,22 @@ if (isServer && user){
84
86
85
87
Hashnode supports generic code highlighting. This will be applied to the code blocks after you publish the content.
86
88
87
-
You can select which highlighting to use manually by appending the code language after the beginning Triple Grave accent keys like so **```javascript**.
89
+
You can select which highlighting to use manually by appending the code language after the beginning Triple Grave accent keys like so **```javascript**. For example:
90
+
91
+
~~~
92
+
```javascript
93
+
function hello(){
94
+
console.log("Hello Hashnode!")
95
+
}
96
+
```
97
+
~~~
98
+
99
+
The above will look similar to:
100
+
```javascript
101
+
functionhello(){
102
+
console.log("Hello Hashnode!")
103
+
}
104
+
```
88
105
89
106
## Text Formatting
90
107
@@ -98,8 +115,13 @@ The bold and italics markdown syntax works inside almost any block-level element
98
115
99
116
Use the greater than sign to format a text as a quote. For example:
0 commit comments