{"id":15097478,"url":"https://github.com/penguinlay/notion-inline-latex","last_synced_at":"2025-10-08T02:31:27.221Z","repository":{"id":44338751,"uuid":"200750551","full_name":"Penguinlay/notion-inline-latex","owner":"Penguinlay","description":"User Script for Inline LaTeX Rendering in notion.so","archived":true,"fork":false,"pushed_at":"2020-04-14T04:49:06.000Z","size":91,"stargazers_count":67,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T06:32:05.233Z","etag":null,"topics":["javascript","notion","userscript","violentmonkey","violentmonkey-script"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Penguinlay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-06T00:59:19.000Z","updated_at":"2024-12-25T08:53:55.000Z","dependencies_parsed_at":"2022-09-01T18:23:15.628Z","dependency_job_id":null,"html_url":"https://github.com/Penguinlay/notion-inline-latex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Penguinlay/notion-inline-latex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Penguinlay%2Fnotion-inline-latex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Penguinlay%2Fnotion-inline-latex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Penguinlay%2Fnotion-inline-latex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Penguinlay%2Fnotion-inline-latex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Penguinlay","download_url":"https://codeload.github.com/Penguinlay/notion-inline-latex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Penguinlay%2Fnotion-inline-latex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278877594,"owners_count":26061478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","notion","userscript","violentmonkey","violentmonkey-script"],"created_at":"2024-09-25T16:22:17.151Z","updated_at":"2025-10-08T02:31:26.965Z","avatar_url":"https://github.com/Penguinlay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notion-inline-latex\nUserScript for Inline LaTeX Rendering in [notion.so](https://www.notion.so/)\n\n---\n\n## Feature\n- Render LaTeX at Startup (default two seconds latency for smoother experience but customizable)\n- Render LaTeX at Keyup (default two seconds latency for smoother experience but customizable)\n- `$ $` as Default LaTeX Delimiter (customizable)\n\n## Acknowledgement\n- Special thanks go to [Evert Heylen](https://github.com/evertheylen)!\n- - This project is influenced and motivated by his initial project, [evertheylen/notion-inline-math](https://github.com/evertheylen/notion-inline-math).\n\n## Attention (Please read this before proceeding.)\n- Script is intended only for web browswer use with UserScript extension, [Violentmonkey](https://violentmonkey.github.io/).\n- - The script should work with other UserScript extentions as it is or with minimum changes though it *has not* been tested yet.\n- Script does not change the content.\n- - It merely changes the display after the contents are loaded.\n- For the script to work properly, you need at least one math block present in the page where you want to render inline LaTeX.\n- This script is based on the script by Evert Heylen for my own math notes on [notion.so](https://www.notion.so/).\n- - I made it available for public so that it would be useful to others.\n- - I meant no harm in writing this personal script.\n- - I cannot take responsibility for loss of data or other harms.\n- - So, even though the script only changes the display and it is harmless at my best knowledge, please use it at your own risk, especially with untested mobile installation/usage described below.\n- Last but not least, this project/script is in no way affiliated nor sponsored by [notion.so](https://www.notion.so/).\n- - Like features on [Notion Hacks](https://www.notion.so/Notion-Hacks-27b92f71afcd4ae2ac9a4d14fef0ce47), this is a personal/community hack/workaround.\n\n## Installation\n- Install [Violentmonkey](https://violentmonkey.github.io/).\n- Click on the extension icon and click plus icon. A new text editor window by extension will be opened in new tab.\n- Copy/paste the script `notion-inline-latex.js`.\n- Save and close the editor.\n- Go to [notion.so](https://www.notion.so/) and enable the script if it has not been already.\n\n## Usage\n- It should work on any [notion.so](https://www.notion.so/) page automatically through extension as long as \n- - the script is enabled in extension, and \n- - there exists at least one math block in the page where you want to render inline LaTeX.\n- If you have any usage question, you can ask me on either:\n- - [Unofficial NotionHacks Discord](https://discordapp.com/invite/2RrqtF9), or\n- - [Unofficial NotionHacks Slack](https://notionhacks.slack.com/join/shared_invite/enQtNDk4MTM3NzQ5NjE4LWVjYzg3ODhhYWIzY2I4NTE5ZDJjNmU2OTNlNDFmYzQwZTQ3YzdlMmZiMmZkOTNlYmJhNDUzMmIyZjFmZTEzZTg).\n\n## Mobile Installation/Usage (Untested)\n- Note: The workaround below has never been tested or tried out. Just an idea for those of you adventurous. Use with extreme caution!!!\n- - Install a browser with plugin/extension support which has userscript plugin/extension available (For example, Opera with Tampermonkey).\n- - Use the script with that plugin/extension.\n\n## Example to Test\n[Duplicatable Sample Notion Page](https://www.notion.so/penguinlay/notion-inline-latex-dc4c1e7a0bc146aa91a99a60c3db840a)\n\n## Known Limitations\n- You need at least one math block present in the page where you want to render inline LaTeX.\n- Render at startup will not work when the page is loaded dynamically within Notion. Quick fix is just click a neutral key like shift for render at keyup to pick up the keyup cue.\n\n## To-Do-List\n- [ ] Figure out a way to eliminate the need for the presence of math block for the script to work.\n- [ ] Figure out how to avoid cursor shifting to the beginning of the block after each render.\n\n## Customization\n- Small value for startUpWaitTime and keyUpWaitTime can make the script load improperly.\n- Add delimiters as desired though delimiters other than default one have not been tested yet.\n\n## Contribution\n- Please start an issue if you find a bug or have any question.\n- Please submit PR if you have any update to the project or would like to contribute. Thanks in advance!\n\n## Reference\n- [Official notion.so](https://www.notion.so/)\n- [Official Notion Documentation](https://www.notion.so/Notion-Official-83715d7703ee4b8699b5e659a4712dd8)\n- [Notion Community](https://www.notion.so/Notion-Community-04f306fbf59a413fae15f42e2a1ab029)\n- [Notion Hacks](https://www.notion.so/Notion-Hacks-27b92f71afcd4ae2ac9a4d14fef0ce47)\n- [evertheylen/notion-inline-math](https://github.com/evertheylen/notion-inline-math)\n- [Violentmonkey Metadata Block](https://violentmonkey.github.io/api/metadata-block/)\n- [StackOverFlow Answer to \"Run javascript function when user finishes typing instead of on key up?\"](https://stackoverflow.com/a/4220182)\n- [StackOverFlow Answer to \"How can I render all inline formulas in $..$ with KaTeX?\"](https://stackoverflow.com/a/45301641)\n- [KaTeX Auto-render Extension](https://katex.org/docs/autorender.html)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpenguinlay%2Fnotion-inline-latex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpenguinlay%2Fnotion-inline-latex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpenguinlay%2Fnotion-inline-latex/lists"}