I use OneNote to keep track of useful coding resources and templates in R and Python. This is not usually a problem but I am having difficulty typing any code with indices containing double square brackets e.g.
df.iloc[[0, 12]]
instead of just displaying the code, OneNote interprets this as a command to create a new page called "0, 12" and then links to this new page and removes the square brackets from the code.
I have tried right clicking and selecting "remove link" but this also removes the square brackets and does not delete the created page.
Is there any way to turn this functionality off so it just lets me type in double square brackets without creating a new page?
df.iloc\[\[0, 12\]\]
might do it.