I would like to include some math symbols in my GitHub README file generated by Rmarkdown. However, enclosing the symbols in $
does not render them as symbols: it just puts parentheses around them. Based on this document, I thought perhaps I could use MathJax, but my efforts to get this to work have been unsuccessful so far. Any help would be appreciated!
Attempt 1:
---
output:
github_document
---
Here are some math symbols: $/alpha$ $A$ $1$
Attempt 2:
---
output:
github_document:
pandoc_args: "--mathjax"
---
Here are some math symbols: $/alpha$ $A$ $1$
Attempt 3:
---
output:
github_document:
pandoc_args: [
"--mathjax", "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
]
---
Here are some math symbols: $/alpha$ $A$ $1$
Attempt 4:
---
output:
github_document:
md_extensions: -tex_math_single_backslash+tex_math_dollars
---
Here are some math symbols: $/alpha$ $A$ $1$
So far, all of these attempts produced this: