Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit ec3dc37

Browse files
JWandrockeGitHub Enterprise
authored andcommitted
Merge pull request #40 from ML-Leonardo/fix/mark_issues
Fixed the styles for the markdown to look correct
2 parents 5555111 + 206f06b commit ec3dc37

File tree

5 files changed

+80
-5
lines changed

5 files changed

+80
-5
lines changed

.pipeline/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ general:
22
gitSshKeyCredentialsId: 'SSH_github'
33
scanType: 'npm'
44
verbose: true
5-
whitesourceProductName: 'SHC - SAP RECAST CONVERSAT OD 2.0 2003'
6-
whitesourceProductToken: 'b9184a8d37084f1abad85e24a79625be5d7d949570dd455183c4a918cc05389a'
5+
whitesourceProductName: 'SHC - SAP RECAST CONVERSAT OD 2.0 2004'
6+
whitesourceProductToken: '043c41d2d5fd4d0893728da2fd1966a7f6ff713596d04222b1f2345dc3f76ffe'
77
whitesourceUserTokenCredentialsId: 'Whitesource_UserKey'
88
steps:
99
setVersion:

src/components/Message/Text.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ import './style.scss'
1010
const allowedMarkdownTypes = [
1111
'paragraph',
1212
'text',
13+
'break',
1314
'emphasis',
1415
'strong',
1516
'link',
17+
'image',
1618
'blockquote',
1719
'delete',
1820
'list',

src/components/Message/style.scss

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,52 @@
8282

8383

8484
// Markdown
85+
:first-child {
86+
margin-block-start: 0px;
87+
margin-top: 0px;
88+
}
89+
90+
:last-child {
91+
margin-block-end: 0px;
92+
margin-bottom: 0px;
93+
}
94+
95+
li p {
96+
margin-block-end: 0px;
97+
margin-bottom: 0px;
98+
}
99+
100+
p {
101+
display: block;
102+
margin-block-start: 1em;
103+
margin-block-end: 1em;
104+
margin-inline-start: 0px;
105+
margin-inline-end: 0px;
106+
}
107+
108+
pre {
109+
display: block;
110+
white-space: pre;
111+
margin: 1em 0;
112+
}
113+
114+
pre code {
115+
display: block;
116+
padding: 0.5rem;
117+
overflow-x: auto;
118+
background-color: #ddd;
119+
}
120+
121+
blockquote {
122+
display: block;
123+
margin-block-start: 1em;
124+
margin-block-end: 1em;
125+
margin-inline-start: 0;
126+
margin-inline-end: 0;
127+
padding: 0.1em 1.33em;
128+
border-left: .25em solid gray;
129+
}
130+
85131
ul, ol {
86132
list-style: disc;
87133
}
@@ -94,16 +140,43 @@
94140
font-family: '72-Bold','Roboto', Helvetica, sans-serif;
95141
}
96142

97-
em,i {
143+
cite, em, i {
98144
font-family: '72-Italic','Roboto', Helvetica, sans-serif;
99145
}
100146

147+
code {
148+
font-family: Menlo, monospace, '72', '72full', 'Roboto', Helvetica, sans-serif;
149+
font-size: 0.83em;
150+
}
151+
101152
strong em,
102153
b em,
103154
strong i,
104155
b i {
105156
font-family: '72-BoldItalic','Roboto', Helvetica, sans-serif;
106157
}
158+
table {
159+
width: 100%;
160+
border-spacing: 0;
161+
}
162+
163+
th {
164+
border-width: 1px;
165+
border-top-style: solid;
166+
border-bottom-style: solid;
167+
border-left-style: solid;
168+
padding: 0.5rem 0.25rem;
169+
}
170+
td {
171+
border-bottom-style: solid;
172+
border-left-style: solid;
173+
border-width: 1px;
174+
padding: 0.5rem;
175+
}
176+
th:last-child, td:last-child {
177+
border-right-style: solid;
178+
}
179+
107180
}
108181

109182
/*

src/containers/App/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
padding: 0;
1414
border: none;
1515
outline: none;
16-
font-family: 'Roboto', Helvetica, sans-serif;
16+
font-family: '72', '72full', 'Roboto', Helvetica, sans-serif;
1717
}
1818

1919
.RecastApp a, .CaiApp a {

whitesource.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"devDep": "true",
33
"checkPolicies": true,
4-
"productVer": "1.4.21",
4+
"productVer": "1.4.22",
55
"forceUpdate": true,
66
"failOnError": true
77
}

0 commit comments

Comments
 (0)