Skip to content
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

Math Support For Web Pages and Tiny Editor Integration #42

Open
MathewJoseph31 opened this issue Jul 30, 2024 · 2 comments
Open

Math Support For Web Pages and Tiny Editor Integration #42

MathewJoseph31 opened this issue Jul 30, 2024 · 2 comments
Assignees

Comments

@MathewJoseph31
Copy link
Owner

No description provided.

@MathewJoseph31
Copy link
Owner Author

@MathewJoseph31 MathewJoseph31 self-assigned this Aug 1, 2024
@MathewJoseph31
Copy link
Owner Author

Quick example using mathjax:

Load the cdn: (make sure to specify a ?config= option as it doesn't come included in the recommended cdn link - default works just fine):

<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=default'></script>

Then, inside your html simply wrap the equation inside $$ {equation here} $$

e.g. $$ {J(\theta) =\frac{1}{2m} [\sum^m_{i=1}(h_\theta(x^{(i)}) - y^{(i)})2 + \lambda\sum^n_{j=1}\theta^2_j} $$

And it should show up as an equation just fine on the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant