File tree 4 files changed +13
-1
lines changed
4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const Markdown = (props: Props) => {
66
66
</div>`
67
67
}
68
68
// TODO sanitize markdown or HTML
69
- return < div dangerouslySetInnerHTML = { { __html : html } } />
69
+ return < span className = "coderoad-markdown" dangerouslySetInnerHTML = { { __html : html } } />
70
70
}
71
71
72
72
export default Markdown
Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ import 'prismjs/components/prism-typescript'
11
11
import 'prismjs/themes/prism-tomorrow.css'
12
12
13
13
// TODO import all - current list only supports js related
14
+
15
+ // resolve unsupported style cases
16
+ import './style.css'
Original file line number Diff line number Diff line change
1
+ .coderoad-markdown : not (pre ) > code {
2
+ background-color : black;
3
+ color : white;
4
+ border-radius : 2px ;
5
+ padding : 0.1rem ;
6
+ }
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ const stepText =
9
9
'This is a long paragraph of step text intended to wrap around the side after a short period of writing to demonstrate text wrap among other things'
10
10
11
11
const paragraphText = `Markdown included \`code\`, *bold*, & _italics_.
12
+
13
+ Inline code: \`<h1>HTML</h1>\`, \`function someFunc() { var a = 1; return a; }\`
14
+
12
15
\`\`\`javascript
13
16
var a = 12
14
17
You can’t perform that action at this time.
0 commit comments