问题
I need to stop superscript before comma - ,
or full stop - .
. When converting the Rmd
file to HTML knitr makes comma superscripted as well. Example:
example.Rmd
MyTitle
========================================================
J.Smith^1, K.John^2, H.Gone^*.
example.html

Let me know if this was asked before, I can't find relevant questions.
回答1:
You may insert HTML tags directly to Markdown documents. To toggle the "superscripting" mode, use sup
.
MyTitle
========================================================
J.Smith<sup>1</sup>, K.John<sup>2</sup>, H.Gone<sup>*</sup>.
EDIT: You may also use round brackets to indicate exactly the part of text to be reformatted.
J.Smith^(1), K.John^(2), H.Gone^(*)
EDIT: This has changed for Markdown V2
2^10
2^(10)
2^10^
2^(10)^

来源:https://stackoverflow.com/questions/23424324/knitr-stop-superscript-in-r-markdown