Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Merge requests
  • !1453

CommonHTML: Pass full font URL to Ajax.fileURL

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/kovidgoyal/master into master May 03, 2016
  • Overview 12
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: kovidgoyal

Rather than just passing the base font dir, pass the full font file path. This allows for user code that overrides fileURL() to properly map font file URLs as well.

I need this because in my application I am loading MathJax from IndexedDB, which means all mathjax files become blob urls, and my application has to map all MathJax URLs to Blob URLs, which it does by monkeypatching Ajax.fileURL() in the AuthorInit() function. See https://github.com/kovidgoyal/calibre/blob/master/src/pyj/read_book/mathjax.pyj#L15

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/kovidgoyal/master