728x90
반응형
MathJax.js
를 load 했던걸,
```[.lang-html]
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.6.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>
```/
아래와 같이 바꿔주면 된다는듯. (That will be faster as well as it is a smaller file.)
```[.lang-html]
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.6.1/MathJax.js?config=TeX-AMS_CHTML"></script>
```/
See for gengeral MathJax settings/usages.
인터넷, Web, HTML, 블로그에서 수식 사용하고 싶은 분들은 참조하세요.
### Upgrading from v2 to v3
Upgrading from v2 to v3 Upgrading from v2 to v3 :: Configuration Changes
The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle.
## ChatGPT: To prevent MathJax from rendering text enclosed by backticks ``. (Wrong answer I think.)
If you want to prevent MathJax from rendering text enclosed by backticks, you can do so by modifying the MathJax configuration.
To block MathJax from rendering backticks, you can add the following code to your MathJax configuration:
```[.linenums]
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$', '$$'], ['\\[', '\\]']],
processEscapes: true,
ignoreClass: 'nostem|nolatexmath'
}
});
</script>
```/
The key part is the ignoreClass option, which tells MathJax to ignore any elements with the nostem or nolatexmath classes. You can add these classes to any elements that you want to exclude from MathJax processing.
See for gengeral MathJax settings/usages.
인터넷, Web, HTML, 블로그에서 수식 사용하고 싶은 분들은 참조하세요.
## RRA
- stackoverflow.com :: Mathjax strangely render back-tick in code blocks, asked at 2020-05-31, by Hanlin.
// answered by Davide Cervone, at 2020-06-01. - OpenAI ChatGPT
- kipid's blog :: 인터넷, Web, HTML, 블로그에서 수식 사용하기 (Equation or math in HTML, blog)
728x90
반응형
'[IT/Programming] > HTML related' 카테고리의 다른 글
robots.txt 랑 sitemap.xml 설정하기 (0) | 2023.03.09 |
---|---|
LaTeX/Special Characters (0) | 2023.03.08 |
Change browser URL (window.location) without reloading or redirecting a page (0) | 2023.03.08 |
Learning PHP (0) | 2022.12.30 |
Learning Play Framework (0) | 2022.12.30 |
Vert.x 로 https (SSL/TLS) server 만들기 (2) | 2022.12.30 |
Netflix iframe 으로 퍼오기. (0) | 2021.03.13 |