Skip to content

Commit d3aca3e

Browse files
authored
Merge pull request #51 from everettraven/fix-markdown-guidelines
fix a couple markdown examples
2 parents c071457 + 81a6a6f commit d3aca3e

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

‎docs/markdown-guidelines.md‎

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@ This is a standard sentence with `console.log("yeah!")` in it.
6868

6969
Wrap the code blocks with triple Grave accent keys. **```** for showing big blocks of code in your content. For example:
7070

71+
~~~
7172
```
7273
if (isServer && user){
73-
store.userStore.currentUser = user;
74+
store.userStore.currentUser = user;
7475
}
7576
```
76-
77+
~~~
78+
7779
The above will look like:
7880

7981
```
@@ -84,7 +86,22 @@ if (isServer && user){
8486

8587
Hashnode supports generic code highlighting. This will be applied to the code blocks after you publish the content.
8688

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+
```
88105

89106
## Text Formatting
90107

@@ -98,8 +115,13 @@ The bold and italics markdown syntax works inside almost any block-level element
98115

99116
Use the greater than sign to format a text as a quote. For example:
100117

118+
```
119+
> Where there is a will, there is a way!
120+
```
121+
122+
The above will look like:
123+
101124
> Where there is a will, there is a way!
102-
Where there is a will, there is a way!
103125
104126
## Links
105127

0 commit comments

Comments
(0)