Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

characters are modified in the language field of the code fence without warning #750

Closed
pzhaonet opened this issue Jun 22, 2017 · 5 comments
Labels

Comments

@pzhaonet
Copy link

pzhaonet commented Jun 22, 2017

Thanks a lot. Typora is a best markdown editor I have ever used. Only two issues are not satisfactory to me. The first is the default language of the code fences (#290), and the second is that some characters are modified automatically in the language field of the code fence.

I am an R user. I often write R markdown documents, in which I have codes like this:

```{r, fig.cap='my fig'}
# my code
```

If I type these texts in the source mode in Typora, Typora converts it automatically into:

```{r, fig.cap='my fig'}
# my code
```

when I switch to the normal mode.

Typora converts " into " automatically as well.

I had a nightmare-like experience. I had such a long R markdown document written in another text editor, and I opened it with Typora. I did nothing and closed it without saving, and all the quotation marks were converted without any warning. I found that this R markdown document could not be compiled by R. It took me a lot of time to find what the problem was. A "find and replace" way could convert the document back, but is not practical.

I am wondering if there is a way to switch off the automatic converting for the code fences.

Thank you very much.

@abnerlee abnerlee added the bug label Jun 22, 2017
@abnerlee
Copy link
Contributor

should be fixed in the newest version

@pzhaonet
Copy link
Author

Yes, fixed! Fantastic! Thanks a lot!

@SebKranz
Copy link

SebKranz commented May 4, 2019

This bug seems to be back.

This code block...
Screenshot 2019-05-04 at 17 59 32

...gets converted to this:

```{r, chunkOption="in Quotes"}
This is a code block
```

@ulyngs
Copy link

ulyngs commented Mar 27, 2020

I just stumbled upon this bug as well! Was just about to commit some changes I'd made in Typora, when I discovered that quotes had been replaced in this way in code chunk options that I'd edited...!

@abnerlee abnerlee reopened this Mar 28, 2020
@abnerlee
Copy link
Contributor

should be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants