hackmdio / hackmdio/codimd

How to link to a title in the same document by MathJax `\href`?

Open
#1,794 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I know we can create a link by `\href` with MathJax.

```tex
$$
\href{https://this.is.a.doc/}{\text{this is a doc}}
$$
```

However, it seems that `\href` only works when the link starts with `http(s)://`. I want to link to a title in the same document.

```tex
$$
\href{#the-title-in-the-same-document}{=}
$$
```

Is it possible?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.