Skip to content

Commit 1c539ee

Browse files
authored
chore(demo): update markup in stories (#706)
1 parent f17b3f9 commit 1c539ee

File tree

90 files changed

+45
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+45
-1
lines changed

demo/stories/markdown/markup.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export const markup = {
22
heading: `
3+
 
4+
35
# h1 Heading
46
## h2 Heading
57
### h3 Heading
@@ -9,6 +11,8 @@ export const markup = {
911
`.trim(),
1012

1113
blockquote: `
14+
 
15+
1216
## Blockquotes
1317
1418
@@ -18,6 +22,8 @@ export const markup = {
1822
`.trim(),
1923

2024
emphasis: `
25+
 
26+
2127
## Emphasis
2228
2329
**This is bold text**
@@ -38,6 +44,8 @@ _This is italic text_
3844
`.trim(),
3945

4046
horizontalRules: `
47+
 
48+
4149
## Horizontal Rules
4250
4351
___
@@ -48,6 +56,8 @@ ___
4856
`.trim(),
4957

5058
lists: `
59+
 
60+
5161
## Lists
5262
5363
Unordered
@@ -77,6 +87,8 @@ Start numbering with offset:
7787
`.trim(),
7888

7989
code: `
90+
 
91+
8092
## Code
8193
8294
Inline \`code\`
@@ -107,6 +119,8 @@ console.log(foo(5));
107119
`.trim(),
108120

109121
tables: `
122+
 
123+
110124
## Tables
111125
112126
| Option | Description |
@@ -125,6 +139,8 @@ Right aligned columns
125139
`.trim(),
126140

127141
links: `
142+
 
143+
128144
## Links
129145
130146
[link text](https://gravity-ui.com)
@@ -135,6 +151,8 @@ Autoconverted link https://gravity-ui.com/components (linkify must be enabled)
135151
`.trim(),
136152

137153
images: `
154+
 
155+
138156
## Images
139157
140158
![Minion](https://octodex.github.com/images/minion.png)
@@ -144,19 +162,25 @@ Autoconverted link https://gravity-ui.com/components (linkify must be enabled)
144162
`.trim(),
145163

146164
subAndSub: `
165+
 
166+
147167
## Subscript & Superscript (additional feature)
148168
149169
- 19^th^
150170
- H~2~O
151171
`.trim(),
152172

153173
emojis: `
174+
 
175+
154176
## Emojis (additional feature)
155177
156178
:wink: :cry: :laughing: :yum:
157179
`.trim(),
158180

159181
deflist: `
182+
 
183+
160184
## Definition list (additional feature)
161185
162186
Term 1

demo/stories/yfm/content.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
export const markup = {
22
textMarks: `
3+
 
4+
35
## YFM text marks
46
57
##Monospaced text##
68
`.trim(),
79

810
yfmNotes: `
11+
 
12+
913
## YFM Notes
1014
1115
{% note info %}
@@ -36,6 +40,8 @@ This is an alert.
3640
`.trim(),
3741

3842
yfmCut: `
43+
 
44+
3945
## YFM Cut
4046
4147
{% cut "Cut header" %}
@@ -57,6 +63,8 @@ Content displayed when clicked.
5763
`.trim(),
5864

5965
yfmTabs: `
66+
 
67+
6068
## YFM Tabs
6169
6270
{% list tabs %}
@@ -76,7 +84,7 @@ Content displayed when clicked.
7684
`.trim(),
7785

7886
yfmHtmlBlock: `
79-
Some text here
87+
 
8088
8189
## Next is YFM HTML block
8290
@@ -213,12 +221,16 @@ aside blockquote {
213221
`.trim(),
214222

215223
yfmFile: `
224+
 
225+
216226
## YFM File
217227
218228
File: {% file src="data:text/plain;base64,Cg==" name="empty.txt" %}
219229
`.trim(),
220230

221231
yfmTable: `
232+
 
233+
222234
## YFM Table
223235
224236
### Simple table
@@ -262,6 +274,8 @@ Text after other table||
262274
`.trim(),
263275

264276
tasklist: `
277+
 
278+
265279
## Task lists (additional feature)
266280
267281
- [x] ~~Write the press release~~
@@ -270,6 +284,8 @@ Text after other table||
270284
`.trim(),
271285

272286
latexFormulas: `
287+
 
288+
273289
## LaTeX Formulas (optional feature)
274290
275291
Inline formula: $\\sqrt{3x-1}+(1+x)^2$
@@ -284,6 +300,8 @@ $$
284300
`.trim(),
285301

286302
mermaidDiagram: `
303+
 
304+
287305
## Mermaid diagram (optional feature)
288306
289307
\`\`\`mermaid
@@ -294,6 +312,8 @@ sequenceDiagram
294312
`.trim(),
295313

296314
foldingHeadings: `
315+
 
316+
297317
#+ Heading 1
298318
299319
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum euismod, nulla sit amet sodales porttitor, ligula arcu consectetur justo, sit amet varius orci lorem a augue.

0 commit comments

Comments
 (0)