File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 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) => {
6666 </div>`
6767 }
6868 // TODO sanitize markdown or HTML
69- return < div dangerouslySetInnerHTML = { { __html : html } } />
69+ return < span className = "coderoad-markdown" dangerouslySetInnerHTML = { { __html : html } } />
7070}
7171
7272export default Markdown
Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ import 'prismjs/components/prism-typescript'
1111import 'prismjs/themes/prism-tomorrow.css'
1212
1313// 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 =
99 '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'
1010
1111const paragraphText = `Markdown included \`code\`, *bold*, & _italics_.
12+
13+ Inline code: \`<h1>HTML</h1>\`, \`function someFunc() { var a = 1; return a; }\`
14+
1215 \`\`\`javascript
1316 var a = 12
1417
You can’t perform that action at this time.
0 commit comments