mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 19:58:40 +00:00
Show HTML results from \html* commands (#2297)
Co-authored-by: ylemkimon <mail@ylem.kim>
This commit is contained in:
@@ -113,10 +113,10 @@ or for just some URLs via the `trust` [option](options.md).
|
||||
| $\href{https://katex.org/}{\KaTeX}$ | `\href{https://katex.org/}{\KaTeX}` |
|
||||
| $\url{https://katex.org/}$ | `\url{https://katex.org/}` |
|
||||
| $\includegraphics[height=0.8em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://katex.org/img/khan-academy.png}$ | `\includegraphics[height=0.8em, totalheight=0.9em, width=0.9em, alt=KA logo]{https://katex.org/img/khan-academy.png}` |
|
||||
| $\htmlId{bar}{x}$ | `\htmlId{bar}{x}` |
|
||||
| $\htmlClass{foo}{x}$ | `\htmlClass{foo}{x}` |
|
||||
| $\htmlStyle{color: red;}{x}$ | `\htmlStyle{color: red;}{x}` |
|
||||
| $\htmlData{foo=a, bar=b}{x}$ | `\htmlData{foo=a, bar=b}{x}` |
|
||||
| $\htmlId{bar}{x}$ <code>…<span id="bar" class="enclosing">…x…</span>…</code> | `\htmlId{bar}{x}` |
|
||||
| $\htmlClass{foo}{x}$ <code>…<span class="enclosing foo">…x…</span>…</code> | `\htmlClass{foo}{x}` |
|
||||
| $\htmlStyle{color: red;}{x}$ <code>…<span style="color: red;" class="enclosing">…x…</span>…</code> | `\htmlStyle{color: red;}{x}` |
|
||||
| $\htmlData{foo=a, bar=b}{x}$ <code>…<span data-foo="a" data-bar="b" class="enclosing">…x…</span>…</code> | `\htmlData{foo=a, bar=b}{x}` |
|
||||
|
||||
`\includegraphics` supports `height`, `width`, `totalheight`, and `alt` in its first argument. `height` is required.
|
||||
|
||||
|
Reference in New Issue
Block a user