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

Describe using auto renderer in html head #623

Merged
merged 2 commits into from Jan 11, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions contrib/auto-render/README.md
Expand Up @@ -27,6 +27,21 @@ before the close body tag:

See [index.html](index.html) for an example.

If you prefer to have all your setup inside the header,
you can use the following script there
(instead of the one above at the end of the document):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"at the end of <body>" maybe?


```html
<head>
...
<script>
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement(document.body);
});
</script>
</head>
```

### API

This extension exposes a single function, `window.renderMathInElement`, with
Expand Down