
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@amermathsoc/mathjax-href
Advanced tools
A custom href extension for MathJax's TeX input
xhref.js
This extension implements a TeX macro \xhref
.
\xhref[type]{url}{content}
In the output, this will generate <a href="url" data-ams-ref="type">content</a>
with 5px
padding.
This macro integrates with AmerMathSoc/texml-to-html; see its documentation for more information on data-ams-ref
.
For example, install @mathjax/src
and @amermathsoc/mathjax-xhref
and use something like
import { TeX } from "@mathjax/src/js/input/tex.js";
import { configuration as xhref } from "mathjax-xhref";
const tex = new TeX({
packages: [xhref.name],
textmacros: {
packages: { "[+]": [xhref.name] },
},
});
Note: the textmacros
part allows the use of this macro in text-mode.
For client-side use, you need load browser/xhref.js
, e.g., from a CDN.
Follow the instructions from the MathJax documentation on loading a third-party extensions, e.g.,
MathJax = {
loader: {
load: ["[xhref]/xhref.js"],
paths: {
xhref:
"https://cdn.jsdelivr.net/npm/@amermathsoc/mathjax-xhref@3/browser",
},
},
tex: {
packages: { "[+]": ["xhref"] },
textmacros: {
packages: { "[+]": ["xhref"] },
},
},
};
FAQs
A custom href extension for MathJax's TeX input
We found that @amermathsoc/mathjax-href demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.