Skip to content

Commit

Permalink
Document use of \# in \href (mathjax/MathJax#2565)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Apr 27, 2021
1 parent 49af85f commit 92085b2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion input/tex/extensions/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ following non-standard macros:

.. describe:: \\href{url}{math}

Makes ``math`` be a link to the page given by ``url``.
Makes ``math`` be a link to the page given by ``url``. Note that
the url is not processed by TeX, but is given as the literal url.
In actual TeX or LaTeX, special characters must be escaped; so,
for example, a url containing a ``#`` would need to use ``\#`` in
the url in actual TeX. That is not necessary in MathJax, and if
you do use ``\#``, it will produce ``/#`` in the url (since the
``\`` will be inserted into the url verbatim, and browsers will
convert that to ``/`` (thinking it is a DOS directory separator).

.. describe:: \\class{name}{math}

Expand Down

0 comments on commit 92085b2

Please sign in to comment.