File tree 4 files changed +39
-6
lines changed
src/shared/components/challenge-detail/Specification
4 files changed +39
-6
lines changed Original file line number Diff line number Diff line change 143
143
"redux" : " ^3.7.2" ,
144
144
"redux-actions" : " ^2.4.0" ,
145
145
"redux-promise" : " ^0.6.0" ,
146
- "remark-breaks" : " ^2.0.2" ,
147
146
"rehype-katex" : " ^5.0.0" ,
147
+ "rehype-raw" : " ^5.1.0" ,
148
+ "rehype-stringify" : " ^8.0.0" ,
149
+ "remark-breaks" : " ^2.0.2" ,
148
150
"remark-frontmatter" : " ^3.0.0" ,
149
151
"remark-gfm" : " ^1.0.0" ,
150
- "remark-parse" : " ^9.0.0" ,
151
- "rehype-stringify" : " ^8.0.0" ,
152
152
"remark-math" : " ^4.0.0" ,
153
+ "remark-parse" : " ^9.0.0" ,
153
154
"request-ip" : " ^2.0.2" ,
154
155
"require-context" : " ^1.1.0" ,
155
156
"rss" : " ^1.2.2" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ import remarkGfm from 'remark-gfm';
7
7
import remarkParse from 'remark-parse' ;
8
8
import rehypeStringify from 'rehype-stringify' ;
9
9
import remarkFrontmatter from 'remark-frontmatter' ;
10
+ import rehypeRaw from 'rehype-raw' ;
11
+ import remarkBreaks from 'remark-breaks' ;
12
+ import style from './styles.scss' ;
10
13
11
14
// eslint-disable-next-line import/no-extraneous-dependencies
12
15
import 'katex/dist/katex.min.css' ;
@@ -23,8 +26,10 @@ export default function SpecificationComponent({
23
26
remarkFrontmatter ,
24
27
remarkParse ,
25
28
[ remarkGfm , { singleTilde : false } ] ,
29
+ remarkBreaks ,
26
30
] }
27
- rehypePlugins = { [ rehypeKatex , rehypeStringify ] }
31
+ rehypePlugins = { [ rehypeKatex , rehypeStringify , rehypeRaw ] }
32
+ className = { style . container }
28
33
>
29
34
{ bodyText }
30
35
</ ReactMarkdown >
Original file line number Diff line number Diff line change
1
+ @import " ~styles/mixins" ;
2
+
3
+ .container {
4
+ :global {
5
+ table {
6
+ display : block ;
7
+ width : 100% ;
8
+ overflow : auto ;
9
+ box-sizing : border-box ;
10
+
11
+ * {
12
+ box-sizing : border-box ;
13
+ }
14
+
15
+ tr {
16
+ background-color : #fff ;
17
+ border-top : 1px solid #c6cbd1 ;
18
+ }
19
+
20
+ th ,
21
+ td {
22
+ padding : 6px 13px ;
23
+ border : 1px solid #dfe2e5 ;
24
+ }
25
+ }
26
+ }
27
+ }
Original file line number Diff line number Diff line change @@ -169,10 +169,10 @@ $tc-link-visited: #0c4e98;
169
169
170
170
li ::before {
171
171
display : table-cell ;
172
- font-weight : 700 ;
173
172
text-align : right ;
174
173
content : counter (item ) " ." ;
175
174
padding : 0 10px 0 0 ;
175
+ white-space : nowrap ;
176
176
}
177
177
}
178
178
@@ -352,10 +352,10 @@ $tc-link-visited: #0c4e98;
352
352
353
353
& ::before {
354
354
display : table-cell ;
355
- font-weight : 700 ;
356
355
text-align : right ;
357
356
content : counter (item ) " ." ;
358
357
padding : 0 10px 0 0 ;
358
+ white-space : nowrap ;
359
359
}
360
360
}
361
361
}
You can’t perform that action at this time.
0 commit comments