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
  • Issues
  • #2472
Closed
Open
Issue created Jul 16, 2020 by Administrator@rootContributor

Analog of katex htmlData command for enriching math with dom dataset values

Created by: dainiak

Currently MathJax supports enrichment of formulas with html id and css class attributes. Sometimes it is convenient do add some extra data to an element which does not naturally converts into e.g. css class assignment (e.g. attaching data-fragment-index to parts of math formula when making a reveal.js presentation).

Recently KaTeX added an HTML extension which supports \htmlData macro to add “data-xxx” attributes to the created math elements as well. It would be great so see this feature in MathJax as well.

Assignee
Assign to
Time tracking