Skip to content

Commit d59099b

Browse files
committed
add tests
1 parent 6b70cd1 commit d59099b

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

src/services/mock/json/infoView.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@
1414
"meanElapsedTime": "10",
1515
"meta": {
1616
"title": "Failed Task",
17-
"description": "A task that always fails!",
17+
"description": "# A task that always fails!\n\n - Bullet point\n - Bullet 🐜\n",
1818
"URL": "https://cylc.org",
1919
"userDefined": {
20-
"my custom field": "My custom value!"
20+
"my custom field": "My custom value!",
21+
"Links and images": "[Great Auk - link example](https://en.wikipedia.org/wiki/Great_Auk)\n\n![Great Auk](https://upload.wikimedia.org/wikipedia/commons/4/4e/Great_Auk_%28Pinguinis_impennis%29_specimen%2C_Kelvingrove%2C_Glasgow_-_geograph.org.uk_-_1108249.jpg)",
22+
"Admonitions": ":::{note}\nB-flat\n:::\n\n:::{tip}\nMy Shed\n:::\n\n:::{warning}\nLive without...\n:::\n\n:::{danger}\nMouse\n:::\n\n:::{caution}\nHorses\n:::",
23+
"Titles": "## Level 2\n### Level 3\n#### Level 4\n##### Level 5\n###### Level 6",
24+
"Tables": "| Header 1 | Header 2 |\n| -------- | -------- |\n| Row 1 | Row 2 |\n| Row 3 | Row 4 |\n",
25+
"List Table": ":::{list-table}\n:header-rows: 1\n\n* - Header 1\n - Header 2\n* - Row 1\n - Row 2\n* - Row 3\n - Row 4\n:::\n",
26+
"Code blocks": "```python\n# Python\nprint('Hello, world!')\n```\n\n```bash\n# bash\nls -l\n```\n",
27+
"Maths": "Inline math: $E=mc^2$ and block math:\n\n$$\n\\int_0^1 x^2 \\, dx = \\frac{1}{3}\n$$\n"
2128
}
2229
}
2330
},

src/styles/cylc/_markdown.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,20 @@ div.math.numbered:before {
178178
content: '(' attr(number) ')';
179179
float: right;
180180
}
181+
182+
.markdown {
183+
p, ul, ol {
184+
&:not(:last-child) {
185+
margin-bottom: 0.8em;
186+
}
187+
}
188+
ul, ol {
189+
padding-left: 24px;
190+
}
191+
.v-theme--light & code {
192+
background-color: rgba(0, 0, 0, 0.05);
193+
}
194+
.v-theme--dark & code {
195+
background-color: rgba(255, 255, 255, 0.1);
196+
}
197+
}

0 commit comments

Comments
 (0)