-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0028f7c
commit df53dcc
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Usage | ||
|
||
Rendering mathematical equations with `pulldown-latex` obviously begins with using | ||
the crate in order to generate the `mathml` markup. However, one also needs to include | ||
the stylesheet and fonts necessary to render the equations correctly and aesthetically. | ||
|
||
## Including the Required Files | ||
|
||
Files can be included in one of two ways, either by using a CDN or by downloading them | ||
from the release page and using them locally. | ||
|
||
### Using a CDN | ||
|
||
In the index.html file of your project, include the following lines: | ||
|
||
```html | ||
<head> | ||
<!-- Rest of your HTML head --> | ||
<!-- ...................... --> | ||
|
||
<!-- Include the Stylesheet --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/carloskiki/pulldown-latex@{version}/styles.min.css"> | ||
<!-- Include the Fonts --> | ||
<link rel="preload" href="https://cdn.jsdelivr.net/gh/carloskiki/pulldown-latex@{version}/font/" as="font" crossorigin="anonymous"> | ||
|
||
<!-- Rest of your HTML head --> | ||
<!-- ...................... --> | ||
</head> | ||
``` | ||
|
||
Make sure to replace `{version}` with the version of the crate you are using or with `latest` if you want to use the | ||
latest version available. | ||
|
||
### Using Local Files | ||
|
||
Download the files from the release page and include them in your project. Then, include the following lines in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters