feat: enable MathJax for Project Euler challenges (#38017)
* feat: enable MathJax for Project Euler challenges Enables MathJax to render mathematical formulae for some Project Euler problems * refactor: DRY out script insertion Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
committed by
Ahmad Abdolsaheb
parent
6809578044
commit
849e78d72e
@ -64,7 +64,10 @@ export const onRenderBody = ({
|
||||
/>
|
||||
];
|
||||
|
||||
if (pathname.includes('/learn/coding-interview-prep/rosetta-code')) {
|
||||
if (
|
||||
pathname.includes('/learn/coding-interview-prep/rosetta-code') ||
|
||||
pathname.includes('/learn/coding-interview-prep/project-euler')
|
||||
) {
|
||||
scripts.push(
|
||||
<script
|
||||
async={false}
|
||||
|
Reference in New Issue
Block a user