Skip to content

[CT-3637] Fix latex rendering and formatting #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ workflows:
aws-secret-access-key: $OPS_AWS_SECRET_ACCESS_KEY
account-url: $OPS_ECR_URL
puller-account-ids: '["301258414863", "487088987264"]'
docker-version: 20.10.2
- datacamp-deploy/deploy: # Staging
environment: staging
aws-access-key-id: $STAGING_AWS_ACCESS_KEY_ID
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG NODE_VERSION=12.14-alpine3.9
ARG NODE_VERSION=16.4-alpine3.11

FROM node:${NODE_VERSION} as dependencies

Expand All @@ -7,7 +7,7 @@ WORKDIR /usr/app
# First copy only package.json & yarn.lock and run yarn install, this will make
# docker cache these steps if those files didn't change
COPY package.json yarn.lock ./
RUN yarn install
RUN yarn install --frozen-lock-file

# Copy all the other source files we need to build
COPY . .
Expand Down
15 changes: 11 additions & 4 deletions components/Html.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import { MathJax, MathJaxContext } from "better-react-mathjax";

type Props = {
children: string;
className?: string;
};

export default function Html({ children, className }: Props) {
return (
<span
className={className}
dangerouslySetInnerHTML={{ __html: children }}
/>
<MathJaxContext>
<MathJax>
<span
className={className}
dangerouslySetInnerHTML={{ __html: children }}
/>
</MathJax>
</MathJaxContext>

);
}
Loading