Skip to content

Commit 8cda8ce

Browse files
authored
Merge pull request #118 from datacamp/bb/fix-latex-rendering
[CT-3637] - fix/add mathJax property and fix section styles
2 parents 237680f + 6564d45 commit 8cda8ce

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

components/Html.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ type Props = {
88
export default function Html({ children, className }: Props) {
99
return (
1010
<MathJaxContext>
11-
<MathJax>
11+
<MathJax hideUntilTypeset="first">
1212
<span
1313
className={className}
1414
dangerouslySetInnerHTML={{ __html: children }}
1515
/>
1616
</MathJax>
1717
</MathJaxContext>
18-
1918
);
2019
}

pages/packages/[package]/versions/[version]/topics/[topic].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default function TopicPage({ topicData }: Props) {
123123
{value && (
124124
<section>
125125
<h2>Value</h2>
126-
<Html>{value}</Html>
126+
<Html className="list-view">{value}</Html>
127127
</section>
128128
)}
129129
{sections && sections.length > 0 && (
@@ -144,7 +144,7 @@ export default function TopicPage({ topicData }: Props) {
144144
{details && (
145145
<section>
146146
<h2>Details</h2>
147-
<Html>{details}</Html>
147+
<Html className="list-view">{details}</Html>
148148
</section>
149149
)}
150150
{references && (

0 commit comments

Comments
 (0)