File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
72
72
</dd >
73
73
<v-divider />
74
74
<dt >Description</dt >
75
- <dd ><Markdown :markdown =" taskMetadata.description" /></dd >
75
+ <dd ><Markdown :markdown =" taskMetadata.description || '' " /></dd >
76
76
<v-divider />
77
77
<template v-for =" (value , key ) in customMetadata " :key =" key " >
78
78
<dt ><Markdown :markdown =" '## ' + key" /></dt >
Original file line number Diff line number Diff line change @@ -21,6 +21,22 @@ import { Tokens } from '@/utils/uid'
21
21
const DESCRIPTION = `Lorem ipsum dolor sit amet, consectetur adipiscing elit.
22
22
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
23
23
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi.
24
+
25
+ # New Section
26
+
27
+ H{sub}\`2\`O, and 5{sup}\`th\` of November.
28
+
29
+ \`\`\`{list-table} A Liszt Table
30
+ :header-rows: 1
31
+
32
+ * - Piece
33
+ - Year
34
+ * - Hungarian Rhapsody No. 2
35
+ - 1847
36
+ * - La Campanella
37
+ - 1851
38
+ * - Liebestraum No. 3
39
+ - 1850
24
40
`
25
41
const TOKENS = new Tokens ( '~user/workflow//1234/foo' )
26
42
const TASK = {
@@ -155,6 +171,21 @@ describe('Info component', () => {
155
171
. get ( '.metadata-panel a:first' ) // the URL should be an anchor
156
172
. should ( 'have.attr' , 'href' , 'https://cylc.org' )
157
173
. contains ( / ^ h t t p s : \/ \/ c y l c .o r g $ / )
174
+ // Markdonw allows the adding of additional titles:
175
+ . get ( 'h1' ) . eq ( 1 )
176
+ . contains ( 'New Section' )
177
+ // Markdown subscripts and superscripts should be rendered:
178
+ . get ( 'sub' )
179
+ . contains ( '2' )
180
+ . get ( 'sup' )
181
+ . contains ( 'th' )
182
+ // Markdown tables should be rendered:
183
+ . get ( 'table' )
184
+ . should ( 'be.visible' )
185
+ . get ( 'table tr' )
186
+ . contains ( 'Hungarian Rhapsody No. 2' )
187
+ . get ( 'table th' )
188
+ . contains ( 'Piece' )
158
189
159
190
// the prerequisites panel
160
191
cy . get ( '.prerequisites-panel.v-expansion-panel--active' ) . should ( 'be.visible' )
You can’t perform that action at this time.
0 commit comments